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 struct Ewl_Menu Ewl_Menu
typedef struct 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_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_IS (  )     (ewl_widget_type_is(EWL_WIDGET(w), EWL_MENU_TYPE))


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_hide ( 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

References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_MENU_TYPE, ewl_widget_hide(), and popup.

Referenced by ewl_context_menu_cb_child_mouse_in(), ewl_context_menu_cb_hide(), and ewl_context_menu_cb_mouse_down().

void ewl_menu_from_info ( Ewl_Menu menu,
Ewl_Menu_Info info 
)

Ewl_Widget* ewl_menu_new ( void   ) 

Create a new internal menu.

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

References DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_PTR, ewl_menu_init(), EWL_WIDGET, ewl_widget_destroy(), and NEW.

Referenced by ewl_combo_submenu_new(), ewl_filedialog_init(), and ewl_menubar_from_info().


Copyright © Enlightenment.org

Enlightened Widget Library Documentation Generated: Sat May 17 16:51:10 2008