EasyGUI  v0.1
Platform independent GUI Library
Configuration

GUI configuration setup. More...

Macros

#define GUI_OS   1
 Enables (1) or disables (0) OS support for library.
 
#define GUI_USE_TOUCH   1
 Enables (1) or disables (0) touch support.
 
#define GUI_USE_KEYBOARD   1
 Enables (1) or disables (0) keyboard support.
 
#define GUI_USE_UNICODE   1
 Enables (1) or disabled (0) unicode strings. More...
 
#define GUI_TOUCH_BUFFER_SIZE   10
 Maximal number of touch entries in buffer.
 
#define GUI_TOUCH_MAX_PRESSES   2
 Number of touch presses available at a time. More...
 
#define GUI_KEYBOARD_BUFFER_SIZE   10
 Maximal number of keyboard entries in buffer.
 
#define GUI_WIDGET_GRAPH_DATA_AUTO_INVALIDATE   1
 Enables (1) or disables (0) automatic invalidation of graph widgets when graph dataset changes. More...
 
#define GUI_WIDGET_INSIDE_PARENT   0
 Enables (1) or disables (0) widget mode inside parent only. More...
 
#define GUI_USE_TRANSLATE   1
 Enables (1) or disables (0) automatic translations on widget text. More...
 
#define GUI_USE_MEM   1
 Enables (1) or disables (0) library custom allocation algorithm. More...
 
#define GUI_MEM_ALIGNMENT   4
 Memory alignment setup, used for memory allocation in systems where unaligned memory access is not allowed. More...
 

Detailed Description

GUI configuration setup.

Macro Definition Documentation

#define GUI_MEM_ALIGNMENT   4

Memory alignment setup, used for memory allocation in systems where unaligned memory access is not allowed.

Note
Value must be power of 2, in most cases number 4 will be ok.
             1: No memory alignment
             2: Align memory to 2 bytes
             4: Align memory to 4 bytes
             8: Align memory to 8 bytes
#define GUI_TOUCH_MAX_PRESSES   2

Number of touch presses available at a time.

Specifies how many fingers can be detected by touch

#define GUI_USE_MEM   1

Enables (1) or disables (0) library custom allocation algorithm.

When set to 0, malloc and free functions must be provided by system and sufficient dynamic memory must be resolved by user.

#define GUI_USE_TRANSLATE   1

Enables (1) or disables (0) automatic translations on widget text.

Note
When enabled, source and active languages must be set in Translation engine module
#define GUI_USE_UNICODE   1

Enables (1) or disabled (0) unicode strings.

Note
UTF-8 encoding can be used for unicode characters
#define GUI_WIDGET_GRAPH_DATA_AUTO_INVALIDATE   1

Enables (1) or disables (0) automatic invalidation of graph widgets when graph dataset changes.

Note
It requires additional memory because each grpah data saves reference to parent graph widget for invalidation
#define GUI_WIDGET_INSIDE_PARENT   0

Enables (1) or disables (0) widget mode inside parent only.

When enabled, widget can only be inside parent widget's visible area, otherwise widget with width,height = 100,100 may be at x,y = -10,-10 relative to parent and only part of widget will be visible

Note
This can be used for scrolling mode when necessary