Genericmenuitem 3 LIBDBUSMENU-GTK Library
Genericmenuitem

## Synopsis

    #define             GENERICMENUITEM_TYPE
    #define             GENERICMENUITEM                     (obj)
    #define             GENERICMENUITEM_CLASS               (klass)
    #define             IS_GENERICMENUITEM                  (obj)
    #define             IS_GENERICMENUITEM_CLASS            (klass)
    #define             GENERICMENUITEM_GET_CLASS           (obj)
                        Genericmenuitem;
                        GenericmenuitemClass;
                        GenericmenuitemPrivate;
    enum                GenericmenuitemCheckType;
    enum                GenericmenuitemState;
    GType               genericmenuitem_get_type            (void);
    void                genericmenuitem_set_check_type      (Genericmenuitem *item,
                                                             GenericmenuitemCheckType check_type);
    void                genericmenuitem_set_state           (Genericmenuitem *item,
                                                             GenericmenuitemState state);
    void                genericmenuitem_set_image           (Genericmenuitem *item,
                                                             GtkWidget *image);
    GtkWidget *         genericmenuitem_get_image           (Genericmenuitem *item);

## Object Hierarchy

      GObject
       +----GInitiallyUnowned
             +----GtkObject
                   +----GtkWidget
                         +----GtkContainer
                               +----GtkBin
                                     +----GtkItem
                                           +----GtkMenuItem
                                                 +----GtkCheckMenuItem
                                                       +----Genericmenuitem

## Implemented Interfaces

Genericmenuitem implements AtkImplementorIface, GtkBuildable and GtkActivatable.

## Description

## Details

### GENERICMENUITEM_TYPE

    #define GENERICMENUITEM_TYPE            (genericmenuitem_get_type ())

GENERICMENUITEM_TYPE

### GENERICMENUITEM()

    #define GENERICMENUITEM(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GENERICMENUITEM_TYPE, Genericmenuitem))

obj :

GENERICMENUITEM

### GENERICMENUITEM_CLASS()

    #define GENERICMENUITEM_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GENERICMENUITEM_TYPE, GenericmenuitemClass))

klass :

GENERICMENUITEM_CLASS

### IS_GENERICMENUITEM()

    #define IS_GENERICMENUITEM(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GENERICMENUITEM_TYPE))

obj :

IS_GENERICMENUITEM

### IS_GENERICMENUITEM_CLASS()

    #define IS_GENERICMENUITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GENERICMENUITEM_TYPE))

klass :

IS_GENERICMENUITEM_CLASS

### GENERICMENUITEM_GET_CLASS()

    #define GENERICMENUITEM_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GENERICMENUITEM_TYPE, GenericmenuitemClass))

obj :

GENERICMENUITEM_GET_CLASS

### Genericmenuitem

    typedef struct _Genericmenuitem Genericmenuitem;

Genericmenuitem

### GenericmenuitemClass

    typedef struct {
    	GtkCheckMenuItemClass parent_class;
    } GenericmenuitemClass;

GtkCheckMenuItemClass parent_class;

  Our parent GtkCheckMenuItemClass

GenericmenuitemClass

### GenericmenuitemPrivate

    typedef struct _GenericmenuitemPrivate GenericmenuitemPrivate;

GenericmenuitemPrivate

### enum GenericmenuitemCheckType

    enum GenericmenuitemCheckType {
    	GENERICMENUITEM_CHECK_TYPE_NONE,
    	GENERICMENUITEM_CHECK_TYPE_CHECKBOX,
    	GENERICMENUITEM_CHECK_TYPE_RADIO
    };

GenericmenuitemCheckType

### enum GenericmenuitemState

    enum GenericmenuitemState {
    	GENERICMENUITEM_STATE_UNCHECKED,
    	GENERICMENUITEM_STATE_CHECKED,
    	GENERICMENUITEM_STATE_INDETERMINATE
    };

GenericmenuitemState

### genericmenuitem_get_type ()

    GType               genericmenuitem_get_type            (void);

Returns :

genericmenuitem_get_type

### genericmenuitem_set_check_type ()

    void                genericmenuitem_set_check_type      (Genericmenuitem *item,
                                                             GenericmenuitemCheckType check_type);

This function changes the type of the checkmark that appears in the left hand gutter for the menuitem.

item :

  Genericmenuitem to set the type on

check_type :

  Which type of check should be displayed

genericmenuitem_set_check_type

### genericmenuitem_set_state ()

    void                genericmenuitem_set_state           (Genericmenuitem *item,
                                                             GenericmenuitemState state);

Sets the state of the check in the menu item. It does not require, but isn't really useful if the type of check that the menuitem is set to GENERICMENUITEM_CHECK_TYPE_NONE.

item :

  Genericmenuitem to set the type on

state :

genericmenuitem_set_state

### genericmenuitem_set_image ()

    void                genericmenuitem_set_image           (Genericmenuitem *item,
                                                             GtkWidget *image);

Sets the image of the menu item.

item :

  A Genericmenuitem

image :

  The image to set as the image of item

genericmenuitem_set_image

### genericmenuitem_get_image ()

    GtkWidget *         genericmenuitem_get_image           (Genericmenuitem *item);

Returns the image if there is one.

item :

  A Genericmenuitem

Returns :

  A pointer to the image of the item or NULL if there isn't one.

genericmenuitem_get_image