Download

Support

Ewl_Menu_Item: The basic menu item


Detailed Description

The basic menu item

Remarks:
Inherits from Ewl_Button.


Data Structures

struct  Ewl_Menu_Item
 Inherits from Ewl_Button and provides a basic menu item widget. More...

Defines

#define EWL_MENU_ITEM(mi)   ((Ewl_Menu_Item *) mi)
#define EWL_MENU_ITEM_IS(w)   (ewl_widget_type_is(EWL_WIDGET(w), EWL_MENU_ITEM_TYPE))
#define EWL_MENU_ITEM_TYPE   "menu_item"

Typedefs

typedef Ewl_Menu_Item Ewl_Menu_Item

Functions

int ewl_menu_item_init (Ewl_Menu_Item *menu)
 Initialize the fields of a menu item to their defaults.
Ewl_Widgetewl_menu_item_new (void)
 Create a new menu item to place in a menu.

Define Documentation

#define EWL_MENU_ITEM ( mi   )     ((Ewl_Menu_Item *) mi)

Typecasts a pointer to an Ewl_Menu_Item pointer.

#define EWL_MENU_ITEM_IS (  )     (ewl_widget_type_is(EWL_WIDGET(w), EWL_MENU_ITEM_TYPE))

Returns TRUE if the widget is an Ewl_Menu_Item, FALSE otherwise

#define EWL_MENU_ITEM_TYPE   "menu_item"

The type name for the Ewl_Menu_Item widget


Typedef Documentation

typedef struct Ewl_Menu_Item Ewl_Menu_Item

This serves as a basis for all menu related entries. It provides the most basic layout facilities for items in a menu.


Function Documentation

int ewl_menu_item_init ( Ewl_Menu_Item item  ) 

Initialize the fields of a menu item to their defaults.

Parameters:
item,: the item to be initialized
Returns:
Returns TRUE on success or FALSE on failure

Ewl_Widget* ewl_menu_item_new ( void   ) 

Create a new menu item to place in a menu.

Returns:
Returns a pointer to a new menu item on success, NULL on failure.


Copyright © Enlightenment.org

Enlightened Widget Library Documentation Generated: Sun Sep 27 01:49:47 2009