GUIslice  0.16.0
Embedded GUI in C
gslc_tsElem Struct Reference

Element Struct. More...

#include <GUIslice.h>

Collaboration diagram for gslc_tsElem:

Data Fields

int16_t nId
 Element ID specified by user. More...
 
uint8_t nFeatures
 Element feature vector (appearance/behavior)) More...
 
int16_t nType
 Element type enumeration. More...
 
gslc_tsRect rElem
 Rect region containing element. More...
 
int16_t nGroup
 Group ID that the element belongs to. More...
 
gslc_tsColor colElemFrame
 Color for frame. More...
 
gslc_tsColor colElemFill
 Color for background fill. More...
 
gslc_tsColor colElemFrameGlow
 Color to use for frame when glowing. More...
 
gslc_tsColor colElemFillGlow
 Color to use for fill when glowing. More...
 
gslc_tsImgRef sImgRefNorm
 Image reference to draw (normal) More...
 
gslc_tsImgRef sImgRefGlow
 Image reference to draw (glowing) More...
 
gslc_tsElemRefpElemRefParent
 Parent element reference. More...
 
char * pStrBuf
 Ptr to text string buffer to overlay. More...
 
uint8_t nStrBufMax
 Size of string buffer. More...
 
gslc_teTxtFlags eTxtFlags
 Flags associated with text buffer. More...
 
gslc_tsColor colElemText
 Color of overlay text. More...
 
gslc_tsColor colElemTextGlow
 Color of overlay text when glowing. More...
 
int8_t eTxtAlign
 Alignment of overlay text. More...
 
int8_t nTxtMarginX
 Margin of overlay text within rect region (x offset) More...
 
int8_t nTxtMarginY
 Margin of overlay text within rect region (y offset) More...
 
gslc_tsFontpTxtFont
 Ptr to Font for overlay text. More...
 
void * pXData
 Ptr to extended data structure. More...
 
GSLC_CB_EVENT pfuncXEvent
 UNUSED: Callback func ptr for event tree (draw,touch,tick) More...
 
GSLC_CB_DRAW pfuncXDraw
 Callback func ptr for custom drawing. More...
 
GSLC_CB_TOUCH pfuncXTouch
 Callback func ptr for touch. More...
 
GSLC_CB_TICK pfuncXTick
 Callback func ptr for timer/main loop tick. More...
 

Detailed Description

Element Struct.

  • Represents a single graphic element in the GUIslice environment
  • A page is made up of a number of elements
  • Each element is created with a user-specified ID for further accesses (or GSLC_ID_AUTO for it to be auto-generated)
  • Display order of elements in a page is based upon the creation order
  • Extensions to the core element types is provided through the pXData reference and pfuncX* callback functions.

The documentation for this struct was generated from the following file: