Etk
Main Page Object Hierarchy Data Structures Related Pages
Etk

etk_menu_item.h File Reference


Detailed Description


Data Structures

struct  Etk_Menu_Item
 [Widget] An item that can be packed in a menu shell More...
struct  Etk_Menu_Item_Separator
 [Widget] A menu-item used to separate two other items (looks like an horizontal bar in a menu) More...
struct  Etk_Menu_Item_Image
 [Widget] A menu-item with an image at the left of the label More...
struct  Etk_Menu_Item_Check
 [Widget] A menu-item with a checkbox at the left of the label More...
struct  Etk_Menu_Item_Radio
 [Widget] A menu-item with a radiobox at the left of the label More...

Defines

#define ETK_MENU_ITEM_TYPE   (etk_menu_item_type_get())
#define ETK_MENU_ITEM(obj)   (ETK_OBJECT_CAST((obj), ETK_MENU_ITEM_TYPE, Etk_Menu_Item))
#define ETK_IS_MENU_ITEM(obj)   (ETK_OBJECT_CHECK_TYPE((obj), ETK_MENU_ITEM_TYPE))
#define ETK_MENU_ITEM_SEPARATOR_TYPE   (etk_menu_item_separator_type_get())
#define ETK_MENU_ITEM_SEPARATOR(obj)   (ETK_OBJECT_CAST((obj), ETK_MENU_ITEM_SEPARATOR_TYPE, Etk_Menu_Item_Separator))
#define ETK_IS_MENU_ITEM_SEPARATOR(obj)   (ETK_OBJECT_CHECK_TYPE((obj), ETK_MENU_ITEM_SEPARATOR_TYPE))
#define ETK_MENU_ITEM_IMAGE_TYPE   (etk_menu_item_image_type_get())
#define ETK_MENU_ITEM_IMAGE(obj)   (ETK_OBJECT_CAST((obj), ETK_MENU_ITEM_IMAGE_TYPE, Etk_Menu_Item_Image))
#define ETK_IS_MENU_ITEM_IMAGE(obj)   (ETK_OBJECT_CHECK_TYPE((obj), ETK_MENU_ITEM_IMAGE_TYPE))
#define ETK_MENU_ITEM_CHECK_TYPE   (etk_menu_item_check_type_get())
#define ETK_MENU_ITEM_CHECK(obj)   (ETK_OBJECT_CAST((obj), ETK_MENU_ITEM_CHECK_TYPE, Etk_Menu_Item_Check))
#define ETK_IS_MENU_ITEM_CHECK(obj)   (ETK_OBJECT_CHECK_TYPE((obj), ETK_MENU_ITEM_CHECK_TYPE))
#define ETK_MENU_ITEM_RADIO_TYPE   (etk_menu_item_radio_type_get())
#define ETK_MENU_ITEM_RADIO(obj)   (ETK_OBJECT_CAST((obj), ETK_MENU_ITEM_RADIO_TYPE, Etk_Menu_Item_Radio))
#define ETK_IS_MENU_ITEM_RADIO(obj)   (ETK_OBJECT_CHECK_TYPE((obj), ETK_MENU_ITEM_RADIO_TYPE))

Functions

Etk_Widget * etk_menu_item_new (void)
 Creates a new menu-item with an empty label.
Etk_Widget * etk_menu_item_new_with_label (const char *label)
 Creates a new menu-item and sets its label to label.
Etk_Widget * etk_menu_item_new_from_stock (Etk_Stock_Id stock_id)
 Creates a new menu-item with a label defined by the stock-id.
void etk_menu_item_label_set (Etk_Menu_Item *menu_item, const char *label)
 Sets the label of the menu-item.
const char * etk_menu_item_label_get (Etk_Menu_Item *menu_item)
 Gets the label of the menu-item.
void etk_menu_item_set_from_stock (Etk_Menu_Item *menu_item, Etk_Stock_Id stock_id)
 Sets the label of the menu-item from a stock-id. If the menu-item is an Etk_Menu_Item_Image, the image is also changed depending on the stock-id.
void etk_menu_item_submenu_set (Etk_Menu_Item *menu_item, Etk_Menu *submenu)
 Sets the submenu of the menu-item: the submenu will be popped up when the menu-item is selected.
Etk_Menu * etk_menu_item_submenu_get (Etk_Menu_Item *menu_item)
 Gets the submenu attached to the menu-item.
void etk_menu_item_select (Etk_Menu_Item *menu_item)
 Selects the menu-item.
void etk_menu_item_unselect (Etk_Menu_Item *menu_item)
 Unselects the menu-item.
void etk_menu_item_activate (Etk_Menu_Item *menu_item)
 Activates the menu-item.
Etk_Widget * etk_menu_item_separator_new (void)
 Creates a new separator menu-item.
Etk_Widget * etk_menu_item_image_new (void)
 Creates a new image menu-item with an empty label.
Etk_Widget * etk_menu_item_image_new_with_label (const char *label)
 Creates a new image menu-item and sets its label to label.
Etk_Widget * etk_menu_item_image_new_from_stock (Etk_Stock_Id stock_id)
 Creates a new image menu-item with the label and the image defined by the stock-id.
void etk_menu_item_image_set (Etk_Menu_Item_Image *image_item, Etk_Image *image)
 Sets the image of the menu-item. The image will be displayed on the left of the label.
Etk_Widget * etk_menu_item_check_new (void)
 Creates a new check menu-item with an empty label.
Etk_Widget * etk_menu_item_check_new_with_label (const char *label)
 Creates a new check menu-item and sets the label to label.
void etk_menu_item_check_active_set (Etk_Menu_Item_Check *check_item, Etk_Bool active)
 Sets whether or not the check menu item is active (i.e. checked).
Etk_Bool etk_menu_item_check_active_get (Etk_Menu_Item_Check *check_item)
 Gets whether the check menu-item is active.
Etk_Widget * etk_menu_item_radio_new (Evas_List **group)
 Creates a new radio menu-item with an empty label.
Etk_Widget * etk_menu_item_radio_new_from_widget (Etk_Menu_Item_Radio *radio_item)
 Creates a new radio menu-item with an empty label and adds it to the group of another radio menu-item.
Etk_Widget * etk_menu_item_radio_new_with_label (const char *label, Evas_List **group)
 Creates a new radio menu-item and sets its label to label.
Etk_Widget * etk_menu_item_radio_new_with_label_from_widget (const char *label, Etk_Menu_Item_Radio *radio_item)
 Creates a new radio menu-item and sets its label to label. It is then added to the group of radio_item.
void etk_menu_item_radio_group_set (Etk_Menu_Item_Radio *radio_item, Evas_List **group)
 Sets the group of the radio menu-item.
Evas_List ** etk_menu_item_radio_group_get (Etk_Menu_Item_Radio *radio_item)
 Gets the group of the radio menu-item.