GUIslice  0.16.0
Embedded GUI in C
XGlowball.c File Reference
#include "GUIslice.h"
#include "GUIslice_drv.h"
#include "elem/XGlowball.h"
#include <stdio.h>
Include dependency graph for XGlowball.c:

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...
 
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_ElemXGlowballSetVal (gslc_tsGui *pGui, gslc_tsElemRef *pElemRef, int16_t nVal)
 
void gslc_ElemXGlowballSetAngles (gslc_tsGui *pGui, gslc_tsElemRef *pElemRef, int16_t nAngStart, int16_t nAngEnd)
 
void gslc_ElemXGlowballSetQuality (gslc_tsGui *pGui, gslc_tsElemRef *pElemRef, uint16_t nQuality)
 
void gslc_ElemXGlowballSetColorBack (gslc_tsGui *pGui, gslc_tsElemRef *pElemRef, gslc_tsColor colBg)
 
bool gslc_ElemXGlowballDraw (void *pvGui, void *pvElemRef, gslc_teRedrawType eRedraw)
 Draw the XGlowball element on the screen. More...
 

Variables

const char GSLC_PMEM ERRSTR_NULL []
 
const char GSLC_PMEM ERRSTR_PXD_NULL []
 

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 
)

Variable Documentation

const char GSLC_PMEM ERRSTR_NULL[]
const char GSLC_PMEM ERRSTR_PXD_NULL[]