1 #ifndef _GUISLICE_EX_XRING_H_ 2 #define _GUISLICE_EX_XRING_H_ 64 #define GSLC_TYPEX_RING GSLC_TYPE_BASE_EXTEND + 23 71 #define XRING_STR_MAX 10 266 #endif // __cplusplus 267 #endif // _GUISLICE_EX_XRING_H_ void gslc_ElemXRingGaugeSetQuality(gslc_tsGui *pGui, gslc_tsElemRef *pElemRef, uint16_t nSegments)
Sets the quality of the ring drawing by defining the number of segments that are used when rendering ...
Definition: XRingGauge.c:404
bool bGradient
Definition: XRingGauge.h:85
int16_t nValMax
Definition: XRingGauge.h:77
gslc_teRedrawType
Redraw types.
Definition: GUIslice.h:370
uint8_t nSegGap
Definition: XRingGauge.h:86
void gslc_ElemXRingGaugeSetValRange(gslc_tsGui *pGui, gslc_tsElemRef *pElemRef, int16_t nValMin, int16_t nValMax)
Defines the range of values that may be passed into SetVal(), used to scale the input to SetVal()...
Definition: XRingGauge.c:324
void gslc_ElemXRingGaugeSetColorInactive(gslc_tsGui *pGui, gslc_tsElemRef *pElemRef, gslc_tsColor colInactive)
Defines the color of the inactive region to be a flat (constant) color.
Definition: XRingGauge.c:391
int16_t nValLast
Previous position value.
Definition: XRingGauge.h:93
int16_t nAngRange
Definition: XRingGauge.h:80
void gslc_ElemXRingGaugeSetColorActiveFlat(gslc_tsGui *pGui, gslc_tsElemRef *pElemRef, gslc_tsColor colActive)
Defines the color of the active region to be a flat (constant) color.
Definition: XRingGauge.c:364
int16_t nQuality
Definition: XRingGauge.h:83
void gslc_ElemXRingGaugeSetAngleRange(gslc_tsGui *pGui, gslc_tsElemRef *pElemRef, int16_t nStart, int16_t nRange, bool bClockwise)
Defines the angular range of the gauge, including both the active and inactive regions.
Definition: XRingGauge.c:336
int16_t nVal
Current position value.
Definition: XRingGauge.h:92
int16_t nAngStart
Definition: XRingGauge.h:79
#define XRING_STR_MAX
Definition: XRingGauge.h:71
int8_t nThickness
Definition: XRingGauge.h:84
Rectangular region. Defines X,Y corner coordinates plus dimensions.
Definition: GUIslice.h:519
int16_t nValMin
Definition: XRingGauge.h:76
gslc_tsColor colRing1
Definition: XRingGauge.h:87
gslc_tsColor colRingRemain
Definition: XRingGauge.h:89
Extended data for XRingGauge element.
Definition: XRingGauge.h:74
Element reference structure.
Definition: GUIslice.h:578
gslc_tsColor colRing2
Definition: XRingGauge.h:88
void gslc_ElemXRingGaugeSetVal(gslc_tsGui *pGui, gslc_tsElemRef *pElemRef, int16_t nVal)
Set an Ring Gauge current indicator value.
Definition: XRingGauge.c:300
gslc_tsElemRef * gslc_ElemXRingGaugeCreate(gslc_tsGui *pGui, int16_t nElemId, int16_t nPage, gslc_tsXRingGauge *pXData, gslc_tsRect rElem, char *pStrBuf, uint8_t nStrBufMax, int16_t nFontId)
Create an XRingGauge element.
Definition: XRingGauge.c:76
void gslc_ElemXRingGaugeSetColorActiveGradient(gslc_tsGui *pGui, gslc_tsElemRef *pElemRef, gslc_tsColor colStart, gslc_tsColor colEnd)
Defines the color of the active region to be a gradient using two color stops.
Definition: XRingGauge.c:377
bool gslc_ElemXRingGaugeDraw(void *pvGui, void *pvElemRef, gslc_teRedrawType eRedraw)
Draw the template element on the screen.
Definition: XRingGauge.c:144
GUI structure.
Definition: GUIslice.h:716
Color structure. Defines RGB triplet.
Definition: GUIslice.h:534
void gslc_ElemXRingGaugeSetThickness(gslc_tsGui *pGui, gslc_tsElemRef *pElemRef, int8_t nThickness)
Defines the thickness of the ring arcs.
Definition: XRingGauge.c:353