#include "xputty.h"

Go to the source code of this file.
Macros | |
| #define | XMENU_H_ |
Functions | |
| void | pop_menu_show (Widget_t *parent, Widget_t *menu, int elem, bool above) |
| pop_menu_show - pop up a menu to a Widget_t More... | |
| Widget_t * | create_viewport (Widget_t *parent, int width, int height) |
| create_viewport - create a viewport on a menu to a Widget_t More... | |
| Widget_t * | add_menu (Widget_t *parent, const char *label, int x, int y, int width, int height) |
| add_menu - add a menu to a Widget_t More... | |
| Widget_t * | menu_add_entry (Widget_t *wid, const char *label) |
| menu_add_entry - add a entry to menu More... | |
| Widget_t * | menu_add_radio_entry (Widget_t *wid, const char *label) |
| menu_add_radio_entry- add a radio entry to menu More... | |
| Widget_t * | create_menu (Widget_t *parent, int height) |
| create_menu - create a menu to a Widget_t More... | |
| Widget_t * | menu_add_item (Widget_t *menu, const char *label) |
| menu_add_item - add a item to menu More... | |
| Widget_t * | menu_add_accel_item (Widget_t *menu, const char *label) |
| menu_add_accel_item - add a accel item to menu More... | |
| Widget_t * | menu_add_check_item (Widget_t *menu, const char *label) |
| menu_add_check_item - add a item to menu More... | |
| void | radio_item_set_active (Widget_t *w) |
| radio_item_set_active - activate selected radio item More... | |
| Widget_t * | menu_add_radio_item (Widget_t *menu, const char *label) |
| menu_add_radio_item - add a radio item to menu More... | |
| void | menu_add_numeric_items (Widget_t *menu, int *imin, int *imax) |
| menu_add_numeric_items - add numeric items from imin to imax to menu More... | |
add_menu - add a menu to a Widget_t
| *parent | - pointer to the Widget_t the menu should pop over |
| *label | - the label of the menu |
| x,y,width,height | - the position/geometry to create the menu |
Definition at line 69 of file xmenu.c.
References _check_menu_state(), _draw_menu_label(), _menu_entry_released(), _menu_released(), add_adjustment(), Widget_t::adj, Func_t::adj_callback, Widget_t::adj_y, Widget_t::app, Func_t::button_release_callback, CL_NONE, create_menu(), create_widget(), Func_t::enter_callback, Func_t::expose_callback, Widget_t::func, Resize_t::gravity, Widget_t::label, Func_t::leave_callback, NONE, Widget_t::scale, set_active_radio_entry(), Widget_t::state, and transparent_draw().
create_menu - create a menu to a Widget_t
| *parent | - pointer to the Widget_t the menu should pop over |
| height | - define the height of a single menu item |
Definition at line 107 of file xmenu.c.
References _draw_menu(), Widget_t::app, Widget_t::childlist, childlist_add_child(), create_viewport(), create_window(), Xputty::dpy, Func_t::expose_callback, Widget_t::flags, Widget_t::func, Resize_t::gravity, IS_POPUP, NONE, Widget_t::scale, and Widget_t::widget.
create_viewport - create a viewport on a menu to a Widget_t
| *parent | - pointer to the Widget_t the menu should pop over |
| width | - define the width of the viewport |
| height | - define the height of the viewport |
Definition at line 40 of file xmenu.c.
References _draw_viewslider(), _set_viewpoint(), add_adjustment(), Widget_t::adj, Func_t::adj_callback, Widget_t::adj_y, Widget_t::app, CL_VIEWPORT, create_widget(), Func_t::expose_callback, Widget_t::flags, Widget_t::func, Resize_t::gravity, NONE, Widget_t::scale, and USE_TRANSPARENCY.
menu_add_accel_item - add a accel item to menu
| *menu | - pointer to the Widget_t menu |
| *label | - Label to show on the menu |
Definition at line 156 of file xmenu.c.
References _draw_accel_item(), Func_t::expose_callback, Widget_t::func, and menu_add_item().
menu_add_check_item - add a item to menu
| *menu | - pointer to the Widget_t menu |
| *label | - Label to show on the menu |
Definition at line 162 of file xmenu.c.
References _check_item_button_pressed(), _draw_check_item(), add_adjustment(), Widget_t::adj, Widget_t::adj_y, Func_t::button_press_callback, CL_TOGGLE, Func_t::expose_callback, Widget_t::func, and menu_add_item().
menu_add_entry - add a entry to menu
| *wid | - pointer to the Widget_t menu |
| *label | - Label to show on the menu |
Definition at line 89 of file xmenu.c.
References Widget_t::adj, Widget_t::childlist, Childlist_t::childs, CL_NONE, Adjustment_t::max_value, menu_add_accel_item(), and set_adjustment().
menu_add_item - add a item to menu
| *menu | - pointer to the Widget_t menu |
| *label | - Label to show on the menu |
Definition at line 137 of file xmenu.c.
References _draw_item(), Widget_t::adj, Widget_t::app, Widget_t::childlist, childlist_has_child(), Childlist_t::childs, CL_VIEWPORT, create_widget(), Xputty::dpy, Func_t::enter_callback, Func_t::expose_callback, Widget_t::flags, Widget_t::func, Resize_t::gravity, Widget_t::label, Func_t::leave_callback, Adjustment_t::max_value, MENUITEM, Widget_t::scale, set_adjustment(), transparent_draw(), USE_TRANSPARENCY, and Widget_t::widget.
| void menu_add_numeric_items | ( | Widget_t * | menu, |
| int * | imin, | ||
| int * | imax | ||
| ) |
menu_add_numeric_items - add numeric items from imin to imax to menu
| *menu | - pointer to the Widget_t menu |
| *imin | - the low number of the numeric items |
| *imax | - the high number of the numeric items |
Definition at line 193 of file xmenu.c.
References _draw_item(), Widget_t::adj, Widget_t::app, Widget_t::childlist, childlist_has_child(), Childlist_t::childs, CL_VIEWPORT, create_widget(), Xputty::dpy, Func_t::enter_callback, Func_t::expose_callback, Widget_t::flags, Widget_t::func, Resize_t::gravity, Widget_t::input_label, Widget_t::label, Func_t::leave_callback, Adjustment_t::max_value, MENUITEM, Widget_t::scale, set_adjustment(), transparent_draw(), USE_TRANSPARENCY, and Widget_t::widget.
menu_add_radio_entry- add a radio entry to menu
| *wid | - pointer to the Widget_t menu |
| *label | - Label to show on the menu |
Definition at line 98 of file xmenu.c.
References Widget_t::adj, Widget_t::childlist, Childlist_t::childs, CL_NONE, Adjustment_t::max_value, menu_add_radio_item(), and set_adjustment().
menu_add_radio_item - add a radio item to menu
| *menu | - pointer to the Widget_t menu |
| *label | - Label to show on the menu |
Definition at line 183 of file xmenu.c.
References _draw_check_item(), _radio_item_button_pressed(), Func_t::button_press_callback, Func_t::expose_callback, Widget_t::flags, Widget_t::func, IS_RADIO, menu_add_check_item(), and radio_item_set_active().
pop_menu_show - pop up a menu to a Widget_t
| *parent | - pointer to the Widget_t the menu should pop over |
| *menu | - the menu to show |
Definition at line 26 of file xmenu.c.
References _configure_menu(), Widget_t::app, Widget_t::childlist, childlist_has_child(), Childlist_t::childs, debug_print, Xputty::dpy, Childlist_t::elem, Xputty::hold_grab, and pop_widget_show_all().
| void radio_item_set_active | ( | Widget_t * | w | ) |
radio_item_set_active - activate selected radio item
| *w | - the Widget_t to activate |
Definition at line 171 of file xmenu.c.
References Widget_t::adj, adj_set_value(), Widget_t::adj_y, Widget_t::childlist, Childlist_t::childs, Childlist_t::elem, Widget_t::flags, IS_RADIO, and Widget_t::parent.