|
GUIslice
0.16.0
Embedded GUI in C
|
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) |
Macros that represent element creation routines based in FLASH memory.
| #define gslc_ElemCreateBox_P | ( | pGui, | |
| nElemId, | |||
| nPage, | |||
| nX, | |||
| nY, | |||
| nW, | |||
| nH, | |||
| colFrame, | |||
| colFill, | |||
| bFrameEn, | |||
| bFillEn, | |||
| pfuncXDraw, | |||
| pfuncXTick | |||
| ) |
Create a read-only box element.
| [in] | pGui | Pointer to GUI |
| [in] | nElemId | Unique element ID to assign |
| [in] | nPage | Page ID to attach element to |
| [in] | nX | X coordinate of element |
| [in] | nY | Y coordinate of element |
| [in] | nW | Width of element |
| [in] | nH | Height of element |
| [in] | colFrame | Color for the frame |
| [in] | colFill | Color for the fill |
| [in] | bFrameEn | True if framed, false otherwise |
| [in] | bFillEn | True if filled, false otherwise |
| [in] | pfuncXDraw | Pointer to custom draw callback (or NULL if default) |
| [in] | pfuncXTick | Pointer 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.
| [in] | pGui | Pointer to GUI |
| [in] | nElemId | Unique element ID to assign |
| [in] | nPage | Page ID to attach element to |
| [in] | nX | X coordinate of element |
| [in] | nY | Y coordinate of element |
| [in] | nW | Width of element |
| [in] | nH | Height of element |
| [in] | strTxt | Text string to display |
| [in] | pFont | Pointer to font resource |
| [in] | colTxt | Color for the text |
| [in] | colFrame | Color for the frame |
| [in] | colFill | Color for the fill |
| [in] | colFrameGlow | Color for the frame when glowing |
| [in] | colFillGlow | Color for the fill when glowing |
| [in] | nAlignTxt | Text alignment |
| [in] | bFrameEn | True if framed, false otherwise |
| [in] | bFillEn | True if filled, false otherwise |
| [in] | callFunc | Callback function for button press |
| [in] | extraData | Ptr 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.
| [in] | pGui | Pointer to GUI |
| [in] | nElemId | Unique element ID to assign |
| [in] | nPage | Page ID to attach element to |
| [in] | nX0 | X coordinate of line start |
| [in] | nY0 | Y coordinate of line start |
| [in] | nX1 | X coordinate of line end |
| [in] | nY1 | Y coordinate of line end |
| [in] | colFill | Color 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.
| [in] | pGui | Pointer to GUI |
| [in] | nElemId | Unique element ID to assign |
| [in] | nPage | Page ID to attach element to |
| [in] | nX | X coordinate of element |
| [in] | nY | Y coordinate of element |
| [in] | nW | Width of element |
| [in] | nH | Height of element |
| [in] | strTxt | Text string to display |
| [in] | pFont | Pointer to font resource |
| [in] | colTxt | Color for the text |
| [in] | colFrame | Color for the frame |
| [in] | colFill | Color for the fill |
| [in] | nAlignTxt | Text alignment |
| [in] | bFrameEn | True if framed, false otherwise |
| [in] | bFillEn | True 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)
| [in] | pGui | Pointer to GUI |
| [in] | nElemId | Unique element ID to assign |
| [in] | nPage | Page ID to attach element to |
| [in] | nX | X coordinate of element |
| [in] | nY | Y coordinate of element |
| [in] | nW | Width of element |
| [in] | nH | Height of element |
| [in] | strTxt | Text string to display |
| [in] | strLength | Length of text string |
| [in] | pFont | Pointer to font resource |
| [in] | colTxt | Color for the text |
| [in] | colFrame | Color for the frame |
| [in] | colFill | Color for the fill |
| [in] | nAlignTxt | Text alignment |
| [in] | bFrameEn | True if framed, false otherwise |
| [in] | bFillEn | True 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.
| [in] | pGui | Pointer to GUI |
| [in] | nElemId | Unique element ID to assign |
| [in] | nPage | Page ID to attach element to |
| [in] | nX | X coordinate of element |
| [in] | nY | Y coordinate of element |
| [in] | nW | Width of element |
| [in] | nH | Height of element |
| [in] | strTxt | Text string to display |
| [in] | strLength | Length of text string |
| [in] | pFont | Pointer to font resource |
| [in] | colTxt | Color for the text |
| [in] | colTxtGlow | Color for the text when glowing |
| [in] | colFrame | Color for the frame |
| [in] | colFill | Color for the fill |
| [in] | nAlignTxt | Text alignment |
| [in] | nMarginX | Text margin (X offset) |
| [in] | nMarginY | Text margin (Y offset) |
| [in] | bFrameEn | True if framed, false otherwise |
| [in] | bFillEn | True if filled, false otherwise |
| [in] | bClickEn | True if accept click events, false otherwise |
| [in] | bGlowEn | True if supports glow state, false otherwise |
| [in] | pfuncXEvent | Callback function ptr for Event |
| [in] | pfuncXDraw | Callback function ptr for Redraw |
| [in] | pfuncXTouch | Callback function ptr for Touch |
| [in] | pfuncXTick | Callback function ptr for Timer tick |