15817
|
1 #ifndef GNT_BUTTON_H
|
|
2 #define GNT_BUTTON_H
|
|
3
|
|
4 #include <glib.h>
|
|
5 #include <glib-object.h>
|
|
6 #include "gnt.h"
|
|
7 #include "gntwidget.h"
|
|
8
|
|
9 #define GNT_TYPE_BUTTON (gnt_button_get_gtype())
|
|
10 #define GNT_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_BUTTON, GntButton))
|
|
11 #define GNT_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GNT_TYPE_BUTTON, GntButtonClass))
|
|
12 #define GNT_IS_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNT_TYPE_BUTTON))
|
|
13 #define GNT_IS_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GNT_TYPE_BUTTON))
|
|
14 #define GNT_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNT_TYPE_BUTTON, GntButtonClass))
|
|
15
|
|
16 typedef struct _GnButton GntButton;
|
|
17 typedef struct _GnButtonPriv GntButtonPriv;
|
|
18 typedef struct _GnButtonClass GntButtonClass;
|
|
19
|
|
20 struct _GnButtonPriv
|
|
21 {
|
|
22 char *text;
|
|
23 };
|
|
24
|
|
25 struct _GnButton
|
|
26 {
|
|
27 GntWidget parent;
|
|
28
|
|
29 GntButtonPriv *priv;
|
|
30
|
|
31 void (*gnt_reserved1)(void);
|
|
32 void (*gnt_reserved2)(void);
|
|
33 void (*gnt_reserved3)(void);
|
|
34 void (*gnt_reserved4)(void);
|
|
35 };
|
|
36
|
|
37 struct _GnButtonClass
|
|
38 {
|
|
39 GntWidgetClass parent;
|
|
40
|
|
41 void (*gnt_reserved1)(void);
|
|
42 void (*gnt_reserved2)(void);
|
|
43 void (*gnt_reserved3)(void);
|
|
44 void (*gnt_reserved4)(void);
|
|
45 };
|
|
46
|
|
47 G_BEGIN_DECLS
|
|
48
|
|
49 GType gnt_button_get_gtype(void);
|
|
50
|
|
51 GntWidget *gnt_button_new(const char *text);
|
|
52
|
|
53 G_END_DECLS
|
|
54
|
|
55 #endif /* GNT_BUTTON_H */
|