![]() |
libxputty 0.1
|
Go to the source code of this file.
Functions | |
void | _draw_listview (void *w_, void *user_data) |
_draw_listview - draw listview on expose call | |
void | _draw_list (void *w_, void *user_data) |
_draw_list - draw list on expose call | |
void | _update_list_view (void *w_) |
void | _list_motion (void *w_, void *xmotion_, void *user_data) |
_list_motion - follow mouse pointer to set prelight item | |
void | _list_key_pressed (void *w_, void *xkey_, void *user_data) |
_list_key_pressed - move listview or set active entry | |
void | _list_entry_released (void *w_, void *button_, void *user_data) |
_list_entry_released - move listview or set active entry | |
void | _list_entry_double_clicked (void *w_, void *button_, void *user_data) |
_list_entry_double_clicke - forward double click from list entry to list view | |
void | _leave_list (void *w_, void *user_data) |
_leave_list - draw list on pointer leave | |
void | _reconfigure_listview_viewport (void *w_, void *user_data) |
_reconfigure_listview_viewport - reconfigure the viewport adjustment on size changes | |
void | _configure_listview (void *w_, void *user_data) |
_configure_listview - configure the viewport on mapping | |
void | _set_listview_viewpoint (void *w_, void *user_data) |
_set_listview_viewpoint - move the view_port to position | |
void | _draw_listviewslider (void *w_, void *user_data) |
_draw_listviewslider - draw a slider on the viewport to indicate the view point | |
void | _set_listviewport (void *w_, void *user_data) |
_set_listviewport - move the view_port to position by listviewslider state | |
void _configure_listview | ( | void * | w_, |
void * | user_data | ||
) |
_configure_listview - configure the viewport on mapping
*w_ | - void pointer to view_port |
*user_data | - attached user_data |
Definition at line 306 of file xlistview_private.c.
References Widget_t::adj, adj_set_scale(), Widget_t::app, Xputty::dpy, Metrics_t::height, ViewList_t::list_size, os_get_window_metrics(), os_resize_window(), Widget_t::parent, Widget_t::parent_struct, ViewList_t::show_items, ViewList_t::slider, Adjustment_t::step, and Metrics_t::width.
Referenced by create_listview_viewport(), and listview_set_list().
void _draw_list | ( | void * | w_, |
void * | user_data | ||
) |
_draw_list - draw list on expose call
*w_ | - the Widget_t to draw |
*user_data | - attached user_data |
show label
Definition at line 34 of file xlistview_private.c.
References ACTIVE_, ViewList_t::active_item, Widget_t::adj, adj_get_value(), Widget_t::app, Resize_t::ascale, Xputty::big_font, ViewList_t::check_dir, Widget_t::crb, ViewList_t::file, Widget_t::flags, ViewList_t::folder, HAS_TOOLTIP, Metrics_t::height, hide_tooltip(), INSENSITIVE_, ViewList_t::list_names, ViewList_t::list_size, NORMAL_, Xputty::normal_font, os_get_window_metrics(), os_is_directory(), Widget_t::parent_struct, PRELIGHT_, ViewList_t::prelight_item, Widget_t::scale, SELECTED_, ViewList_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_listview_viewport().
void _draw_listview | ( | void * | w_, |
void * | user_data | ||
) |
_draw_listview - draw listview on expose call
*w_ | - the listview to draw |
*user_data | - attached user_data |
Definition at line 27 of file xlistview_private.c.
References XColor_t::active, BACKGROUND_, Widget_t::color_scheme, Widget_t::cr, XColor_t::normal, and set_pattern().
Referenced by add_listview().
void _draw_listviewslider | ( | void * | w_, |
void * | user_data | ||
) |
_draw_listviewslider - 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 327 of file xlistview_private.c.
References Widget_t::adj, adj_get_state(), Widget_t::crb, get_color_state(), Metrics_t::height, ViewList_t::list_size, Adjustment_t::max_value, NORMAL_, os_get_window_metrics(), Widget_t::parent_struct, use_bg_color_scheme(), use_shadow_color_scheme(), Metrics_t::visible, and Metrics_t::width.
Referenced by add_listview().
void _leave_list | ( | void * | w_, |
void * | user_data | ||
) |
_leave_list - draw list on pointer leave
*w_ | - the Widget_t to draw |
*user_data | - attached user_data |
Definition at line 286 of file xlistview_private.c.
References expose_widget(), Widget_t::parent_struct, and ViewList_t::prelight_item.
Referenced by create_listview_viewport().
void _list_entry_double_clicked | ( | void * | w_, |
void * | button_, | ||
void * | user_data | ||
) |
_list_entry_double_clicke - forward double click from list entry to list view
*w_ | - void pointer to the Widget_t listview |
*button_ | - void pointer to the XButtonEvent |
*user_data | - void pointer to attached user_data |
Definition at line 272 of file xlistview_private.c.
References Widget_t::adj, adj_get_value(), Func_t::double_click_callback, Widget_t::func, Metrics_t::height, ViewList_t::list_size, os_get_window_metrics(), Widget_t::parent, Widget_t::parent_struct, and XEvent::y.
Referenced by create_listview_viewport().
void _list_entry_released | ( | void * | w_, |
void * | button_, | ||
void * | user_data | ||
) |
_list_entry_released - move listview or set active entry
*w_ | - void pointer to the Widget_t listview |
*button_ | - void pointer to the XButtonEvent |
*user_data | - void pointer to attached user_data |
Definition at line 244 of file xlistview_private.c.
References ViewList_t::active_item, Widget_t::adj, adj_get_value(), adj_set_value(), XEvent::button, Func_t::button_release_callback, Widget_t::flags, Widget_t::func, HAS_POINTER, Metrics_t::height, ViewList_t::list_size, os_get_window_metrics(), Widget_t::parent, Widget_t::parent_struct, ViewList_t::prelight_item, and XEvent::y.
Referenced by create_listview_viewport().
void _list_key_pressed | ( | void * | w_, |
void * | xkey_, | ||
void * | user_data | ||
) |
_list_key_pressed - move listview or set active entry
*w_ | - void pointer to the Widget_t listview |
*xkey_ | - void pointer to the XKeyEvent |
*user_data | - void pointer to attached user_data |
Definition at line 219 of file xlistview_private.c.
References Widget_t::adj, adj_get_value(), Widget_t::app, Xputty::dpy, Widget_t::func, Metrics_t::height, key_mapping(), Func_t::key_press_callback, os_get_window_metrics(), Widget_t::parent, Widget_t::parent_struct, ViewList_t::prelight_item, and XEvent::y.
Referenced by create_listview_viewport().
void _list_motion | ( | void * | w_, |
void * | xmotion_, | ||
void * | user_data | ||
) |
_list_motion - follow mouse pointer to set prelight item
*w_ | - void pointer to the Widget_t listview |
*xmotion_ | - void pointer to the XMotionEvent |
*user_data | - void pointer to attached user_data |
Definition at line 202 of file xlistview_private.c.
References _update_list_view(), Widget_t::adj, adj_get_value(), Metrics_t::height, hide_tooltip(), os_get_window_metrics(), Widget_t::parent_struct, ViewList_t::prelight_item, ViewList_t::prev_prelight_item, and XEvent::y.
Referenced by create_listview_viewport().
void _reconfigure_listview_viewport | ( | void * | w_, |
void * | user_data | ||
) |
_reconfigure_listview_viewport - reconfigure the viewport adjustment on size changes
*w_ | - void pointer to view_port |
*user_data | - attached user_data |
Definition at line 293 of file xlistview_private.c.
References Widget_t::adj, adj_get_state(), adj_set_state(), Metrics_t::height, ViewList_t::list_size, Adjustment_t::max_value, os_get_window_metrics(), Widget_t::parent, Widget_t::parent_struct, and ViewList_t::show_items.
Referenced by create_listview_viewport().
void _set_listview_viewpoint | ( | void * | w_, |
void * | user_data | ||
) |
_set_listview_viewpoint - move the view_port to position
*w_ | - void pointer to view_port |
*user_data | - attached user_data |
Definition at line 320 of file xlistview_private.c.
References Widget_t::adj, adj_get_state(), adj_set_state(), expose_widget(), Widget_t::parent_struct, and ViewList_t::slider.
Referenced by create_listview_viewport().
void _set_listviewport | ( | void * | w_, |
void * | user_data | ||
) |
_set_listviewport - move the view_port to position by listviewslider state
*w_ | - void pointer to view_port |
*user_data | - attached user_data |
Definition at line 354 of file xlistview_private.c.
References Widget_t::adj, adj_get_state(), adj_set_state(), expose_widget(), and Widget_t::parent_struct.
Referenced by add_listview().
void _update_list_view | ( | void * | w_ | ) |
show label
Definition at line 112 of file xlistview_private.c.
References ACTIVE_, ViewList_t::active_item, Widget_t::adj, adj_get_value(), Widget_t::app, Resize_t::ascale, Xputty::big_font, Widget_t::buffer, ViewList_t::check_dir, Widget_t::cr, Widget_t::crb, ViewList_t::file, Widget_t::flags, ViewList_t::folder, HAS_TOOLTIP, hide_tooltip(), INSENSITIVE_, ViewList_t::list_names, ViewList_t::list_size, NORMAL_, Xputty::normal_font, os_get_window_metrics(), Widget_t::parent_struct, PRELIGHT_, ViewList_t::prelight_item, ViewList_t::prev_prelight_item, Widget_t::scale, SELECTED_, ViewList_t::show_items, show_tooltip(), tooltip_set_text(), use_base_color_scheme(), use_frame_color_scheme(), use_text_color_scheme(), and Metrics_t::width.
Referenced by _list_motion().