gntbutton.h
Go to the documentation of this file.00001
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef GNT_BUTTON_H
00028 #define GNT_BUTTON_H
00029
00030 #include <glib.h>
00031 #include <glib-object.h>
00032 #include "gnt.h"
00033 #include "gntwidget.h"
00034
00035 #define GNT_TYPE_BUTTON (gnt_button_get_gtype())
00036 #define GNT_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_BUTTON, GntButton))
00037 #define GNT_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GNT_TYPE_BUTTON, GntButtonClass))
00038 #define GNT_IS_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNT_TYPE_BUTTON))
00039 #define GNT_IS_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GNT_TYPE_BUTTON))
00040 #define GNT_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNT_TYPE_BUTTON, GntButtonClass))
00041
00042 typedef struct _GntButton GntButton;
00043 typedef struct _GntButtonPriv GntButtonPriv;
00044 typedef struct _GntButtonClass GntButtonClass;
00045
00046 struct _GntButtonPriv
00047 {
00048 char *text;
00049 };
00050
00051 struct _GntButton
00052 {
00053 GntWidget parent;
00054
00055 GntButtonPriv *priv;
00056
00057 void (*gnt_reserved1)(void);
00058 void (*gnt_reserved2)(void);
00059 void (*gnt_reserved3)(void);
00060 void (*gnt_reserved4)(void);
00061 };
00062
00063 struct _GntButtonClass
00064 {
00065 GntWidgetClass parent;
00066
00067 void (*gnt_reserved1)(void);
00068 void (*gnt_reserved2)(void);
00069 void (*gnt_reserved3)(void);
00070 void (*gnt_reserved4)(void);
00071 };
00072
00073 G_BEGIN_DECLS
00074
00078 GType gnt_button_get_gtype(void);
00079
00087 GntWidget * gnt_button_new(const char *text);
00088
00089 G_END_DECLS
00090
00091 #endif