GUIslice
0.16.0
Embedded GUI in C
|
Functions | |
gslc_tsElemRef * | gslc_ElemXTextboxCreate (gslc_tsGui *pGui, int16_t nElemId, int16_t nPage, gslc_tsXTextbox *pXData, gslc_tsRect rElem, int16_t nFontId, char *pBuf, uint16_t nBufRows, uint16_t nBufCols) |
Create a Textbox Element. More... | |
void | gslc_ElemXTextboxReset (gslc_tsGui *pGui, gslc_tsElemRef *pElemRef) |
Reset the contents of the textbox. More... | |
void | gslc_ElemXTextboxLineWrAdv (gslc_tsGui *pGui, gslc_tsElemRef *pElemRef) |
void | gslc_ElemXTextboxScrollSet (gslc_tsGui *pGui, gslc_tsElemRef *pElemRef, uint8_t nScrollPos, uint8_t nScrollMax) |
Set the textbox scroll position (nScrollPos) as a fraction of nScrollMax. More... | |
void | gslc_ElemXTextboxBufAdd (gslc_tsGui *pGui, gslc_tsElemRef *pElemRef, unsigned char chNew, bool bAdvance) |
void | gslc_ElemXTextboxColSet (gslc_tsGui *pGui, gslc_tsElemRef *pElemRef, gslc_tsColor nCol) |
Insert a color set code into the current buffer position. More... | |
void | gslc_ElemXTextboxColReset (gslc_tsGui *pGui, gslc_tsElemRef *pElemRef) |
Insert a color reset code into the current buffer position. More... | |
void | gslc_ElemXTextboxWrapSet (gslc_tsGui *pGui, gslc_tsElemRef *pElemRef, bool bWrapEn) |
Enable or disable line wrap within textbox. More... | |
void | gslc_ElemXTextboxAdd (gslc_tsGui *pGui, gslc_tsElemRef *pElemRef, char *pTxt) |
Add a text string to the textbox. More... | |
bool | gslc_ElemXTextboxDraw (void *pvGui, void *pvElemRef, gslc_teRedrawType eRedraw) |
Draw a Textbox element on the screen. More... | |
Variables | |
const char GSLC_PMEM | ERRSTR_NULL [] |
const char GSLC_PMEM | ERRSTR_PXD_NULL [] |
void gslc_ElemXTextboxAdd | ( | gslc_tsGui * | pGui, |
gslc_tsElemRef * | pElemRef, | ||
char * | pTxt | ||
) |
Add a text string to the textbox.
[in] | pGui | Pointer to GUI |
[in] | pElemRef | Pointer to Element reference |
[in] | pTxt | Pointer to text string (null-terminated) |
void gslc_ElemXTextboxBufAdd | ( | gslc_tsGui * | pGui, |
gslc_tsElemRef * | pElemRef, | ||
unsigned char | chNew, | ||
bool | bAdvance | ||
) |
void gslc_ElemXTextboxColReset | ( | gslc_tsGui * | pGui, |
gslc_tsElemRef * | pElemRef | ||
) |
Insert a color reset code into the current buffer position.
[in] | pGui | Pointer to GUI |
[in] | pElemRef | Pointer to Element reference |
void gslc_ElemXTextboxColSet | ( | gslc_tsGui * | pGui, |
gslc_tsElemRef * | pElemRef, | ||
gslc_tsColor | nCol | ||
) |
Insert a color set code into the current buffer position.
[in] | pGui | Pointer to GUI |
[in] | pElemRef | Pointer to Element reference |
[in] | nCol | Color to assign for next text written to textbox |
gslc_tsElemRef* gslc_ElemXTextboxCreate | ( | gslc_tsGui * | pGui, |
int16_t | nElemId, | ||
int16_t | nPage, | ||
gslc_tsXTextbox * | pXData, | ||
gslc_tsRect | rElem, | ||
int16_t | nFontId, | ||
char * | pBuf, | ||
uint16_t | nBufRows, | ||
uint16_t | nBufCols | ||
) |
Create a Textbox Element.
[in] | pGui | Pointer to GUI |
[in] | nElemId | Element ID to assign (0..16383 or GSLC_ID_AUTO to autogen) |
[in] | nPage | Page ID to attach element to |
[in] | pXData | Ptr to extended element data structure |
[in] | rElem | Rectangle coordinates defining textbox size |
[in] | nFontId | Font ID to use for text area |
[in] | pBuf | Ptr to text buffer (already allocated) with size (nBufRows*nBufCols) chars |
[in] | nBufRows | Number of rows in buffer |
[in] | nBufCols | Number of columns in buffer (incl special codes) |
bool gslc_ElemXTextboxDraw | ( | void * | pvGui, |
void * | pvElemRef, | ||
gslc_teRedrawType | eRedraw | ||
) |
Draw a Textbox element on the screen.
[in] | pvGui | Void ptr to GUI (typecast to gslc_tsGui*) |
[in] | pvElemRef | Void ptr to Element reference (typecast to gslc_tsElemRef*) |
[in] | eRedraw | Redraw mode |
void gslc_ElemXTextboxLineWrAdv | ( | gslc_tsGui * | pGui, |
gslc_tsElemRef * | pElemRef | ||
) |
void gslc_ElemXTextboxReset | ( | gslc_tsGui * | pGui, |
gslc_tsElemRef * | pElemRef | ||
) |
Reset the contents of the textbox.
[in] | pGui | Pointer to GUI |
[in] | pElemRef | Pointer to Element reference |
void gslc_ElemXTextboxScrollSet | ( | gslc_tsGui * | pGui, |
gslc_tsElemRef * | pElemRef, | ||
uint8_t | nScrollPos, | ||
uint8_t | nScrollMax | ||
) |
Set the textbox scroll position (nScrollPos) as a fraction of nScrollMax.
[in] | pGui | Pointer to GUI |
[in] | pElemRef | Pointer to Element reference |
[in] | nScrollPos | New scroll position |
[in] | nScrollMax | Maximum scroll position |
void gslc_ElemXTextboxWrapSet | ( | gslc_tsGui * | pGui, |
gslc_tsElemRef * | pElemRef, | ||
bool | bWrapEn | ||
) |
Enable or disable line wrap within textbox.
[in] | pGui | Pointer to GUI |
[in] | pElemRef | Pointer to Element reference |
[in] | bWrapEn | Enable line wrap if true |
const char GSLC_PMEM ERRSTR_NULL[] |
const char GSLC_PMEM ERRSTR_PXD_NULL[] |