Data Structures | Macros | Typedefs | Functions
gntmenuitemcheck.h File Reference

Check Menuitem API. More...

#include "gnt.h"
#include "gntcolors.h"
#include "gntkeys.h"
#include "gntmenuitem.h"

Go to the source code of this file.

Data Structures

struct  _GntMenuItemCheck
 
struct  _GntMenuItemCheckClass
 

Macros

#define GNT_TYPE_MENU_ITEM_CHECK   (gnt_menuitem_check_get_gtype())
 
#define GNT_MENU_ITEM_CHECK(obj)   (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_MENU_ITEM_CHECK, GntMenuItemCheck))
 
#define GNT_MENU_ITEM_CHECK_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST((klass), GNT_TYPE_MENU_ITEM_CHECK, GntMenuItemCheckClass))
 
#define GNT_IS_MENU_ITEM_CHECK(obj)   (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNT_TYPE_MENU_ITEM_CHECK))
 
#define GNT_IS_MENU_ITEM_CHECK_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE((klass), GNT_TYPE_MENU_ITEM_CHECK))
 
#define GNT_MENU_ITEM_CHECK_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS((obj), GNT_TYPE_MENU_ITEM_CHECK, GntMenuItemCheckClass))
 
#define GNT_MENU_ITEM_CHECK_FLAGS(obj)   (GNT_MENU_ITEM_CHECK(obj)->priv.flags)
 
#define GNT_MENU_ITEM_CHECK_SET_FLAGS(obj, flags)   (GNT_MENU_ITEM_CHECK_FLAGS(obj) |= flags)
 
#define GNT_MENU_ITEM_CHECK_UNSET_FLAGS(obj, flags)   (GNT_MENU_ITEM_CHECK_FLAGS(obj) &= ~(flags))
 

Typedefs

typedef struct _GntMenuItemCheck GntMenuItemCheck
 
typedef struct _GntMenuItemCheckPriv GntMenuItemCheckPriv
 
typedef struct _GntMenuItemCheckClass GntMenuItemCheckClass
 

Functions

G_BEGIN_DECLS GType gnt_menuitem_check_get_gtype (void)
 
GntMenuItemgnt_menuitem_check_new (const char *text)
 Create a new menuitem. More...
 
gboolean gnt_menuitem_check_get_checked (GntMenuItemCheck *item)
 Check whether the menuitem is checked or not. More...
 
void gnt_menuitem_check_set_checked (GntMenuItemCheck *item, gboolean set)
 Set whether the menuitem is checked or not. More...
 

Detailed Description

Check Menuitem API.

Definition in file gntmenuitemcheck.h.

Function Documentation

gboolean gnt_menuitem_check_get_checked ( GntMenuItemCheck item)

Check whether the menuitem is checked or not.

Parameters
itemThe menuitem.
Returns
TRUE if the item is checked, FALSE otherwise.
G_BEGIN_DECLS GType gnt_menuitem_check_get_gtype ( void  )
Returns
GType for GntMenuItemCheck.
GntMenuItem* gnt_menuitem_check_new ( const char *  text)

Create a new menuitem.

Parameters
textThe text for the menuitem.
Returns
The newly created menuitem.
void gnt_menuitem_check_set_checked ( GntMenuItemCheck item,
gboolean  set 
)

Set whether the menuitem is checked or not.

Parameters
itemThe menuitem.
setTRUE if the item should be checked, FALSE otherwise.