GUIslice  0.16.0
Embedded GUI in C
Flash-based Element Macros

Macros that represent element creation routines based in FLASH memory. More...

Macros

#define gslc_ElemCreateTxt_P(pGui, nElemId, nPage, nX, nY, nW, nH, strTxt, pFont, colTxt, colFrame, colFill, nAlignTxt, bFrameEn, bFillEn)
 Create a read-only text element. More...
 
#define gslc_ElemCreateTxt_P_R(pGui, nElemId, nPage, nX, nY, nW, nH, strTxt, strLength, pFont, colTxt, colFrame, colFill, nAlignTxt, bFrameEn, bFillEn)
 Create a read-write text element (element in Flash, string in RAM) More...
 
#define gslc_ElemCreateTxt_P_R_ext(pGui, nElemId, nPage, nX, nY, nW, nH, strTxt, strLength, pFont, colTxt, colTxtGlow, colFrame, colFill, nAlignTxt, nMarginX, nMarginY, bFrameEn, bFillEn, bClickEn, bGlowEn, pfuncXEvent, pfuncXDraw, pfuncXTouch, pfuncXTick)
 Create a read-write text element (element in Flash, string in RAM) with extended customization options. More...
 
#define gslc_ElemCreateBox_P(pGui, nElemId, nPage, nX, nY, nW, nH, colFrame, colFill, bFrameEn, bFillEn, pfuncXDraw, pfuncXTick)
 Create a read-only box element. More...
 
#define gslc_ElemCreateLine_P(pGui, nElemId, nPage, nX0, nY0, nX1, nY1, colFill)
 Create a read-only line element. More...
 
#define gslc_ElemCreateBtnTxt_P(pGui, nElemId, nPage, nX, nY, nW, nH, strTxt, pFont, colTxt, colFrame, colFill, colFrameGlow, colFillGlow, nAlignTxt, bFrameEn, bFillEn, callFunc, extraData)
 Create a text button element. More...
 
#define gslc_ElemCreateBtnTxt_P_R(pGui, nElemId, nPage, nX, nY, nW, nH, strTxt, strLength, pFont, colTxt, colFrame, colFill, colFrameGlow, colFillGlow, nAlignTxt, bFrameEn, bFillEn, callFunc, extraData)
 

Detailed Description

Macros that represent element creation routines based in FLASH memory.

Macro Definition Documentation

#define gslc_ElemCreateBox_P (   pGui,
  nElemId,
  nPage,
  nX,
  nY,
  nW,
  nH,
  colFrame,
  colFill,
  bFrameEn,
  bFillEn,
  pfuncXDraw,
  pfuncXTick 
)

Create a read-only box element.

Parameters
[in]pGuiPointer to GUI
[in]nElemIdUnique element ID to assign
[in]nPagePage ID to attach element to
[in]nXX coordinate of element
[in]nYY coordinate of element
[in]nWWidth of element
[in]nHHeight of element
[in]colFrameColor for the frame
[in]colFillColor for the fill
[in]bFrameEnTrue if framed, false otherwise
[in]bFillEnTrue if filled, false otherwise
[in]pfuncXDrawPointer to custom draw callback (or NULL if default)
[in]pfuncXTickPointer to custom tick callback (or NULL if default)
#define gslc_ElemCreateBtnTxt_P (   pGui,
  nElemId,
  nPage,
  nX,
  nY,
  nW,
  nH,
  strTxt,
  pFont,
  colTxt,
  colFrame,
  colFill,
  colFrameGlow,
  colFillGlow,
  nAlignTxt,
  bFrameEn,
  bFillEn,
  callFunc,
  extraData 
)

Create a text button element.

Parameters
[in]pGuiPointer to GUI
[in]nElemIdUnique element ID to assign
[in]nPagePage ID to attach element to
[in]nXX coordinate of element
[in]nYY coordinate of element
[in]nWWidth of element
[in]nHHeight of element
[in]strTxtText string to display
[in]pFontPointer to font resource
[in]colTxtColor for the text
[in]colFrameColor for the frame
[in]colFillColor for the fill
[in]colFrameGlowColor for the frame when glowing
[in]colFillGlowColor for the fill when glowing
[in]nAlignTxtText alignment
[in]bFrameEnTrue if framed, false otherwise
[in]bFillEnTrue if filled, false otherwise
[in]callFuncCallback function for button press
[in]extraDataPtr to extended data structure
#define gslc_ElemCreateBtnTxt_P_R (   pGui,
  nElemId,
  nPage,
  nX,
  nY,
  nW,
  nH,
  strTxt,
  strLength,
  pFont,
  colTxt,
  colFrame,
  colFill,
  colFrameGlow,
  colFillGlow,
  nAlignTxt,
  bFrameEn,
  bFillEn,
  callFunc,
  extraData 
)
#define gslc_ElemCreateLine_P (   pGui,
  nElemId,
  nPage,
  nX0,
  nY0,
  nX1,
  nY1,
  colFill 
)

