15818
|
1 #ifndef GNT_MENUITEM_CHECK_H
|
|
2 #define GNT_MENUITEM_CHECK_H
|
|
3
|
|
4 #include "gnt.h"
|
|
5 #include "gntcolors.h"
|
|
6 #include "gntkeys.h"
|
|
7 #include "gntmenuitem.h"
|
|
8
|
|
9 #define GNT_TYPE_MENUITEM_CHECK (gnt_menuitem_check_get_gtype())
|
|
10 #define GNT_MENUITEM_CHECK(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_MENUITEM_CHECK, GntMenuItemCheck))
|
|
11 #define GNT_MENUITEM_CHECK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GNT_TYPE_MENUITEM_CHECK, GntMenuItemCheckClass))
|
|
12 #define GNT_IS_MENUITEM_CHECK(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNT_TYPE_MENUITEM_CHECK))
|
|
13 #define GNT_IS_MENUITEM_CHECK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GNT_TYPE_MENUITEM_CHECK))
|
|
14 #define GNT_MENUITEM_CHECK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNT_TYPE_MENUITEM_CHECK, GntMenuItemCheckClass))
|
|
15
|
|
16 #define GNT_MENUITEM_CHECK_FLAGS(obj) (GNT_MENUITEM_CHECK(obj)->priv.flags)
|
|
17 #define GNT_MENUITEM_CHECK_SET_FLAGS(obj, flags) (GNT_MENUITEM_CHECK_FLAGS(obj) |= flags)
|
|
18 #define GNT_MENUITEM_CHECK_UNSET_FLAGS(obj, flags) (GNT_MENUITEM_CHECK_FLAGS(obj) &= ~(flags))
|
|
19
|
|
20 typedef struct _GnMenuItemCheck GntMenuItemCheck;
|
|
21 typedef struct _GnMenuItemCheckPriv GntMenuItemCheckPriv;
|
|
22 typedef struct _GnMenuItemCheckClass GntMenuItemCheckClass;
|
|
23
|
|
24 struct _GnMenuItemCheck
|
|
25 {
|
|
26 GntMenuItem parent;
|
|
27 gboolean checked;
|
|
28 };
|
|
29
|
|
30 struct _GnMenuItemCheckClass
|
|
31 {
|
|
32 GntMenuItemClass parent;
|
|
33
|
|
34 void (*gnt_reserved1)(void);
|
|
35 void (*gnt_reserved2)(void);
|
|
36 void (*gnt_reserved3)(void);
|
|
37 void (*gnt_reserved4)(void);
|
|
38 };
|
|
39
|
|
40 G_BEGIN_DECLS
|
|
41
|
|
42 GType gnt_menuitem_check_get_gtype(void);
|
|
43
|
|
44 GntMenuItem *gnt_menuitem_check_new(const char *text);
|
|
45
|
|
46 gboolean gnt_menuitem_check_get_checked(GntMenuItemCheck *item);
|
|
47
|
|
48 void gnt_menuitem_check_set_checked(GntMenuItemCheck *item, gboolean set);
|
|
49
|
|
50 G_END_DECLS
|
|
51
|
|
52 #endif /* GNT_MENUITEM_CHECK_H */
|