Etk
Main Page Object Hierarchy Data Structures Related Pages
Etk

etk_menu_item.c File Reference


Detailed Description


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.