![]() |
libxputty 0.1
|
Go to the source code of this file.
Functions | |
void | _draw_combobox_button (void *w_, void *user_data) |
_draw_combobox_button - internal draw the combobox button to the buffer | |
void | _draw_combobox (void *w_, void *user_data) |
_draw_combobox - internal draw the combobox to the buffer | |
void | _draw_combobox_menu (void *w_, void *user_data) |
_draw_combobox_menu - internal draw the combobox menu to the buffer | |
void | _draw_combobox_entrys (void *w_, void *user_data) |
_draw_combobox_entrys - internal draw the combobox entrys to the buffer | |
void | _combobox_motion (void *w_, void *xmotion_, void *user_data) |
_combobox_motion - mouse pointer move in viewport | |
void | _combobox_key_pressed (void *w_, void *xkey_, void *user_data) |
_combobox_key_released - viewport entry released key | |
void | _combobox_entry_released (void *w_, void *button_, void *user_data) |
_combobox_entry_released - viewport entry released mouse button | |
void | _leave_combobox (void *w_, void *user_data) |
_leave_combobox - mouse pointer leave the combobox | |
void | _reconfigure_combobox_viewport (void *w_, void *user_data) |
_reconfigure_combobox_viewport - set slider scale and step to match viewport entrys | |
void | _set_combobox_viewpoint (void *w_, void *user_data) |
_set_combobox_viewpoint - set the slider state from viewport position | |
void | _draw_combobox_menu_slider (void *w_, void *user_data) |
_draw_combobox_menu_slider - internal draw the combobox menu slider | |
void | _set_combobox_menu_viewport (void *w_, void *user_data) |
_set_combobox_menu_viewport - set the viewport position from slider state | |
void | _combobox_button_released (void *w_, void *button_, void *user_data) |
_combobox_button_released - popup menu on right click | |
void | _button_combobox_released (void *w_, void *button_, void *user_data) |
_button_combobox_released - popup the combobox menu | |
void | _entry_released (void *w_, void *item_, void *user_data) |
_entry_released - the combobox menu release func | |
void | _set_entry (void *w_, void *user_data) |
_set_entry - set the active combobox entry on adjustment change | |
void | _configure_combobox_menu (Widget_t *parent, Widget_t *menu, int elem, bool above) |
_configure_combobox_menu - set final size and position of menu to a Widget_t | |
void _button_combobox_released | ( | void * | w_, |
void * | button_, | ||
void * | user_data | ||
) |
_button_combobox_released - popup the combobox menu
*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 382 of file xcombobox_private.c.
References Widget_t::adj, adj_set_value(), XEvent::button, Widget_t::childlist, Childlist_t::childs, Widget_t::flags, HAS_POINTER, Widget_t::parent, pop_combobox_menu_show(), and Widget_t::state.
Referenced by add_combobox().
void _combobox_button_released | ( | void * | w_, |
void * | button_, | ||
void * | user_data | ||
) |
_combobox_button_released - popup menu on right 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 371 of file xcombobox_private.c.
References XEvent::button, Widget_t::childlist, Childlist_t::childs, Widget_t::flags, HAS_POINTER, pop_combobox_menu_show(), and Widget_t::state.
Referenced by add_combobox().
void _combobox_entry_released | ( | void * | w_, |
void * | button_, | ||
void * | user_data | ||
) |
_combobox_entry_released - viewport entry released mouse button
*w_ | - void pointer to the Widget_t viewport |
*button_ | - void pointer to XEvent.xbutton struct |
*user_data | - void pointer to attached user_data |
Definition at line 278 of file xcombobox_private.c.
References ComboBox_t::active_item, Widget_t::adj, adj_get_value(), adj_set_value(), XEvent::button, Func_t::button_release_callback, ComboBox_t::combobox, Widget_t::flags, Widget_t::func, HAS_POINTER, Metrics_t::height, Adjustment_t::min_value, os_get_window_metrics(), Widget_t::parent, Widget_t::parent_struct, ComboBox_t::prelight_item, and XEvent::y.
Referenced by create_combobox_viewport().
void _combobox_key_pressed | ( | void * | w_, |
void * | xkey_, | ||
void * | user_data | ||
) |
_combobox_key_released - viewport entry released key
*w_ | - void pointer to the Widget_t viewport |
*xkey_ | - void pointer to XEvent.xkey struct |
*user_data | - void pointer to attached user_data |
Definition at line 255 of file xcombobox_private.c.
References Widget_t::adj, adj_get_value(), Widget_t::app, Xputty::dpy, Metrics_t::height, key_mapping(), os_get_window_metrics(), Widget_t::parent_struct, ComboBox_t::prelight_item, and XEvent::y.
Referenced by create_combobox_viewport().
void _combobox_motion | ( | void * | w_, |
void * | xmotion_, | ||
void * | user_data | ||
) |
_combobox_motion - mouse pointer move in viewport
*w_ | - void pointer to the Widget_t viewport |
*xmotion_ | - void pointer to XEvent.xmotion struct |
*user_data | - void pointer to attached user_data |
Definition at line 240 of file xcombobox_private.c.
References Widget_t::adj, adj_get_value(), expose_widget(), Metrics_t::height, os_get_window_metrics(), Widget_t::parent_struct, ComboBox_t::prelight_item, and XEvent::y.
Referenced by create_combobox_viewport().
_configure_combobox_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 |
elem | - how many entrys to show |
above | - show menu below (0) or beside (1) the combobox |
Definition at line 415 of file xcombobox_private.c.
References Widget_t::adj, Widget_t::app, Widget_t::childlist, Childlist_t::childs, CL_VIEWPORT, Widget_t::crb, Xputty::dpy, Resize_t::gravity, Widget_t::height, IS_WIDGET, ComboBox_t::list_names, ComboBox_t::list_size, Adjustment_t::min_value, NORTHEAST, os_get_root_window(), os_get_screen_height(), os_move_window(), os_resize_window(), os_translate_coords(), Widget_t::parent_struct, Widget_t::scale, set_adjustment(), Adjustment_t::value, Widget_t::widget, and Widget_t::width.
Referenced by combobox_set_menu_size(), and pop_combobox_menu_show().
void _draw_combobox | ( | void * | w_, |
void * | user_data | ||
) |
_draw_combobox - internal draw the combobox to the buffer
*w_ | - void pointer to the Widget_t combobox |
*user_data | - void pointer to attached user_data |
Definition at line 100 of file xcombobox_private.c.
References ACTIVE_, Widget_t::adj, adj_get_value(), Widget_t::app, Resize_t::ascale, Widget_t::childlist, Childlist_t::childs, Widget_t::crb, Widget_t::flags, get_color_state(), HAS_TOOLTIP, Metrics_t::height, INSENSITIVE_, ComboBox_t::list_names, ComboBox_t::list_size, Adjustment_t::min_value, NORMAL_, Xputty::normal_font, os_get_window_metrics(), Widget_t::parent_struct, PRELIGHT_, Widget_t::scale, SELECTED_, Widget_t::state, tooltip_set_text(), use_frame_color_scheme(), use_shadow_color_scheme(), use_text_color_scheme(), Metrics_t::visible, and Metrics_t::width.
Referenced by add_combobox().
void _draw_combobox_button | ( | void * | w_, |
void * | user_data | ||
) |
_draw_combobox_button - internal draw the combobox button to the buffer
*w_ | - void pointer to the Widget_t combobox button |
*user_data | - void pointer to attached user_data |
Definition at line 26 of file xcombobox_private.c.
References _pattern_in(), _pattern_out(), ACTIVE_, Widget_t::adj_y, Widget_t::crb, get_color_state(), Metrics_t::height, NORMAL_, os_get_window_metrics(), PRELIGHT_, SELECTED_, Widget_t::state, use_fg_color_scheme(), use_frame_color_scheme(), use_text_color_scheme(), Adjustment_t::value, Metrics_t::visible, and Metrics_t::width.
Referenced by add_combobox().
void _draw_combobox_entrys | ( | void * | w_, |
void * | user_data | ||
) |
_draw_combobox_entrys - internal draw the combobox entrys to the buffer
*w_ | - void pointer to the Widget_t combobox |
*user_data | - void pointer to attached user_data |
show label
Definition at line 178 of file xcombobox_private.c.
References ACTIVE_, ComboBox_t::active_item, Widget_t::adj, adj_get_value(), Widget_t::crb, Widget_t::flags, HAS_TOOLTIP, Metrics_t::height, hide_tooltip(), ComboBox_t::list_names, ComboBox_t::list_size, NORMAL_, os_get_window_metrics(), Widget_t::parent_struct, PRELIGHT_, ComboBox_t::prelight_item, SELECTED_, ComboBox_t::show_items, show_tooltip(), tooltip_set_text(), use_base_color_scheme(), use_frame_color_scheme(), use_text_color_scheme(), Metrics_t::visible, and Metrics_t::width.
Referenced by create_combobox_viewport().
void _draw_combobox_menu | ( | void * | w_, |
void * | user_data | ||
) |
_draw_combobox_menu - internal draw the combobox menu to the buffer
*w_ | - void pointer to the Widget_t combobox |
*user_data | - void pointer to attached user_data |
Definition at line 171 of file xcombobox_private.c.
References XColor_t::active, BACKGROUND_, Widget_t::color_scheme, Widget_t::cr, XColor_t::normal, and set_pattern().
Referenced by create_combobox_menu().
void _draw_combobox_menu_slider | ( | void * | w_, |
void * | user_data | ||
) |
_draw_combobox_menu_slider - internal draw the combobox menu slider
*w_ | - void pointer to the Widget_t combobox |
*user_data | - void pointer to attached user_data |
Definition at line 337 of file xcombobox_private.c.
References Widget_t::adj, adj_get_state(), Widget_t::crb, get_color_state(), Metrics_t::height, ComboBox_t::list_size, Adjustment_t::max_value, NORMAL_, os_get_window_metrics(), Widget_t::parent_struct, PRELIGHT_, use_bg_color_scheme(), use_frame_color_scheme(), use_shadow_color_scheme(), Metrics_t::visible, and Metrics_t::width.
Referenced by create_combobox_menu().
void _entry_released | ( | void * | w_, |
void * | item_, | ||
void * | user_data | ||
) |
_entry_released - the combobox menu release func
*w_ | - void pointer to the Widget_t menu |
*item_ | - void pointer to the selected item *(int*) |
*user_data | - void pointer to the item label *(const char**) |
Definition at line 393 of file xcombobox_private.c.
References _set_entry(), Widget_t::childlist, Childlist_t::childs, ComboBox_t::combobox, and Widget_t::parent_struct.
Referenced by add_combobox().
void _leave_combobox | ( | void * | w_, |
void * | user_data | ||
) |
_leave_combobox - mouse pointer leave the combobox
*w_ | - void pointer to the Widget_t combobox |
*user_data | - void pointer to attached user_data |
Definition at line 307 of file xcombobox_private.c.
References expose_widget(), Widget_t::parent_struct, and ComboBox_t::prelight_item.
Referenced by create_combobox_viewport().
void _reconfigure_combobox_viewport | ( | void * | w_, |
void * | user_data | ||
) |
_reconfigure_combobox_viewport - set slider scale and step to match viewport entrys
*w_ | - void pointer to the Widget_t combobox |
*user_data | - void pointer to attached user_data |
Definition at line 314 of file xcombobox_private.c.
References Widget_t::adj, adj_get_state(), adj_set_scale(), adj_set_state(), CL_VIEWPORTSLIDER, Metrics_t::height, ComboBox_t::list_size, os_get_window_metrics(), Widget_t::parent, Widget_t::parent_struct, set_adjustment(), ComboBox_t::show_items, and ComboBox_t::slider.
Referenced by create_combobox_viewport().
void _set_combobox_menu_viewport | ( | void * | w_, |
void * | user_data | ||
) |
_set_combobox_menu_viewport - set the viewport position from slider state
*w_ | - void pointer to the Widget_t combobox |
*user_data | - void pointer to attached user_data |
Definition at line 364 of file xcombobox_private.c.
References Widget_t::adj, adj_get_state(), adj_set_state(), expose_widget(), and Widget_t::parent_struct.
Referenced by create_combobox_menu().
void _set_combobox_viewpoint | ( | void * | w_, |
void * | user_data | ||
) |
_set_combobox_viewpoint - set the slider state from viewport position
*w_ | - void pointer to the Widget_t combobox |
*user_data | - void pointer to attached user_data |
Definition at line 330 of file xcombobox_private.c.
References Widget_t::adj, adj_get_state(), adj_set_state(), expose_widget(), Widget_t::parent_struct, and ComboBox_t::slider.
Referenced by create_combobox_viewport().
void _set_entry | ( | void * | w_, |
void * | user_data | ||
) |
_set_entry - set the active combobox entry on adjustment change
*w_ | - void pointer to the Widget_t combobox |
*user_data | - void pointer to the item label *(const char**) |
Definition at line 400 of file xcombobox_private.c.
References ComboBox_t::active_item, Widget_t::adj, adj_get_state(), adj_get_value(), adj_set_state(), adj_set_value(), Widget_t::childlist, Childlist_t::childs, Widget_t::label, ComboBox_t::list_names, ComboBox_t::list_size, Adjustment_t::min_value, os_transparent_draw(), Widget_t::parent_struct, and ComboBox_t::slider.
Referenced by _entry_released(), and add_combobox().