1 #ifndef _GUISLICE_EX_XKEYPAD_NUM_H_ 2 #define _GUISLICE_EX_XKEYPAD_NUM_H_ 196 #endif // __cplusplus 197 #endif // _GUISLICE_EX_XKEYPAD_NUM_H_ gslc_tsXKeyPadCfg_Num gslc_ElemXKeyPadCfgInit_Num()
Initialize the KeyPad config structure.
Definition: XKeyPad_Num.c:376
bool bValPositive
Is the current value positive? (1=positive, 0=negative)
Definition: XKeyPad_Num.h:60
void gslc_ElemXKeyPadTxtInit_Num(void *pvKeyPad)
Callback function to update internal state whenever the text field is manually set via gslc_ElemXKeyP...
Definition: XKeyPad_Num.c:129
bool bSignEn
Enable negative numbers.
Definition: XKeyPad_Num.h:58
gslc_tsXKeyPadCfg sBaseCfg
KeyPad base config struct.
Definition: XKeyPad_Num.h:54
Configuration for the KeyPad.
Definition: XKeyPad.h:155
void gslc_ElemXKeyPadBtnEvt_Num(void *pvKeyPad, uint8_t nId, gslc_tsXKeyPadResult *psResult)
Callback function activated when a key has been pressed.
Definition: XKeyPad_Num.c:255
bool bFloatEn
Enable floating point (ie. decimal point)
Definition: XKeyPad_Num.h:57
Extended data for KeyPad element.
Definition: XKeyPad.h:195
void gslc_ElemXKeyPadStyleGet_Num(void *pvKeyPad, uint8_t nId, bool *pbVisible, gslc_tsColor *pcolTxt, gslc_tsColor *pcolFrame, gslc_tsColor *pcolFill, gslc_tsColor *pcolGlow)
Callback function to retrieve the style associated with a KeyPad button.
Definition: XKeyPad_Num.c:194
void gslc_ElemXKeyPadCfgSetSignEn_Num(gslc_tsXKeyPadCfg_Num *pConfig, bool bEn)
Update the KeyPad configuration to enable negative numbers.
Definition: XKeyPad_Num.c:443
bool bValDecimalPt
Does the current value include a decimal point?
Definition: XKeyPad_Num.h:61
void gslc_ElemXKeyPadLabelGet_Num(void *pvKeyPad, uint8_t nId, uint8_t nStrMax, char *pStr)
Callback function to retrieve the label associated with a KeyPad button.
Definition: XKeyPad_Num.c:151
Element reference structure.
Definition: GUIslice.h:578
void gslc_ElemXKeyPadCfgSetFloatEn_Num(gslc_tsXKeyPadCfg_Num *pConfig, bool bEn)
Update the KeyPad configuration to enable floating point numbers.
Definition: XKeyPad_Num.c:438
Return status for XKeyPad.
Definition: XKeyPad.h:94
void gslc_ElemXKeyPadReset_Num(void *pvConfig)
Callback function to reset internal state.
Definition: XKeyPad_Num.c:117
gslc_tsElemRef * gslc_ElemXKeyPadCreate_Num(gslc_tsGui *pGui, int16_t nElemId, int16_t nPage, gslc_tsXKeyPad *pXData, int16_t nX0, int16_t nY0, int8_t nFontId, gslc_tsXKeyPadCfg_Num *pConfig)
Create a KeyPad Element.
Definition: XKeyPad_Num.c:416
GUI structure.
Definition: GUIslice.h:716
Definition: XKeyPad_Num.h:52
Color structure. Defines RGB triplet.
Definition: GUIslice.h:534