Create a read-only line element.

Parameters
[in]pGuiPointer to GUI
[in]nElemIdUnique element ID to assign
[in]nPagePage ID to attach element to
[in]nX0X coordinate of line start
[in]nY0Y coordinate of line start
[in]nX1X coordinate of line end
[in]nY1Y coordinate of line end
[in]colFillColor for the line
#define gslc_ElemCreateTxt_P (   pGui,
  nElemId,
  nPage,
  nX,
  nY,
  nW,
  nH,
  strTxt,
  pFont,
  colTxt,
  colFrame,
  colFill,
  nAlignTxt,
  bFrameEn,
  bFillEn 
)

Create a read-only text element.

Parameters
[in]pGuiPointer to GUI
[in]nElemIdUnique element ID to assign
[in]nPagePage ID to attach element to
[in]nXX coordinate of element
[in]nYY coordinate of element
[in]nWWidth of element
[in]nHHeight of element
[in]strTxtText string to display
[in]pFontPointer to font resource
[in]colTxtColor for the text
[in]colFrameColor for the frame
[in]colFillColor for the fill
[in]nAlignTxtText alignment
[in]bFrameEnTrue if framed, false otherwise
[in]bFillEnTrue if filled, false otherwise
#define gslc_ElemCreateTxt_P_R (   pGui,
  nElemId,
  nPage,
  nX,
  nY,
  nW,
  nH,
  strTxt,
  strLength,
  pFont,
  colTxt,
  colFrame,
  colFill,
  nAlignTxt,
  bFrameEn,
  bFillEn 
)

Create a read-write text element (element in Flash, string in RAM)

Parameters
[in]pGuiPointer to GUI
[in]nElemIdUnique element ID to assign
[in]nPagePage ID to attach element to
[in]nXX coordinate of element
[in]nYY coordinate of element
[in]nWWidth of element
[in]nHHeight of element
[in]strTxtText string to display
[in]strLengthLength of text string
[in]pFontPointer to font resource
[in]colTxtColor for the text
[in]colFrameColor for the frame
[in]colFillColor for the fill
[in]nAlignTxtText alignment
[in]bFrameEnTrue if framed, false otherwise
[in]bFillEnTrue if filled, false otherwise
#define gslc_ElemCreateTxt_P_R_ext (   pGui,
  nElemId,
  nPage,
  nX,
  nY,
  nW,
  nH,
  strTxt,
  strLength,
  pFont,
  colTxt,
  colTxtGlow,
  colFrame,
  colFill,
  nAlignTxt,
  nMarginX,
  nMarginY,
  bFrameEn,
  bFillEn,
  bClickEn,
  bGlowEn,
  pfuncXEvent,
  pfuncXDraw,
  pfuncXTouch,
  pfuncXTick 
)

Create a read-write text element (element in Flash, string in RAM) with extended customization options.

Parameters
[in]pGuiPointer to GUI
[in]nElemIdUnique element ID to assign
[in]nPagePage ID to attach element to
[in]nXX coordinate of element
[in]nYY coordinate of element
[in]nWWidth of element
[in]nHHeight of element
[in]strTxtText string to display
[in]strLengthLength of text string
[in]pFontPointer to font resource
[in]colTxtColor for the text
[in]colTxtGlowColor for the text when glowing
[in]colFrameColor for the frame
[in]colFillColor for the fill
[in]nAlignTxtText alignment
[in]nMarginXText margin (X offset)
[in]nMarginYText margin (Y offset)
[in]bFrameEnTrue if framed, false otherwise
[in]bFillEnTrue if filled, false otherwise
[in]bClickEnTrue if accept click events, false otherwise
[in]bGlowEnTrue if supports glow state, false otherwise
[in]pfuncXEventCallback function ptr for Event
[in]pfuncXDrawCallback function ptr for Redraw
[in]pfuncXTouchCallback function ptr for Touch
[in]pfuncXTickCallback function ptr for Timer tick