![]() |
libxputty 0.1
|
Xputty - the main struct.
It should be declared before any other call to a Xputty function.
Xputty store a pointer in the childlist, to any Widget_t related to this instance of libxputty.
The first created Widget_t is the toplevel window.
When the toplevel window call destroy_widget(), Xputty call destroy_widget() for all remaining Widget_t's in the main childlist.
So any allocated memory should be released before the toplevel window finaly close.
More...
#include <xputty.h>
Data Fields | |
Childlist_t * | childlist |
Display * | dpy |
XColor_t * | color_scheme |
SystrayColor_t * | systray_color |
Widget_t * | hold_grab |
Widget_t * | key_snooper |
Widget_t * | submenu |
unsigned char * | ctext |
int | small_font |
int | normal_font |
int | big_font |
int | csize |
int | dnd_version |
bool | run |
bool | is_grab |
char | pad [2] |
Window | dnd_source_window |
Atom | XdndAware |
Atom | XdndTypeList |
Atom | XdndSelection |
Atom | XdndStatus |
Atom | XdndEnter |
Atom | XdndPosition |
Atom | XdndLeave |
Atom | XdndDrop |
Atom | XdndActionCopy |
Atom | XdndFinished |
Atom | dnd_type_text |
Atom | dnd_type_uri |
Atom | dnd_type_utf8 |
Atom | dnd_type |
Atom | selection |
Atom | targets_atom |
Atom | text_atom |
Atom | UTF8 |
Xputty - the main struct.
It should be declared before any other call to a Xputty function.
Xputty store a pointer in the childlist, to any Widget_t related to this instance of libxputty.
The first created Widget_t is the toplevel window.
When the toplevel window call destroy_widget(), Xputty call destroy_widget() for all remaining Widget_t's in the main childlist.
So any allocated memory should be released before the toplevel window finaly close.
*childlist | - pointer to the main childlist |
*dpy | - pointer to the display in use |
run | - bool to quit the main loop |
*color_scheme | - theming scheme for all Widget_t |
*hold_grab | - pointer to a modal Widget_t |
int big_font |
big fontsize for all Widget_t
Definition at line 250 of file xputty.h.
Referenced by _draw_buttons(), _draw_image(), _draw_list(), _draw_tuner(), _update_list_view(), and main_init().
Childlist_t* childlist |
pointer to the main childlist
Definition at line 230 of file xputty.h.
Referenced by _hide_all_tooltips(), _menu_entry_released(), create_widget(), create_window(), destroy_widget(), get_toplevel_widget(), main_init(), main_quit(), os_create_main_window_and_surface(), os_create_widget_window_and_surface(), os_main_run(), os_run_embedded(), widget_hide_all(), and WndProc().
XColor_t* color_scheme |
theming scheme for all Widget_t
Definition at line 234 of file xputty.h.
Referenced by create_widget(), create_window(), main_init(), main_quit(), set_dark_theme(), and set_light_theme().
int csize |
size of the textbuffer for copy/paste
Definition at line 252 of file xputty.h.
Referenced by copy_to_clipboard(), main_init(), and send_to_clipboard().
unsigned char* ctext |
pointer to the textbuffer for copy/paste
Definition at line 244 of file xputty.h.
Referenced by copy_to_clipboard(), main_init(), main_quit(), receive_paste_from_clipboard(), and send_to_clipboard().
Window dnd_source_window |
Definition at line 261 of file xputty.h.
Referenced by handle_dnd_enter(), handle_drag_data(), os_init_dnd(), os_widget_event_loop(), send_dnd_finished_event(), and send_dnd_status_event().
Atom dnd_type |
Definition at line 276 of file xputty.h.
Referenced by handle_dnd_enter(), handle_drag_data(), os_init_dnd(), os_widget_event_loop(), and send_dnd_status_event().
Atom dnd_type_text |
Definition at line 273 of file xputty.h.
Referenced by handle_dnd_enter(), and os_init_dnd().
Atom dnd_type_uri |
Definition at line 274 of file xputty.h.
Referenced by handle_dnd_enter(), and os_init_dnd().
Atom dnd_type_utf8 |
Definition at line 275 of file xputty.h.
Referenced by handle_dnd_enter(), and os_init_dnd().
int dnd_version |
Atoms for handling drag and drop
Definition at line 254 of file xputty.h.
Referenced by handle_dnd_enter(), os_init_dnd(), os_widget_event_loop(), and send_dnd_finished_event().
Display* dpy |
pointer to the display in use
Definition at line 232 of file xputty.h.
Referenced by _check_grab(), _check_keymap(), _check_menu_state(), _combobox_key_pressed(), _configure_combobox_menu(), _configure_listbox(), _configure_listview(), _configure_menu(), _get_width(), _leave_submenu(), _list_key_pressed(), _multi_list_key_pressed(), _popup_spinbox(), _resize_childs(), _set_listbox_viewpoint(), _set_viewpoint(), copy_to_clipboard(), create_hyperlink(), handle_dnd_enter(), handle_drag_data(), have_paste(), main_init(), main_quit(), menu_remove_item(), open_directory_dialog(), open_file_dialog(), os_create_main_window_and_surface(), os_create_widget_window_and_surface(), os_destroy_window(), os_expose_widget(), os_free_pixmap(), os_get_root_window(), os_get_screen_height(), os_get_screen_width(), os_get_window_metrics(), os_grab_pointer(), os_init_dnd(), os_main_run(), os_quit(), os_quit_widget(), os_register_widget_destroy(), os_register_wm_delete_window(), os_run_embedded(), os_send_button_press_event(), os_send_button_release_event(), os_send_configure_event(), os_send_systray_message(), os_set_input_mask(), os_set_title(), os_set_transient_for_hint(), os_set_window_attrb(), os_set_window_min_size(), os_show_tooltip(), os_translate_coords(), os_widget_event_loop(), os_widget_hide(), os_widget_show(), request_paste_from_clipboard(), save_file_dialog(), send_dnd_finished_event(), send_dnd_status_event(), send_to_clipboard(), widget_set_dnd_aware(), widget_set_dnd_unaware(), widget_set_icon_from_png(), and widget_set_icon_from_surface().
Widget_t* hold_grab |
pointer to a modal Widget_t
Definition at line 238 of file xputty.h.
Referenced by _button_press(), _check_grab(), _check_keymap(), _check_menu_state(), _popup_spinbox(), main_init(), os_main_run(), os_run_embedded(), pop_combobox_menu_show(), pop_menu_show(), and WndProc().
bool is_grab |
bool to indicate if button is pressed on grab window
Definition at line 258 of file xputty.h.
Referenced by _button_press(), _check_grab(), and main_init().
Widget_t* key_snooper |
pointer to a Widget_t snooping keys
Definition at line 240 of file xputty.h.
Referenced by _button_press(), main_init(), os_main_run(), and os_run_embedded().
int normal_font |
normal fontsize for all Widget_t
Definition at line 248 of file xputty.h.
Referenced by _configure_menu(), _draw_accel_item(), _draw_base_button(), _draw_check_box(), _draw_combobox(), _draw_frame(), _draw_hslider(), _draw_image_button_with_label(), _draw_item(), _draw_label(), _draw_list(), _draw_menu_label(), _draw_multi_list(), _draw_on_off_button(), _draw_spinbox(), _draw_submenu(), _draw_tabbox(), _draw_tooltip(), _draw_value_item(), _draw_valuedisplay(), _draw_vslider(), _draw_waveview(), _update_list_view(), _update_view(), draw_hyperlink(), and main_init().
bool run |
bool to quit the main loop
Definition at line 256 of file xputty.h.
Referenced by destroy_widget(), main_init(), os_main_run(), and WndProc().
Atom selection |
Definition at line 278 of file xputty.h.
Referenced by copy_to_clipboard(), have_paste(), os_init_dnd(), os_widget_event_loop(), and request_paste_from_clipboard().
int small_font |
small fontsize for all Widget_t
Definition at line 246 of file xputty.h.
Referenced by _draw_hslider(), _draw_knob(), _draw_tuner(), _draw_vslider(), and main_init().
Widget_t* submenu |
pointer to a modal sub Widget_t
Definition at line 242 of file xputty.h.
Referenced by _check_menu_state(), _check_submenu(), _enter_submenu(), _leave_submenu(), main_init(), os_main_run(), os_run_embedded(), pop_submenu_show(), and WndProc().
SystrayColor_t* systray_color |
background color for Sytray Icon
Definition at line 236 of file xputty.h.
Referenced by main_init(), main_quit(), set_systray_color(), and use_systray_color().
Atom targets_atom |
Definition at line 279 of file xputty.h.
Referenced by os_init_dnd(), and send_to_clipboard().
Atom text_atom |
Definition at line 280 of file xputty.h.
Referenced by os_init_dnd(), and send_to_clipboard().
Atom UTF8 |
Definition at line 281 of file xputty.h.
Referenced by os_init_dnd(), receive_paste_from_clipboard(), request_paste_from_clipboard(), and send_to_clipboard().
Atom XdndActionCopy |
Definition at line 270 of file xputty.h.
Referenced by os_init_dnd(), send_dnd_finished_event(), and send_dnd_status_event().
Atom XdndAware |
Definition at line 262 of file xputty.h.
Referenced by os_init_dnd(), widget_set_dnd_aware(), and widget_set_dnd_unaware().
Atom XdndDrop |
Definition at line 269 of file xputty.h.
Referenced by os_init_dnd(), and os_widget_event_loop().
Atom XdndEnter |
Definition at line 266 of file xputty.h.
Referenced by os_init_dnd(), and os_widget_event_loop().
Atom XdndFinished |
Definition at line 271 of file xputty.h.
Referenced by os_init_dnd(), and send_dnd_finished_event().
Atom XdndLeave |
Definition at line 268 of file xputty.h.
Referenced by os_init_dnd(), and os_widget_event_loop().
Atom XdndPosition |
Definition at line 267 of file xputty.h.
Referenced by os_init_dnd(), and os_widget_event_loop().
Atom XdndSelection |
Definition at line 264 of file xputty.h.
Referenced by handle_drag_data(), os_init_dnd(), and os_widget_event_loop().
Atom XdndStatus |
Definition at line 265 of file xputty.h.
Referenced by os_init_dnd(), and send_dnd_status_event().
Atom XdndTypeList |
Definition at line 263 of file xputty.h.
Referenced by handle_dnd_enter(), and os_init_dnd().