![]() |
libxputty 0.1
|
Platform wrapper functions (Linux, MSWindows): This file contains forward definitions and structs for platform support. Platform specific implementations are located in xwidget-linux.c and xwidget-mswin.c. Xlib compatibility definitions are located in xputty-mswin.h. More...
Go to the source code of this file.
Data Structures | |
struct | Metrics_t |
Metrics_t - struct to receive window size, position & visibility Pass this struct to os_get_window_metrics() More... | |
Functions | |
Display * | os_open_display (char *display_name) |
os_open_display - Connect to the display to use | |
void | os_close_display (Display *dpy) |
os_close_display - Close connection to the used display | |
Window | os_get_root_window (Xputty *main, int flag) |
os_get_root_window - get a pointer to the root window (desktop) | |
void | os_destroy_window (Widget_t *w) |
os_destroy_window - destroy a widget (close and remove from processing) | |
void | os_translate_coords (Widget_t *w, Window from_window, Window to_window, int from_x, int from_y, int *to_x, int *to_y) |
os_translate_coords - get x,y related to destination Window | |
void | os_get_window_metrics (Widget_t *w, Metrics_t *metrics) |
os_get_window_metrics - Get the Merics_t struct related to a Widget_t | |
void | os_set_window_min_size (Widget_t *w, int min_width, int min_height, int base_width, int base_height) |
os_set_window_min_size - Set the min and base size of a Widget_t | |
void | os_move_window (Display *dpy, Widget_t *w, int x, int y) |
os_move_window - Move a Widget_t | |
void | os_resize_window (Display *dpy, Widget_t *w, int x, int y) |
os_resize_window - Resize a Widget_t | |
void | os_get_surface_size (cairo_surface_t *surface, int *width, int *height) |
os_get_surface_size - get the size of the cairo surface | |
void | os_set_widget_surface_size (Widget_t *w, int width, int height) |
os_set_widget_surface_size - set the size of a Widget_t cairo surface | |
void | os_create_main_window_and_surface (Widget_t *w, Xputty *app, Window win, int x, int y, int width, int height) |
os_create_main_window_and_surface - create a Widget_t with a acairo surface this function is used mainly internal on create_window() | |
void | os_create_widget_window_and_surface (Widget_t *w, Xputty *app, Widget_t *parent, int x, int y, int width, int height) |
os_create_main_widget_and_surface - create a Widget_t with a acairo surface this function is used mainly internal on create_widget() | |
void | os_set_title (Widget_t *w, const char *title) |
os_set_title - Set the title of a Widget_t | |
void | os_widget_show (Widget_t *w) |
os_widget_show - Show a Widget_t | |
void | os_widget_hide (Widget_t *w) |
os_widget_hide - Hide a Widget_t | |
void | os_show_tooltip (Widget_t *wid, Widget_t *w) |
os_show_tooltip - Show a tooltip of a Widget_t | |
void | os_transparent_draw (void *w_, void *user_data) |
os_transparent_draw - Draw the Widget_t to the back buffer | |
void | os_expose_widget (Widget_t *w) |
os_expose_widget - Draw the the back buffer to the Widget_t surface | |
void | os_send_configure_event (Widget_t *w, int x, int y, int width, int height) |
os_send_configure_event - Send a configure event to a Widget_t | |
void | os_send_button_press_event (Widget_t *w) |
os_send_button_press_event - Send a button press event to a Widget_t see XButtonEvent | |
void | os_send_button_release_event (Widget_t *w) |
os_send_button_release_event - Send a button release event to a Widget_t see XButtonEvent | |
void | os_send_systray_message (Widget_t *w) |
os_send_send_systray_message - Send a systray event to a Widget_t only working on Linux for now | |
void | os_adjustment_callback (void *w_, void *user_data) |
os_adjustment_callback - called when a adjustment value have changed used internal for redraw the Widget_t | |
bool | os_get_keyboard_input (Widget_t *w, XKeyEvent *key, char *buf, size_t bufsize) |
os_ get_keyboard_input - Get the Keyboard input and convert it to utf8 | |
int | os_grab_pointer (Widget_t *w) |
os_grab_pointer - grab the mouse pointer. Works only on linux | |
void | os_set_input_mask (Widget_t *w) |
os_set_input_mask - set the Event mask to a Widget_t only work on linux, stub on Windows | |
void | os_set_window_attrb (Widget_t *w) |
os_set_window_attrb - set the attribute mask to a Widget_t only work on linux, stub on Windows | |
void | os_set_transient_for_hint (Widget_t *parent, Widget_t *w) |
os_set_ transient_for_hint - set a Widget_t transient to a other Widget_t only work on linux, stub on Windows | |
int | os_get_screen_height (Widget_t *w) |
os_get_screen_height - Get the height of the used Display | |
int | os_get_screen_width (Widget_t *w) |
os_get_screen_width - Get the width of the used Display | |
bool | os_is_directory (const char *filename) |
os_is directory - check if a given path is a directory or a file | |
char * | os_get_home_dir () |
os_get_home_dir - get the users home directory | |
void | os_free_pixmap (Widget_t *w, Pixmap pixmap) |
os_free_pixmap - Free the memory used by a Pixmap only Linux, stub otherwise | |
char * | utf8_from_locale (char *localestr) |
utf8_from_locale - convert active codepage to utf8 must be freed by the caller | |
char * | locale_from_utf8 (char *utf8str) |
locale_from_utf8 - convert utf8 to active codepage must be freed by the caller | |
void | os_quit (Widget_t *w) |
os_quit - quit the main loop and free all used memory | |
void | os_quit_widget (Widget_t *w) |
os_quit_widget - remove a Widget_t from the main loop and free it's used memory | |
Atom | os_register_widget_destroy (Widget_t *wid) |
os_register_widget_destroy - Get the needed Atom to send a widget destroy message | |
Atom | os_register_wm_delete_window (Widget_t *wid) |
os_register_wm_delete_window - Get the needed Atom to send a widget delete message | |
void | os_widget_event_loop (void *w_, void *event, Xputty *main, void *user_data) |
os_widget_event_loop - the Widget_t event loop on windows all messges goes into WndProc, so stub here | |
void | os_run_embedded (Xputty *main) |
os_run_embedded - the event handling when run embedded on windows all messges goes into WndProc, so stub here | |
void | os_main_run (Xputty *main) |
os_main_run - start the event loop | |
void | os_init_dnd (Xputty *main) |
os_init_dnd - register a Widget_t for handling drag and drop events only implemented on linux | |
Platform wrapper functions (Linux, MSWindows): This file contains forward definitions and structs for platform support. Platform specific implementations are located in xwidget-linux.c and xwidget-mswin.c. Xlib compatibility definitions are located in xputty-mswin.h.
Definition in file xwidget-platform.h.
char * locale_from_utf8 | ( | char * | utf8str | ) |
locale_from_utf8 - convert utf8 to active codepage must be freed by the caller
*utf8str | - Pointer to char to convert |
Definition at line 48 of file xwidget-linux.c.
References asprintf(), and convert_cp().
void os_adjustment_callback | ( | void * | w_, |
void * | user_data | ||
) |
os_adjustment_callback - called when a adjustment value have changed used internal for redraw the Widget_t
*w_ | - Pointer to the widget |
*user_data | - additional user data or NULL |
Definition at line 737 of file xwidget-linux.c.
References transparent_draw(), and Widget_t::widget.
Referenced by create_widget(), and create_window().
void os_close_display | ( | Display * | dpy | ) |
os_close_display - Close connection to the used display
*dpy | - Display to close |
Definition at line 58 of file xwidget-linux.c.
Referenced by main_quit().
void os_create_main_window_and_surface | ( | Widget_t * | w, |
Xputty * | app, | ||
Window | win, | ||
int | x, | ||
int | y, | ||
int | width, | ||
int | height | ||
) |
os_create_main_window_and_surface - create a Widget_t with a acairo surface this function is used mainly internal on create_window()
*w | - the Widget_t to create |
*app | - the Xputty struct the Widget_t belongs to |
*win | - the Parent Window were the Widget_t belongs to |
x,y | - the position related to the Parent Window |
*width,*height | - the Widget_t size |
Definition at line 122 of file xwidget-linux.c.
References Xputty::childlist, childlist_add_child(), Xputty::dpy, os_set_window_min_size(), SetMouseTracking(), Widget_t::surface, szMainUIClassName, szWidgetUIClassName, Widget_t::widget, WndProc(), Widget_t::xic, and Widget_t::xim.
Referenced by create_window().
void os_create_widget_window_and_surface | ( | Widget_t * | w, |
Xputty * | app, | ||
Widget_t * | parent, | ||
int | x, | ||
int | y, | ||
int | width, | ||
int | height | ||
) |
os_create_main_widget_and_surface - create a Widget_t with a acairo surface this function is used mainly internal on create_widget()
*w | - the Widget_t to create |
*app | - the Xputty struct the Widget_t belongs to |
*parent | - the Parent Widget_t were the Widget_t belongs to |
x,y | - the position related to the Parent Widget_t |
*width,*height | - the Widget_t size |
Definition at line 159 of file xwidget-linux.c.
References Xputty::childlist, childlist_add_child(), Xputty::dpy, SetMouseTracking(), Widget_t::surface, szWidgetUIClassName, Widget_t::widget, WndProc(), Widget_t::xic, and Widget_t::xim.
Referenced by create_widget().
void os_destroy_window | ( | Widget_t * | w | ) |
os_destroy_window - destroy a widget (close and remove from processing)
*w | - widget to destroy |
Definition at line 62 of file xwidget-linux.c.
References Widget_t::app, Xputty::dpy, Widget_t::widget, Widget_t::xic, and Widget_t::xim.
Referenced by destroy_widget().
void os_expose_widget | ( | Widget_t * | w | ) |
os_expose_widget - Draw the the back buffer to the Widget_t surface
*w | - Pointer to the widget |
Definition at line 222 of file xwidget-linux.c.
References Widget_t::app, Xputty::dpy, Widget_t::widget, and XEvent::window.
Referenced by _update_view(), and expose_widget().
os_free_pixmap - Free the memory used by a Pixmap only Linux, stub otherwise
*w | - Pointer to the widget |
pixmap | - the pixmap to be freed |
Definition at line 805 of file xwidget-linux.c.
References Widget_t::app, and Xputty::dpy.
char * os_get_home_dir | ( | ) |
os_get_home_dir - get the users home directory
Definition at line 791 of file xwidget-linux.c.
References asprintf().
os_ get_keyboard_input - Get the Keyboard input and convert it to utf8
*w | - Pointer to the widget |
*key | - the XKeyEvent |
*buf | - the buffer to write the key in utf8 format |
bufsize | - the max buffer size to write to |
Definition at line 798 of file xwidget-linux.c.
References utf8_from_locale(), XEvent::vk, XEvent::vk_is_final_char, and Widget_t::xic.
os_get_root_window - get a pointer to the root window (desktop)
*main | - pointer to the Xputty struct |
flag | - Could be IS_WIDGET for NO decorated windows (popup etc.)
|
Definition at line 69 of file xwidget-linux.c.
References Xputty::dpy, and IS_WIDGET.
Referenced by _configure_combobox_menu(), _configure_menu(), _popup_spinbox(), add_popup_spinbox(), create_combobox_menu(), create_menu(), create_tooltip(), mk_open_midi_keyboard(), open_directory_dialog(), open_file_dialog(), open_message_dialog(), open_midi_keyboard(), os_show_tooltip(), and save_file_dialog().
int os_get_screen_height | ( | Widget_t * | w | ) |
os_get_screen_height - Get the height of the used Display
*w | - Pointer to the widget |
Definition at line 776 of file xwidget-linux.c.
References Widget_t::app, and Xputty::dpy.
Referenced by _configure_combobox_menu(), and _configure_menu().
int os_get_screen_width | ( | Widget_t * | w | ) |
os_get_screen_width - Get the width of the used Display
*w | - Pointer to the widget |
Definition at line 781 of file xwidget-linux.c.
References Widget_t::app, and Xputty::dpy.
void os_get_surface_size | ( | cairo_surface_t * | surface, |
int * | width, | ||
int * | height | ||
) |
os_get_surface_size - get the size of the cairo surface
*surface | - the cairo surface |
*width,*height | - (Pointer) to get the size |
Definition at line 113 of file xwidget-linux.c.
Referenced by _draw_frame(), _draw_h_meter(), _draw_image(), _draw_image_button(), _draw_image_button_with_label(), _draw_image_knob(), _draw_image_slider(), _draw_playhead(), and _draw_v_meter().
os_get_window_metrics - Get the Merics_t struct related to a Widget_t
*w | - Pointer to the widget |
*metrics | - Pointer to the Metrics_t struct to hold the info for widget |
Definition at line 80 of file xwidget-linux.c.
References Widget_t::app, Xputty::dpy, Metrics_t::height, Widget_t::parent, Metrics_t::visible, Widget_t::widget, Metrics_t::width, Metrics_t::x, and Metrics_t::y.
Referenced by _buttons_released(), _combobox_entry_released(), _combobox_key_pressed(), _combobox_motion(), _configure_listbox(), _configure_listview(), _configure_menu(), _draw_accel_check_item(), _draw_accel_item(), _draw_base_button(), _draw_button(), _draw_buttons(), _draw_check_box(), _draw_check_button(), _draw_check_item(), _draw_combobox(), _draw_combobox_button(), _draw_combobox_entrys(), _draw_combobox_menu_slider(), _draw_frame(), _draw_h_meter(), _draw_hmeter_scale(), _draw_hslider(), _draw_image(), _draw_item(), _draw_knob(), _draw_label(), _draw_list(), _draw_listbox_item(), _draw_listbox_viewslider(), _draw_listviewslider(), _draw_menu_label(), _draw_menu_slider(), _draw_multi_list(), _draw_multi_listviewslider(), _draw_on_off_button(), _draw_spinbox(), _draw_submenu(), _draw_switch_image_button(), _draw_tabbox(), _draw_ti_button(), _draw_tooltip(), _draw_tuner(), _draw_v_meter(), _draw_value_item(), _draw_valuedisplay(), _draw_vmeter_scale(), _draw_vslider(), _draw_waveview(), _enter_submenu(), _has_pointer(), _list_entry_double_clicked(), _list_entry_released(), _list_key_pressed(), _list_motion(), _multi_list_entry_double_clicked(), _multi_list_entry_released(), _multi_list_key_pressed(), _reconfigure_combobox_viewport(), _reconfigure_listbox_viewport(), _reconfigure_listview_viewport(), _reconfigure_multi_listview_viewport(), _set_listbox_viewpoint(), _set_viewpoint(), _tab_button_released(), _update_list_view(), _update_view(), cmenu_add_submenu(), configure_event(), draw_hyperlink(), listview_remove_list(), menu_add_item(), menu_add_numeric_items(), menu_add_submenu(), menu_add_value_entry(), menubar_add_menu(), mk_draw_knob(), multi_listview_remove_list(), set_pattern(), tabbox_add_tab(), transparent_draw(), and widget_draw().
int os_grab_pointer | ( | Widget_t * | w | ) |
os_grab_pointer - grab the mouse pointer. Works only on linux
*w | - Pointer to the widget which will grab the mouse |
Definition at line 742 of file xwidget-linux.c.
References Widget_t::app, and Xputty::dpy.
Referenced by _popup_spinbox(), pop_combobox_menu_show(), and pop_menu_show().
void os_init_dnd | ( | Xputty * | main | ) |
os_init_dnd - register a Widget_t for handling drag and drop events only implemented on linux
*main | - pointer to the Xputty struct |
Definition at line 1048 of file xwidget-linux.c.
References Xputty::dnd_source_window, Xputty::dnd_type, Xputty::dnd_type_text, Xputty::dnd_type_uri, Xputty::dnd_type_utf8, Xputty::dnd_version, Xputty::dpy, Xputty::selection, Xputty::targets_atom, Xputty::text_atom, Xputty::UTF8, Xputty::XdndActionCopy, Xputty::XdndAware, Xputty::XdndDrop, Xputty::XdndEnter, Xputty::XdndFinished, Xputty::XdndLeave, Xputty::XdndPosition, Xputty::XdndSelection, Xputty::XdndStatus, and Xputty::XdndTypeList.
Referenced by main_init().
bool os_is_directory | ( | const char * | filename | ) |
os_is directory - check if a given path is a directory or a file
*filename | - the Path to check |
Definition at line 786 of file xwidget-linux.c.
Referenced by _draw_list(), and _draw_multi_list().
void os_main_run | ( | Xputty * | main | ) |
os_main_run - start the event loop
*main | - pointer to the Xputty struct |
Definition at line 845 of file xwidget-linux.c.
References Func_t::button_press_callback, Func_t::button_release_callback, Xputty::childlist, Widget_t::childlist, childlist_find_widget(), childlist_has_child(), Childlist_t::childs, destroy_widget(), Xputty::dpy, Childlist_t::elem, Widget_t::event_callback, Widget_t::flags, Widget_t::func, HIDE_ON_DELETE, Xputty::hold_grab, IS_POPUP, Func_t::key_press_callback, Func_t::key_release_callback, Xputty::key_snooper, Xputty::run, Xputty::submenu, Widget_t::widget, widget_hide(), and XEvent::window.
Referenced by main_run().
os_move_window - Move a Widget_t
*dpy | - Pointer to the Display the widget belongs to |
*w | - Pointer to the widget |
x,y | - the point to move to |
Definition at line 105 of file xwidget-linux.c.
References Widget_t::widget.
Referenced by _configure_combobox_menu(), _configure_menu(), _popup_spinbox(), _resize_childs(), _set_listbox_viewpoint(), _set_viewpoint(), and menu_remove_item().
Display * os_open_display | ( | char * | display_name | ) |
os_open_display - Connect to the display to use
*display_name | - Display name could be 0 for default |
Definition at line 54 of file xwidget-linux.c.
Referenced by main_init().
void os_quit | ( | Widget_t * | w | ) |
os_quit - quit the main loop and free all used memory
*w | - Pointer to the widget request the quit call |
Definition at line 809 of file xwidget-linux.c.
References Widget_t::app, debug_lasterror(), Xputty::dpy, get_toplevel_widget(), os_register_wm_delete_window(), szMainUIClassName, szWidgetUIClassName, and Widget_t::widget.
Referenced by quit(), and quit_widget().
void os_quit_widget | ( | Widget_t * | w | ) |
os_quit_widget - remove a Widget_t from the main loop and free it's used memory
*w | - Pointer to the widget request the quit call |
Definition at line 822 of file xwidget-linux.c.
References Widget_t::app, Xputty::dpy, os_register_widget_destroy(), and Widget_t::widget.
os_register_widget_destroy - Get the needed Atom to send a widget destroy message
*wid | - Pointer to the widget request the quit call |
Definition at line 841 of file xwidget-linux.c.
References Widget_t::app, and Xputty::dpy.
Referenced by os_quit_widget().
os_register_wm_delete_window - Get the needed Atom to send a widget delete message
*wid | - Pointer to the widget request the quit call |
Definition at line 834 of file xwidget-linux.c.
References Widget_t::app, Xputty::dpy, and Widget_t::widget.
Referenced by childlist_add_child(), and os_quit().
os_resize_window - Resize a Widget_t
*dpy | - Pointer to the Display the widget belongs to |
*w | - Pointer to the Widget_t |
x,y | - the new size |
Definition at line 109 of file xwidget-linux.c.
References Widget_t::widget.
Referenced by _configure_combobox_menu(), _configure_listbox(), _configure_listview(), _configure_menu(), _get_width(), and _resize_childs().
void os_run_embedded | ( | Xputty * | main | ) |
os_run_embedded - the event handling when run embedded on windows all messges goes into WndProc, so stub here
*main | - pointer to the Xputty struct |
Definition at line 950 of file xwidget-linux.c.
References Func_t::button_press_callback, Func_t::button_release_callback, Xputty::childlist, Widget_t::childlist, childlist_find_widget(), childlist_has_child(), Childlist_t::childs, destroy_widget(), Xputty::dpy, Childlist_t::elem, Widget_t::event_callback, Widget_t::flags, Widget_t::func, HIDE_ON_DELETE, Xputty::hold_grab, IS_POPUP, Func_t::key_press_callback, Func_t::key_release_callback, Xputty::key_snooper, Xputty::submenu, Widget_t::widget, widget_hide(), and XEvent::window.
Referenced by run_embedded().
void os_send_button_press_event | ( | Widget_t * | w | ) |
os_send_button_press_event - Send a button press event to a Widget_t see XButtonEvent
*w | - Pointer to the widget |
Definition at line 641 of file xwidget-linux.c.
References Widget_t::app, Xputty::dpy, and Widget_t::widget.
Referenced by send_button_press_event().
void os_send_button_release_event | ( | Widget_t * | w | ) |
os_send_button_release_event - Send a button release event to a Widget_t see XButtonEvent
*w | - Pointer to the widget |
Definition at line 660 of file xwidget-linux.c.
References Widget_t::app, Xputty::dpy, and Widget_t::widget.
Referenced by send_button_release_event().
void os_send_configure_event | ( | Widget_t * | w, |
int | x, | ||
int | y, | ||
int | width, | ||
int | height | ||
) |
os_send_configure_event - Send a configure event to a Widget_t
*w | - Pointer to the widget |
x,y | - the position to set |
width,height | - the size to set |
Definition at line 623 of file xwidget-linux.c.
References Widget_t::app, Xputty::dpy, and Widget_t::widget.
Referenced by send_configure_event().
void os_send_systray_message | ( | Widget_t * | w | ) |
os_send_send_systray_message - Send a systray event to a Widget_t only working on Linux for now
*w | - Pointer to the widget |
Definition at line 679 of file xwidget-linux.c.
References Widget_t::app, default_error_handler, Xputty::dpy, intern_error_handler(), set_systray_color(), and Widget_t::widget.
Referenced by send_systray_message().
void os_set_input_mask | ( | Widget_t * | w | ) |
os_set_input_mask - set the Event mask to a Widget_t only work on linux, stub on Windows
*w | - Pointer to the widget which will grab the mouse |
Definition at line 749 of file xwidget-linux.c.
References Widget_t::app, Xputty::dpy, and Widget_t::widget.
Referenced by add_midi_keyboard(), create_combobox_viewport(), create_listview_viewport(), create_multi_listview_viewport(), mk_open_midi_keyboard(), and open_midi_keyboard().
void os_set_title | ( | Widget_t * | w, |
const char * | title | ||
) |
os_set_title - Set the title of a Widget_t
*w | - Pointer to the widget |
title | - the title to set |
Definition at line 194 of file xwidget-linux.c.
References Widget_t::app, Xputty::dpy, and Widget_t::widget.
Referenced by widget_set_title().
os_set_ transient_for_hint - set a Widget_t transient to a other Widget_t only work on linux, stub on Windows
*parent | - Pointer to the parent widget |
*w | - Pointer to the widget |
Definition at line 771 of file xwidget-linux.c.
References Widget_t::app, Xputty::dpy, and Widget_t::widget.
Referenced by add_popup_spinbox(), create_combobox_menu(), create_menu(), and create_tooltip().
void os_set_widget_surface_size | ( | Widget_t * | w, |
int | width, | ||
int | height | ||
) |
os_set_widget_surface_size - set the size of a Widget_t cairo surface
*w | - Pointer to the Widget_t the surface belongs to |
*width,*height | - the size to set |
Definition at line 118 of file xwidget-linux.c.
References Widget_t::cr, and Widget_t::surface.
Referenced by _resize_surface().
void os_set_window_attrb | ( | Widget_t * | w | ) |
os_set_window_attrb - set the attribute mask to a Widget_t only work on linux, stub on Windows
*w | - Pointer to the widget which will grab the mouse |
Definition at line 755 of file xwidget-linux.c.
References Widget_t::app, Xputty::dpy, and Widget_t::widget.
Referenced by add_popup_spinbox(), create_combobox_menu(), create_menu(), and create_tooltip().
void os_set_window_min_size | ( | Widget_t * | w, |
int | min_width, | ||
int | min_height, | ||
int | base_width, | ||
int | base_height | ||
) |
os_set_window_min_size - Set the min and base size of a Widget_t
*w | - Pointer to the widget |
min_width,min_height | - the min size to set |
base_width,base_height | - the base size to set |
Definition at line 91 of file xwidget-linux.c.
References Widget_t::app, Xputty::dpy, Metrics_t::height, Widget_t::metrics_min, Widget_t::widget, and Metrics_t::width.
Referenced by os_create_main_window_and_surface().
os_show_tooltip - Show a tooltip of a Widget_t
*wid | - Pointer to the widget the tooltip belongs to |
*w | - the tooltip Widget_t |
Definition at line 211 of file xwidget-linux.c.
References Widget_t::app, Xputty::dpy, IS_WIDGET, os_get_root_window(), os_translate_coords(), and Widget_t::widget.
Referenced by show_tooltip().
void os_translate_coords | ( | Widget_t * | w, |
Window | from_window, | ||
Window | to_window, | ||
int | from_x, | ||
int | from_y, | ||
int * | to_x, | ||
int * | to_y | ||
) |
os_translate_coords - get x,y related to destination Window
*w | - Widget_t pointer |
from_window | - source Window |
to_window | - destination Window |
from_x,from_y | - point from the source Window |
*to_x,*to_y | - (Pointer) point in the destination Window |
Definition at line 73 of file xwidget-linux.c.
References Widget_t::app, and Xputty::dpy.
Referenced by _configure_combobox_menu(), _configure_menu(), _popup_spinbox(), add_popup_spinbox(), create_combobox_menu(), create_menu(), create_tooltip(), and os_show_tooltip().
void os_transparent_draw | ( | void * | w_, |
void * | user_data | ||
) |
os_transparent_draw - Draw the Widget_t to the back buffer
*w_ | - Pointer to the widget |
*user_data | - additional user data or NULL |
Definition at line 732 of file xwidget-linux.c.
References transparent_draw(), and Widget_t::widget.
Referenced by _check_menu_state(), _enter_submenu(), _leave_submenu(), _set_entry(), add_button(), add_check_box(), add_check_button(), add_combobox(), add_hslider(), add_image_button(), add_image_knob(), add_image_toggle_button(), add_knob(), add_menu(), add_on_off_button(), add_switch_image_button(), add_toggle_button(), add_valuedisplay(), add_vslider(), create_widget(), listbox_add_entry(), menu_add_item(), menu_add_numeric_items(), and menu_add_value_entry().
void os_widget_event_loop | ( | void * | w_, |
void * | event, | ||
Xputty * | main, | ||
void * | user_data | ||
) |
os_widget_event_loop - the Widget_t event loop on windows all messges goes into WndProc, so stub here
*w_ | - Pointer to the widget |
*event | - the event to handle |
*main | - pointer to the Xputty struct |
*user_data | - additional user data could be NULL |
Definition at line 230 of file xwidget-linux.c.
References _button_press(), _check_enum(), _check_grab(), _check_keymap(), _check_submenu(), _has_pointer(), _hide_all_tooltips(), adj_set_motion_state(), Widget_t::app, XEvent::button, Func_t::button_release_callback, Widget_t::childlist, childlist_has_child(), Childlist_t::childs, Func_t::configure_callback, destroy_widget(), Xputty::dnd_source_window, Xputty::dnd_type, Xputty::dnd_version, Widget_t::double_click, Func_t::double_click_callback, Xputty::dpy, Func_t::enter_callback, FAST_REDRAW, Widget_t::flags, Widget_t::func, handle_dnd_enter(), handle_drag_data(), HAS_FOCUS, HAS_POINTER, HAS_TOOLTIP, hide_tooltip(), IS_POPUP, Func_t::key_press_callback, Func_t::key_release_callback, XEvent::keycode, Func_t::leave_callback, Func_t::motion_callback, NO_AUTOREPEAT, quit_widget(), receive_paste_from_clipboard(), Xputty::selection, send_dnd_finished_event(), send_dnd_status_event(), send_to_clipboard(), show_tooltip(), XEvent::state, Widget_t::state, transparent_draw(), Func_t::visibiliy_change_callback, Widget_t::widget, XEvent::x, Xputty::XdndDrop, Xputty::XdndEnter, Xputty::XdndLeave, Xputty::XdndPosition, Xputty::XdndSelection, Widget_t::xpaste_callback, and XEvent::y.
Referenced by create_widget(), and widget_event_loop().
void os_widget_hide | ( | Widget_t * | w | ) |
os_widget_hide - Hide a Widget_t
*w | - Pointer to the widget to hide |
Definition at line 207 of file xwidget-linux.c.
References Widget_t::app, Xputty::dpy, and Widget_t::widget.
Referenced by widget_hide(), and widget_hide_all().
void os_widget_show | ( | Widget_t * | w | ) |
os_widget_show - Show a Widget_t
*w | - Pointer to the widget to show |
Definition at line 203 of file xwidget-linux.c.
References Widget_t::app, Xputty::dpy, and Widget_t::widget.
Referenced by pop_widget_show_all(), submenu_widget_show_all(), widget_show(), and widget_show_all().
char * utf8_from_locale | ( | char * | localestr | ) |
utf8_from_locale - convert active codepage to utf8 must be freed by the caller
*localestr | - Pointer to char to convert |
Definition at line 41 of file xwidget-linux.c.
References asprintf(), and convert_cp().
Referenced by _draw_multi_list(), HandleFiles(), and os_get_keyboard_input().