## Genericmenuitem

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()

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

`obj` : |

### GENERICMENUITEM_CLASS()

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

`klass` : |

### IS_GENERICMENUITEM()

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

`obj` : |

### IS_GENERICMENUITEM_CLASS()

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

`klass` : |

### GENERICMENUITEM_GET_CLASS()

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

`obj` : |

### Genericmenuitem

    typedef struct _Genericmenuitem Genericmenuitem;

### GenericmenuitemClass

    typedef struct {
    	GtkCheckMenuItemClass parent_class;
    } GenericmenuitemClass;

GtkCheckMenuItemClass `parent_class`; | Our parent GtkCheckMenuItemClass

### GenericmenuitemPrivate

    typedef struct _GenericmenuitemPrivate GenericmenuitemPrivate;

### enum GenericmenuitemCheckType

    enum GenericmenuitemCheckType {
    	GENERICMENUITEM_CHECK_TYPE_NONE,
    	GENERICMENUITEM_CHECK_TYPE_CHECKBOX,
    	GENERICMENUITEM_CHECK_TYPE_RADIO
    };

### enum GenericmenuitemState

    enum GenericmenuitemState {
    	GENERICMENUITEM_STATE_UNCHECKED,
    	GENERICMENUITEM_STATE_CHECKED,
    	GENERICMENUITEM_STATE_INDETERMINATE
    };

### genericmenuitem_get_type ()

    GType               genericmenuitem_get_type            (void);

Returns : |

### 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_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_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_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.