GUIslice  0.16.0
Embedded GUI in C
XGlowball.h File Reference
#include "GUIslice.h"
Include dependency graph for XGlowball.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  gslc_tsXGlowballRing
 
struct  gslc_tsXGlowball
 Extended data for Slider element. More...
 

Macros

#define GSLC_TYPEX_GLOW
 

Functions

gslc_tsElemRefgslc_ElemXGlowballCreate (gslc_tsGui *pGui, int16_t nElemId, int16_t nPage, gslc_tsXGlowball *pXData, int16_t nMidX, int16_t nMidY, gslc_tsXGlowballRing *pRings, uint8_t nNumRings)
 Create a XGlowball element. More...
 
bool gslc_ElemXGlowballDraw (void *pvGui, void *pvElemRef, gslc_teRedrawType eRedraw)
 Draw the XGlowball element on the screen. More...
 
void drawXGlowballArc (gslc_tsGui *pGui, gslc_tsXGlowball *pGlowball, int16_t nMidX, int16_t nMidY, int16_t nRad1, int16_t nRad2, gslc_tsColor cArc, uint16_t nAngStart, uint16_t nAngEnd)
 
void drawXGlowballRing (gslc_tsGui *pGui, gslc_tsXGlowball *pGlowball, int16_t nMidX, int16_t nMidY, int16_t nVal, uint16_t nAngStart, uint16_t nAngEnd, bool bErase)
 
void drawXGlowball (gslc_tsGui *pGui, gslc_tsXGlowball *pGlowball, int16_t nMidX, int16_t nMidY, int16_t nVal, uint16_t nAngStart, uint16_t nAngEnd)
 
void gslc_ElemXGlowballSetAngles (gslc_tsGui *pGui, gslc_tsElemRef *pElemRef, int16_t nAngStart, int16_t nAngEnd)
 
void gslc_ElemXGlowballSetVal (gslc_tsGui *pGui, gslc_tsElemRef *pElemRef, int16_t nVal)
 
void gslc_ElemXGlowballSetQuality (gslc_tsGui *pGui, gslc_tsElemRef *pElemRef, uint16_t nQuality)
 
void gslc_ElemXGlowballSetColorBack (gslc_tsGui *pGui, gslc_tsElemRef *pElemRef, gslc_tsColor colBg)
 

Macro Definition Documentation

#define GSLC_TYPEX_GLOW

Function Documentation

void drawXGlowball ( gslc_tsGui pGui,
gslc_tsXGlowball pGlowball,
int16_t  nMidX,
int16_t  nMidY,
int16_t  nVal,
uint16_t  nAngStart,
uint16_t  nAngEnd 
)
void drawXGlowballArc ( gslc_tsGui pGui,
gslc_tsXGlowball pGlowball,
int16_t  nMidX,
int16_t  nMidY,
int16_t  nRad1,
int16_t  nRad2,
gslc_tsColor  cArc,
uint16_t  nAngStart,
uint16_t  nAngEnd 
)
void drawXGlowballRing ( gslc_tsGui pGui,
gslc_tsXGlowball pGlowball,
int16_t  nMidX,
int16_t  nMidY,
int16_t  nVal,
uint16_t  nAngStart,
uint16_t  nAngEnd,
bool  bErase 
)
gslc_tsElemRef* gslc_ElemXGlowballCreate ( gslc_tsGui pGui,
int16_t  nElemId,
int16_t  nPage,
gslc_tsXGlowball pXData,
int16_t  nMidX,
int16_t  nMidY,
gslc_tsXGlowballRing pRings,
uint8_t  nNumRings 
)

Create a XGlowball element.

Parameters
[in]pGuiPointer to GUI
[in]nElemIdElement ID to assign (0..16383 or GSLC_ID_AUTO to autogen)
[in]nPagePage ID to attach element to
[in]pXDataPtr to extended element data structure
[in]nMidXCenter X coordinate
[in]nMidYCenter Y coordinate
[in]pRingsPointer to tsXGlowballRing structure array defining appearance
[in]nNumRingsNumber of rings in pRings array
Returns
Pointer to Element reference or NULL if failure
bool gslc_ElemXGlowballDraw ( void *  pvGui,
void *  pvElemRef,
gslc_teRedrawType  eRedraw 
)

Draw the XGlowball element on the screen.

Parameters
[in]pvGuiVoid ptr to GUI (typecast to gslc_tsGui*)
[in]pvElemRefVoid ptr to Element (typecast to gslc_tsElemRef*)
[in]eRedrawRedraw mode
Returns
true if success, false otherwise
void gslc_ElemXGlowballSetAngles ( gslc_tsGui pGui,
gslc_tsElemRef pElemRef,
int16_t  nAngStart,
int16_t  nAngEnd 
)
void gslc_ElemXGlowballSetColorBack ( gslc_tsGui pGui,
gslc_tsElemRef pElemRef,
gslc_tsColor  colBg 
)
void gslc_ElemXGlowballSetQuality ( gslc_tsGui pGui,
gslc_tsElemRef pElemRef,
uint16_t  nQuality 
)
void gslc_ElemXGlowballSetVal ( gslc_tsGui pGui,
gslc_tsElemRef pElemRef,
int16_t  nVal 
)