Ewl_Context_Menu: A context menu
Detailed Description
- Remarks:
- Inherits from Ewl_Popup.
Define Documentation
#define EWL_CONTEXT_MENU | ( | context_menu | ) | ((Ewl_Context_Menu *) context_menu) |
Typecast a pointer to an Ewl_Context_Menu pointer.
#define EWL_CONTEXT_MENU_IS | ( | w | ) |
Value:
Returns TRUE if the widget is an Ewl_Context_Menu, FALSE otherwise#define EWL_CONTEXT_MENU_TYPE "context_menu" |
The type name for the Ewl_Context_Menu widget
Typedef Documentation
typedef struct Ewl_Context_Menu Ewl_Context_Menu |
Function Documentation
void ewl_context_menu_attach | ( | Ewl_Context_Menu * | cm, | |
Ewl_Widget * | w | |||
) |
- Parameters:
-
cm,: the context menu to attach w,: a widget that gets the context menu attached
void ewl_context_menu_cb_attach_mouse_down | ( | Ewl_Widget * | w, | |
void * | ev_data, | |||
void * | user_data | |||
) |
void ewl_context_menu_cb_child_add | ( | Ewl_Container * | c, | |
Ewl_Widget * | w | |||
) |
void ewl_context_menu_cb_child_clicked | ( | Ewl_Widget * | w, | |
void * | ev_data, | |||
void * | user_data | |||
) |
void ewl_context_menu_cb_child_mouse_in | ( | Ewl_Widget * | w, | |
void * | ev_data, | |||
void * | user_data | |||
) |
void ewl_context_menu_cb_child_remove | ( | Ewl_Container * | c, | |
Ewl_Widget * | w, | |||
int | idx | |||
) |
void ewl_context_menu_cb_focus_in | ( | Ewl_Widget * | w, | |
void * | ev_data, | |||
void * | user_data | |||
) |
void ewl_context_menu_cb_hide | ( | Ewl_Widget * | w, | |
void * | ev_data, | |||
void * | user_data | |||
) |
void ewl_context_menu_cb_mouse_down | ( | Ewl_Widget * | w, | |
void * | ev_data, | |||
void * | user_data | |||
) |
void ewl_context_menu_cb_mouse_move | ( | Ewl_Widget * | w, | |
void * | ev_data, | |||
void * | user_data | |||
) |
void ewl_context_menu_container_set | ( | Ewl_Context_Menu * | cm, | |
Ewl_Container * | c | |||
) |
set a custom container for the context menu
- Parameters:
-
cm,: the context menu to set the container c,: the container to use inside of the context menu, if c is NULL then this function will use a vbox instead
void ewl_context_menu_detach | ( | Ewl_Context_Menu * | cm, | |
Ewl_Widget * | w | |||
) |
- Parameters:
-
cm,: the context menu to detach w,: a widget that has cm attached
int ewl_context_menu_init | ( | Ewl_Context_Menu * | cm | ) |
Initialize the context_menu and inherited fields.
- Parameters:
-
cm,: the context_menu to initialize
- Returns:
- Returns TRUE on success, FALSE on failure.
Ewl_Widget* ewl_context_menu_new | ( | void | ) |
Allocate a new context_menu widget.
- Returns:
- Returns pointer to new context_menu widget on success, NULL on failure.