Data Structures | |
struct | Ewl_Menu_Item |
Inherits from Ewl_Box to gain it's layout abilities, places policy on top of the box framework to provide a simple menu layout of icon and label. More... | |
struct | Ewl_Menu_Separator |
Inherits from Ewl_Menu_Item and limits it's functionality to simply provide a separator between items in a menu. More... | |
struct | Ewl_Menu_Item |
Inherits from Ewl_Box to gain it's layout abilities, places policy on top of the box framework to provide a simple menu layout of icon and label. More... | |
struct | Ewl_Menu_Separator |
Inherits from Ewl_Menu_Item and limits it's functionality to simply provide a separator between items in a menu. More... | |
Defines | |
#define | EWL_MENU_ITEM(mi) ((Ewl_Menu_Item *)mi) |
Typecasts a pointer to an Ewl_Menu_Item pointer. | |
#define | EWL_MENU_SEPARATOR(s) ((Ewl_Menu_Separator *)s) |
Typecasts a pointer to an Ewl_Menu_Separator pointer. | |
#define | EWL_MENU_BASE(menu) ((Ewl_Menu_Base *) menu) |
Typecasts a pointer to an Ewl_Menu_Base pointer. | |
Typedefs | |
typedef Ewl_Menu_Item | Ewl_Menu_Item |
This serves as a basis for all menu related entries. | |
typedef Ewl_Menu_Separator | Ewl_Menu_Separator |
A simple separator widget for putting lines between items in the menu. | |
typedef Ewl_Menu_Base | Ewl_Menu_Base |
Provides the basic functionality common to the various menu classes. | |
Functions | |
Ewl_Widget * | ewl_menu_item_new (char *image, char *title) |
Create a new menu item to place in a menu. | |
int | ewl_menu_item_init (Ewl_Menu_Item *menu, char *image, char *title) |
Initialize the fields of a menu item to their defaults. | |
char * | ewl_menu_item_text_get (Ewl_Menu_Item *item) |
Get the text of a menu item. | |
void | ewl_menu_item_text_set (Ewl_Menu_Item *item, char *text) |
Sets the text of a menu item. | |
char * | ewl_menu_item_image_get (Ewl_Menu_Item *item) |
Get the image of a menu item. | |
void | ewl_menu_item_image_set (Ewl_Menu_Item *item, char *image) |
Set the image of a menu item. | |
Ewl_Widget * | ewl_menu_separator_new (void) |
Create a separator menu item. | |
void | ewl_menu_separator_init (Ewl_Menu_Separator *sep) |
Initialize a menu separator item. | |
void | ewl_menu_base_init (Ewl_Menu_Base *menu, char *image, char *title) |
Initialize a menu item to default values. |
|
This serves as a basis for all menu related entries. It provides the most basic layout facilities for items in a menu. |
|
A simple separator widget for putting lines between items in the menu. Special widget so enclosing menus can assume it can be treated as an Ewl_Menu_Item. |
|
Initialize a menu item to default values.
|
|
Get the image of a menu item.
|
|
Set the image of a menu item.
|
|
Initialize the fields of a menu item to their defaults.
|
|
Create a new menu item to place in a menu.
|
|
Get the text of a menu item.
|
|
Sets the text of a menu item.
|
|
Initialize a menu separator item.
|
|
Create a separator menu item.
|