EasyGUI
gui_handle_p Struct Reference

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_twidget
 
gui_widget_evt_fn callback
 
struct gui_handleparent
 
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_tfont
 
gui_chartext
 
size_t textmemsize
 
size_t textcursor
 
gui_timer_ttimer
 
gui_color_tcolors
 
gui_dim_t x_scroll
 
gui_dim_t y_scroll
 
void * arg
 

Detailed Description

Common GUI values for widgets.

Handle object for GUI widget.

Field Documentation

◆ abs_height

gui_dim_t abs_height

Absolute height on screen in units of pixels

◆ abs_visible_x1

gui_dim_t abs_visible_x1

Absolute visible left X position on screen for widget

◆ abs_visible_x2

gui_dim_t abs_visible_x2

Absolute visible right X position on screen for widget

◆ abs_visible_y1

gui_dim_t abs_visible_y1

Absolute visible top Y positon on screen for widget

◆ abs_visible_y2

gui_dim_t abs_visible_y2

Absolute visible bottom Y positon on screen for widget

◆ abs_width

gui_dim_t abs_width

Absolute width on screen in units of pixels

◆ abs_x

gui_dim_t abs_x

Absolute X position of top-left corner on screen

◆ abs_y

gui_dim_t abs_y

Absolute Y position of top-left corner on screen

◆ alpha

uint8_t alpha

Widget alpha relative to parent widget

◆ arg

void* arg

Pointer to optional user data

◆ callback

Callback function prototype

◆ colors

gui_color_t* colors

Pointer to allocated color memory when custom colors are used

◆ flags

uint32_t flags

All possible flags for specific widget

◆ font

const gui_font_t* font

< Macro for constant keyword Font used for widget drawings

◆ footprint

uint32_t footprint

Footprint indicates widget is valid

◆ height

float height

Object height in units of pixel/percent

◆ id

Widget ID number

◆ list

Linked list entry, must always be on top for casting

◆ padding

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

◆ parent

struct gui_handle* parent

Pointer to parent widget

◆ root_list

Linked list root of children widgets

◆ text

gui_char* text

Pointer to widget text if exists

◆ textcursor

size_t textcursor

Text cursor position

◆ textmemsize

size_t textmemsize

Number of bytes for text when dynamically allocated

◆ timer

gui_timer_t* timer

Software timer pointer

◆ widget

const gui_widget_t* widget

Widget parameters with callback functions

◆ width

float width

Object width in units of pixel/percent

◆ x

float x

Object X position relative to parent window in units of pixel/percent

◆ x_scroll

gui_dim_t x_scroll

Scroll of widgets in horizontal direction in units of pixels

◆ y

float y

Object Y position relative to parent window in units of pixel/percent

◆ y_scroll

gui_dim_t y_scroll

Scroll of widgets in vertical direction in units of pixels

◆ zindex

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