#include "xmenu_private.h"
Go to the source code of this file.
Functions | |
int | _menu_remove_low_dash (char *str) |
void | _draw_menu_label (void *w_, void *user_data) |
_draw_menu_label - draw the menu label on expose call More... | |
void | _check_menu_state (void *w_, void *user_data) |
_check_menu_state - follow the mouse pointer when a menu is active More... | |
void | _menu_released (void *w_, void *button_, void *user_data) |
_menu_released - popup the menu on click More... | |
void | _menu_entry_released (void *w_, void *item_, void *user_data) |
_menu_entry_released - the menu release func More... | |
void | _draw_menu (void *w_, void *user_data) |
_draw_menu - draw menu on expose call More... | |
void | _draw_item (void *w_, void *user_data) |
_draw_item - draw item on expose call More... | |
void | _draw_accel_item (void *w_, void *user_data) |
_draw_accel_item - draw accel item on expose call More... | |
void | _draw_check_item (void *w_, void *user_data) |
_draw_check_item - draw item on expose call More... | |
void | _draw_viewslider (void *w_, void *user_data) |
_draw_viewslider - draw a slider on the viewport to indicate the view point More... | |
void | _set_viewpoint (void *w_, void *user_data) |
_set_viewpoint - move the view_port to position More... | |
void | _check_item_button_pressed (void *w_, void *button_, void *user_data) |
_check_item_button_pressed - redraw item on button press More... | |
void | _radio_item_button_pressed (void *w_, void *button_, void *user_data) |
_radio_item_button_pressed - redraw item on button press More... | |
void | _configure_menu (Widget_t *parent, Widget_t *menu, int elem, bool above) |
_configure_menu - set final size and position of menu to a Widget_t More... | |
void _check_item_button_pressed | ( | void * | w_, |
void * | button_, | ||
void * | user_data | ||
) |
_check_item_button_pressed - redraw item on button press
*button | - the xbutton which is pressed |
*user_data | - attached user_data |
Definition at line 266 of file xmenu_private.c.
References adj_set_value(), Widget_t::adj_y, Widget_t::flags, HAS_FOCUS, and Adjustment_t::value.
void _check_menu_state | ( | void * | w_, |
void * | user_data | ||
) |
_check_menu_state - follow the mouse pointer when a menu is active
*w_ | - the menu to check |
*user_data | - attached user_data |
Definition at line 78 of file xmenu_private.c.
References Widget_t::app, Widget_t::childlist, childlist_has_child(), Childlist_t::childs, Xputty::dpy, Childlist_t::elem, Xputty::hold_grab, Widget_t::parent, pop_menu_show(), transparent_draw(), and widget_hide().
_configure_menu - set final size and position of menu to a Widget_t
*parent | - pointer to the Widget_t the menu should pop over |
*menu | - the menu to show |
Definition at line 281 of file xmenu_private.c.
References Widget_t::adj, Widget_t::app, Widget_t::childlist, Childlist_t::childs, CL_VIEWPORT, Widget_t::crb, Xputty::dpy, Childlist_t::elem, Resize_t::gravity, Widget_t::height, Widget_t::label, max, NORTHEAST, Widget_t::scale, set_adjustment(), Adjustment_t::value, Widget_t::widget, and Widget_t::width.
void _draw_accel_item | ( | void * | w_, |
void * | user_data | ||
) |
_draw_accel_item - draw accel item on expose call
*w_ | - the item to draw |
*user_data | - attached user_data |
show label
Definition at line 162 of file xmenu_private.c.
References _menu_remove_low_dash(), ACTIVE_, Widget_t::app, Widget_t::crb, Xputty::dpy, get_color_state(), Widget_t::input_label, Widget_t::label, NORMAL_, PRELIGHT_, SELECTED_, Widget_t::state, use_base_color_scheme(), use_frame_color_scheme(), use_text_color_scheme(), and Widget_t::widget.
void _draw_check_item | ( | void * | w_, |
void * | user_data | ||
) |
_draw_check_item - draw item on expose call
*w_ | - the item to draw |
*user_data | - attached user_data |
Definition at line 210 of file xmenu_private.c.
References _draw_item(), ACTIVE_, Widget_t::adj_y, Widget_t::app, Widget_t::crb, Xputty::dpy, Widget_t::flags, get_color_state(), IS_RADIO, use_fg_color_scheme(), use_shadow_color_scheme(), Adjustment_t::value, and Widget_t::widget.
void _draw_item | ( | void * | w_, |
void * | user_data | ||
) |
_draw_item - draw item on expose call
*w_ | - the item to draw |
*user_data | - attached user_data |
show label
Definition at line 129 of file xmenu_private.c.
References ACTIVE_, Widget_t::app, Widget_t::crb, Xputty::dpy, get_color_state(), Widget_t::label, NORMAL_, PRELIGHT_, SELECTED_, Widget_t::state, use_base_color_scheme(), use_frame_color_scheme(), use_text_color_scheme(), and Widget_t::widget.
void _draw_menu | ( | void * | w_, |
void * | user_data | ||
) |
_draw_menu - draw menu on expose call
*w_ | - the menu to draw |
*user_data | - attached user_data |
Definition at line 122 of file xmenu_private.c.
References Widget_t::crb, get_color_state(), and use_bg_color_scheme().
void _draw_menu_label | ( | void * | w_, |
void * | user_data | ||
) |
_draw_menu_label - draw the menu label on expose call
*w_ | - the menu to draw |
*user_data | - attached user_data |
Definition at line 44 of file xmenu_private.c.
References _menu_remove_low_dash(), Widget_t::app, Resize_t::ascale, Widget_t::crb, Xputty::dpy, get_color_state(), Widget_t::input_label, Widget_t::label, Xputty::normal_font, Widget_t::scale, use_text_color_scheme(), and Widget_t::widget.
void _draw_viewslider | ( | void * | w_, |
void * | user_data | ||
) |
_draw_viewslider - draw a slider on the viewport to indicate the view point
*w_ | - void pointer to view_port |
*user_data | - attached user_data |
Definition at line 234 of file xmenu_private.c.
References Widget_t::adj, adj_get_state(), Widget_t::app, Widget_t::crb, Xputty::dpy, Adjustment_t::max_value, NORMAL_, use_bg_color_scheme(), use_fg_color_scheme(), use_shadow_color_scheme(), and Widget_t::widget.
void _menu_entry_released | ( | void * | w_, |
void * | item_, | ||
void * | user_data | ||
) |
_menu_entry_released - the menu release func
*w_ | - void pointer to the Widget_t menu |
<em>item | - void pointer to the selected item *(int) |
*user_data | - void pointer to the item label *(const char**) |
Definition at line 105 of file xmenu_private.c.
References Widget_t::adj, adj_get_value(), adj_set_value(), Widget_t::app, Xputty::childlist, Childlist_t::childs, Childlist_t::elem, Widget_t::func, and Func_t::value_changed_callback.
void _menu_released | ( | void * | w_, |
void * | button_, | ||
void * | user_data | ||
) |
_menu_released - popup the menu on click
*w_ | - void pointer to the Widget_t button |
*button | - void pointer to XEvent.xbutton struct |
*user_data | - void pointer to attached user_data |
Definition at line 97 of file xmenu_private.c.
References Widget_t::childlist, Childlist_t::childs, Widget_t::flags, HAS_POINTER, and pop_menu_show().
int _menu_remove_low_dash | ( | char * | str | ) |
Definition at line 25 of file xmenu_private.c.
void _radio_item_button_pressed | ( | void * | w_, |
void * | button_, | ||
void * | user_data | ||
) |
_radio_item_button_pressed - redraw item on button press
*button | - the xbutton which is pressed |
*user_data | - attached user_data |
Definition at line 274 of file xmenu_private.c.
References Widget_t::flags, HAS_FOCUS, and radio_item_set_active().
void _set_viewpoint | ( | void * | w_, |
void * | user_data | ||
) |
_set_viewpoint - move the view_port to position
*w_ | - void pointer to view_port |
*user_data | - attached user_data |
Definition at line 257 of file xmenu_private.c.
References Widget_t::adj, adj_get_value(), Widget_t::app, Widget_t::childlist, Childlist_t::childs, Xputty::dpy, max, and Widget_t::widget.