|
EasyGUI
|
Common GUI values for widgets. More...
#include <gui_defs.h>
Data Fields | |
| gui_linkedlist_t | list |
| gui_linkedlistroot_t | root_list |
| gui_id_t | id |
| uint32_t | footprint |
| const gui_widget_t * | widget |
| gui_widget_evt_fn | callback |
| struct gui_handle * | parent |
| float | x |
| float | y |
| float | width |
| float | height |
| gui_dim_t | abs_x |
| gui_dim_t | abs_y |
| gui_dim_t | abs_width |
| gui_dim_t | abs_height |
| gui_dim_t | abs_visible_x1 |
| gui_dim_t | abs_visible_y1 |
| gui_dim_t | abs_visible_x2 |
| gui_dim_t | abs_visible_y2 |
| uint32_t | padding |
| int32_t | zindex |
| uint8_t | alpha |
| uint32_t | flags |
| const gui_font_t * | font |
| gui_char * | text |
| size_t | textmemsize |
| size_t | textcursor |
| gui_timer_t * | timer |
| gui_color_t * | colors |
| gui_dim_t | x_scroll |
| gui_dim_t | y_scroll |
| void * | arg |
Common GUI values for widgets.
Handle object for GUI widget.
| gui_dim_t abs_height |
Absolute height on screen in units of pixels
| gui_dim_t abs_visible_x1 |
Absolute visible left X position on screen for widget
| gui_dim_t abs_visible_x2 |
Absolute visible right X position on screen for widget
| gui_dim_t abs_visible_y1 |
Absolute visible top Y positon on screen for widget
| gui_dim_t abs_visible_y2 |
Absolute visible bottom Y positon on screen for widget
| gui_dim_t abs_width |
Absolute width on screen in units of pixels
| gui_dim_t abs_x |
Absolute X position of top-left corner on screen
| gui_dim_t abs_y |
Absolute Y position of top-left corner on screen
| uint8_t alpha |
Widget alpha relative to parent widget
| void* arg |
Pointer to optional user data
| gui_widget_evt_fn callback |
Callback function prototype
| gui_color_t* colors |
Pointer to allocated color memory when custom colors are used
| uint32_t flags |
All possible flags for specific widget
| const gui_font_t* font |
< Macro for constant keyword Font used for widget drawings
| uint32_t footprint |
Footprint indicates widget is valid
| float height |
Object height in units of pixel/percent
| gui_id_t id |
Widget ID number
| gui_linkedlist_t list |
Linked list entry, must always be on top for casting
| uint32_t padding |
4-bytes long padding, each byte of one side, MSB = top padding, LSB = left padding. Used for children widgets if virtual padding should be used
| struct gui_handle* parent |
Pointer to parent widget
| gui_linkedlistroot_t root_list |
Linked list root of children widgets
| gui_char* text |
Pointer to widget text if exists
| size_t textcursor |
Text cursor position
| size_t textmemsize |
Number of bytes for text when dynamically allocated
| gui_timer_t* timer |
Software timer pointer
| const gui_widget_t* widget |
Widget parameters with callback functions
| float width |
Object width in units of pixel/percent
| float x |
Object X position relative to parent window in units of pixel/percent
| gui_dim_t x_scroll |
Scroll of widgets in horizontal direction in units of pixels
| float y |
Object Y position relative to parent window in units of pixel/percent
| gui_dim_t y_scroll |
Scroll of widgets in vertical direction in units of pixels
| int32_t zindex |
Z-Index value of widget, which can be set by user. All widgets with same z-index are changeable when active on visible area