libxputty 0.1
Loading...
Searching...
No Matches
Data Fields
Xputty Struct Reference

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>

Collaboration diagram for Xputty:
Collaboration graph
[legend]

Data Fields

Childlist_tchildlist
 
Displaydpy
 
XColor_tcolor_scheme
 
SystrayColor_tsystray_color
 
Widget_thold_grab
 
Widget_tkey_snooper
 
Widget_tsubmenu
 
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
 

Detailed Description

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.

Parameters
*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
Examples
simple-example.c.

Definition at line 228 of file xputty.h.

Field Documentation

◆ big_font

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

Childlist_t* childlist

◆ color_scheme

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().

◆ csize

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().

◆ ctext

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().

◆ dnd_source_window

Window dnd_source_window

◆ dnd_type

Atom dnd_type

◆ dnd_type_text

Atom dnd_type_text

Definition at line 273 of file xputty.h.

Referenced by handle_dnd_enter(), and os_init_dnd().

◆ dnd_type_uri

Atom dnd_type_uri

Definition at line 274 of file xputty.h.

Referenced by handle_dnd_enter(), and os_init_dnd().

◆ dnd_type_utf8

Atom dnd_type_utf8

Definition at line 275 of file xputty.h.

Referenced by handle_dnd_enter(), and os_init_dnd().

◆ dnd_version

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().

◆ dpy

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().

◆ hold_grab

Widget_t* hold_grab

◆ is_grab

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().

◆ key_snooper

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().

◆ normal_font

int normal_font

◆ pad

char pad[2]

padding struct to align clean

Definition at line 260 of file xputty.h.

◆ run

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().

◆ selection

Atom selection

◆ small_font

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().

◆ submenu

Widget_t* submenu

◆ systray_color

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().

◆ targets_atom

Atom targets_atom

Definition at line 279 of file xputty.h.

Referenced by os_init_dnd(), and send_to_clipboard().

◆ text_atom

Atom text_atom

Definition at line 280 of file xputty.h.

Referenced by os_init_dnd(), and send_to_clipboard().

◆ UTF8

Atom UTF8

◆ XdndActionCopy

Atom XdndActionCopy

Definition at line 270 of file xputty.h.

Referenced by os_init_dnd(), send_dnd_finished_event(), and send_dnd_status_event().

◆ XdndAware

Atom XdndAware

Definition at line 262 of file xputty.h.

Referenced by os_init_dnd(), widget_set_dnd_aware(), and widget_set_dnd_unaware().

◆ XdndDrop

Atom XdndDrop

Definition at line 269 of file xputty.h.

Referenced by os_init_dnd(), and os_widget_event_loop().

◆ XdndEnter

Atom XdndEnter

Definition at line 266 of file xputty.h.

Referenced by os_init_dnd(), and os_widget_event_loop().

◆ XdndFinished

Atom XdndFinished

Definition at line 271 of file xputty.h.

Referenced by os_init_dnd(), and send_dnd_finished_event().

◆ XdndLeave

Atom XdndLeave

Definition at line 268 of file xputty.h.

Referenced by os_init_dnd(), and os_widget_event_loop().

◆ XdndPosition

Atom XdndPosition

Definition at line 267 of file xputty.h.

Referenced by os_init_dnd(), and os_widget_event_loop().

◆ XdndSelection

Atom XdndSelection

Definition at line 264 of file xputty.h.

Referenced by handle_drag_data(), os_init_dnd(), and os_widget_event_loop().

◆ XdndStatus

Atom XdndStatus

Definition at line 265 of file xputty.h.

Referenced by os_init_dnd(), and send_dnd_status_event().

◆ XdndTypeList

Atom XdndTypeList

Definition at line 263 of file xputty.h.

Referenced by handle_dnd_enter(), and os_init_dnd().


The documentation for this struct was generated from the following file: