Download

Support

Ewl_Menu: A Simple Windowed Menu


Detailed Description

Defines a menu used globally. The contents on the menu are drawn outside of the canvas.

Remarks:
Inherits from Ewl_Menu_Item.

Tutorial


Data Structures

struct  Ewl_Menu
 Inherits from the Ewl_Menu_Base and extends to provide a simple menu. More...
struct  Ewl_Menu_Info
 Provides a simple structure to contain menu information. More...

Defines

#define EWL_MENU(menu)   ((Ewl_Menu *) menu)
#define EWL_MENU_IS(w)   (ewl_widget_type_is(EWL_WIDGET(w), EWL_MENU_TYPE))
#define EWL_MENU_TYPE   "menu"

Typedefs

typedef Ewl_Menu Ewl_Menu
typedef Ewl_Menu_Info Ewl_Menu_Info

Functions

void ewl_menu_cb_configure (Ewl_Widget *w, void *ev_data, void *user_data)
void ewl_menu_cb_destroy (Ewl_Widget *w, void *ev, void *data)
void ewl_menu_cb_expand (Ewl_Widget *w, void *ev_data, void *user_data)
void ewl_menu_cb_hide (Ewl_Widget *w, void *ev_data, void *user_data)
void ewl_menu_cb_mouse_move (Ewl_Widget *w, void *ev_data, void *user_data)
void ewl_menu_cb_popup_destroy (Ewl_Widget *w, void *ev, void *data)
void ewl_menu_cb_realize (Ewl_Widget *w, void *ev_data, void *user_data)
void ewl_menu_collapse (Ewl_Menu *menu)
 Collapses the popup portion of the menu.
void ewl_menu_expand (Ewl_Menu *menu)
 Expand the popup portion of the menu.
void ewl_menu_from_info (Ewl_Menu *menu, Ewl_Menu_Info *info)
 Initializes menu with info.
int ewl_menu_init (Ewl_Menu *menu)
 Initialize an internal menu to starting values.
int ewl_menu_mouse_feed (Ewl_Menu *menu, int x, int y)
Ewl_Widgetewl_menu_new (void)
 Create a new internal menu.

Define Documentation

#define EWL_MENU ( menu   )     ((Ewl_Menu *) menu)

Typecasts a pointer to an Ewl_Menu pointer.

#define EWL_MENU_IS (  )     (ewl_widget_type_is(EWL_WIDGET(w), EWL_MENU_TYPE))

Returns TRUE if the widget is an Ewl_Menu, FALSE otherwise

#define EWL_MENU_TYPE   "menu"

The type name for the Ewl_Menu widget


Typedef Documentation

typedef struct Ewl_Menu Ewl_Menu

A simple internal menu, it is limited to drawing within the current evas.

typedef struct Ewl_Menu_Info Ewl_Menu_Info

A simple struct to contain menu information


Function Documentation

void ewl_menu_cb_configure ( Ewl_Widget w,
void *  ev_data,
void *  user_data 
)

void ewl_menu_cb_destroy ( Ewl_Widget w,
void *  ev,
void *  data 
)

void ewl_menu_cb_expand ( Ewl_Widget w,
void *  ev_data,
void *  user_data 
)

void ewl_menu_cb_hide ( Ewl_Widget w,
void *  ev_data,
void *  user_data 
)

void ewl_menu_cb_mouse_move ( Ewl_Widget w,
void *  ev_data,
void *  user_data 
)

void ewl_menu_cb_popup_destroy ( Ewl_Widget w,
void *  ev,
void *  data 
)

void ewl_menu_cb_realize ( Ewl_Widget w,
void *  ev_data,
void *  user_data 
)

void ewl_menu_collapse ( Ewl_Menu menu  ) 

Collapses the popup portion of the menu.

Parameters:
menu,: the menu to work with
Returns:
Returns no value

void ewl_menu_expand ( Ewl_Menu menu  ) 

Expand the popup portion of the menu.

Parameters:
menu,: the menu to work with
Returns:
Returns no value

void ewl_menu_from_info ( Ewl_Menu menu,
Ewl_Menu_Info info 
)

Initializes menu with info.

Parameters:
menu,: The menu to setup
info,: The info to set into the menu
Returns:
Returns no value

int ewl_menu_init ( Ewl_Menu menu  ) 

Initialize an internal menu to starting values.

Parameters:
menu,: the menu to initialize
Returns:
Returns no value.

int ewl_menu_mouse_feed ( Ewl_Menu menu,
int  x,
int  y 
)

Ewl_Widget* ewl_menu_new ( void   ) 

Create a new internal menu.

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


Copyright © Enlightenment.org

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