EasyGUI
gui_widget_t Struct Reference

Structure for each widget type. More...

#include <gui_defs.h>

Data Fields

const gui_charname
 
uint16_t size
 
uint32_t flags
 
gui_widget_evt_fn callback
 
const gui_color_tcolors
 
uint8_t color_count
 

Detailed Description

Structure for each widget type.

Field Documentation

◆ callback

Pointer to control function, returns 1 if command handled or 0 if not

◆ color_count

uint8_t color_count

Number of colors used in widget

◆ colors

const gui_color_t* colors

Pointer to list of colors as default values for widget

◆ flags

uint32_t flags

List of flags for widget setup. This field can use GUI_WIDGETS_CORE_FLAGS flags

◆ name

const gui_char* name

Widget name for display purpose

◆ size

uint16_t size

Bytes required for widget memory allocation