GUIslice
0.16.0
Embedded GUI in C
|
Functions | |
void | gslc_CollectReset (gslc_tsCollect *pCollect, gslc_tsElem *asElem, uint16_t nElemMax, gslc_tsElemRef *asElemRef, uint16_t nElemRefMax) |
Reset the members of an element collection. More... | |
gslc_tsElemRef * | gslc_CollectElemAdd (gslc_tsGui *pGui, gslc_tsCollect *pCollect, const gslc_tsElem *pElem, gslc_teElemRefFlags eFlags) |
Add an element to a collection. More... | |
bool | gslc_CollectGetRedraw (gslc_tsGui *pGui, gslc_tsCollect *pCollect) |
Determine if any elements in a collection need redraw. More... | |
gslc_tsElemRef * | gslc_CollectFindElemById (gslc_tsGui *pGui, gslc_tsCollect *pCollect, int16_t nElemId) |
Find an element in a collection by its Element ID. More... | |
gslc_tsElemRef * | gslc_CollectFindElemFromCoord (gslc_tsGui *pGui, gslc_tsCollect *pCollect, int16_t nX, int16_t nY) |
Find an element in a collection by a coordinate coordinate. More... | |
int | gslc_CollectGetNextId (gslc_tsGui *pGui, gslc_tsCollect *pCollect) |
Allocate the next available Element ID in a collection. More... | |
gslc_tsElemRef * | gslc_CollectGetElemRefTracked (gslc_tsGui *pGui, gslc_tsCollect *pCollect) |
Get the element within a collection that is currently being tracked. More... | |
void | gslc_CollectSetElemTracked (gslc_tsGui *pGui, gslc_tsCollect *pCollect, gslc_tsElemRef *pElemRef) |
Set the element within a collection that is currently being tracked. More... | |
int16_t | gslc_CollectGetFocus (gslc_tsGui *pGui, gslc_tsCollect *pCollect) |
Get the element index within a collection that is currently in focus. More... | |
void | gslc_CollectSetFocus (gslc_tsGui *pGui, gslc_tsCollect *pCollect, int16_t nElemInd) |
Set the element index within a collection that is currently in focus. More... | |
bool | gslc_CollectFindFocusStep (gslc_tsGui *pGui, gslc_tsCollect *pCollect, bool bNext, bool *pbWrapped, int16_t *pnElemInd) |
void | gslc_CollectSetParent (gslc_tsGui *pGui, gslc_tsCollect *pCollect, gslc_tsElemRef *pElemRefParent) |
Assign the parent element reference to all elements within a collection. More... | |
gslc_tsElemRef* gslc_CollectElemAdd | ( | gslc_tsGui * | pGui, |
gslc_tsCollect * | pCollect, | ||
const gslc_tsElem * | pElem, | ||
gslc_teElemRefFlags | eFlags | ||
) |
Add an element to a collection.
[in] | pGui | Pointer to GUI |
[in] | pCollect | Pointer to the collection |
[in] | pElem | Ptr to the element to add |
[in] | eFlags | Flags describing the element (eg. whether the element should be stored in internal RAM array or is located in Flash/PROGMEM). |
gslc_tsElemRef* gslc_CollectFindElemById | ( | gslc_tsGui * | pGui, |
gslc_tsCollect * | pCollect, | ||
int16_t | nElemId | ||
) |
Find an element in a collection by its Element ID.
[in] | pGui | Pointer to GUI |
[in] | pCollect | Pointer to the collection |
[in] | nElemId | Element ID to search for |
gslc_tsElemRef* gslc_CollectFindElemFromCoord | ( | gslc_tsGui * | pGui, |
gslc_tsCollect * | pCollect, | ||
int16_t | nX, | ||
int16_t | nY | ||
) |
Find an element in a collection by a coordinate coordinate.
[in] | pGui | Pointer to GUI |
[in] | pCollect | Pointer to the collection |
[in] | nX | Absolute X coordinate to use for search |
[in] | nY | Absolute Y coordinate to use for search |
bool gslc_CollectFindFocusStep | ( | gslc_tsGui * | pGui, |
gslc_tsCollect * | pCollect, | ||
bool | bNext, | ||
bool * | pbWrapped, | ||
int16_t * | pnElemInd | ||
) |
gslc_tsElemRef* gslc_CollectGetElemRefTracked | ( | gslc_tsGui * | pGui, |
gslc_tsCollect * | pCollect | ||
) |
Get the element within a collection that is currently being tracked.
[in] | pGui | Pointer to GUI |
[in] | pCollect | Pointer to the collection |
int16_t gslc_CollectGetFocus | ( | gslc_tsGui * | pGui, |
gslc_tsCollect * | pCollect | ||
) |
Get the element index within a collection that is currently in focus.
[in] | pGui | Pointer to GUI |
[in] | pCollect | Pointer to the collection |
int gslc_CollectGetNextId | ( | gslc_tsGui * | pGui, |
gslc_tsCollect * | pCollect | ||
) |
Allocate the next available Element ID in a collection.
[in] | pGui | Pointer to GUI |
[in] | pCollect | Pointer to the collection |
bool gslc_CollectGetRedraw | ( | gslc_tsGui * | pGui, |
gslc_tsCollect * | pCollect | ||
) |
Determine if any elements in a collection need redraw.
[in] | pGui | Pointer to GUI |
[in] | pCollect | Pointer to Element collection |
void gslc_CollectReset | ( | gslc_tsCollect * | pCollect, |
gslc_tsElem * | asElem, | ||
uint16_t | nElemMax, | ||
gslc_tsElemRef * | asElemRef, | ||
uint16_t | nElemRefMax | ||
) |
Reset the members of an element collection.
[in] | pCollect | Pointer to the collection |
[in] | asElem | Internal element array storage to associate with the collection |
[in] | nElemMax | Maximum number of elements that can be added to the internal element array (ie. RAM)) |
[in] | asElemRef | Internal element reference array storage to associate with the collection. All elements, whether they are located in the internal element array or in external Flash (PROGMEM) storage, require an entry in the element reference array. |
[in] | nElemRefMax | Maximum number of elements in the reference array. This is effectively the maximum number of elements that can appear in the collection, irrespective of whether it is stored in RAM or Flash (PROGMEM). |
void gslc_CollectSetElemTracked | ( | gslc_tsGui * | pGui, |
gslc_tsCollect * | pCollect, | ||
gslc_tsElemRef * | pElemRef | ||
) |
Set the element within a collection that is currently being tracked.
[in] | pGui | Pointer to GUI |
[in] | pCollect | Pointer to the collection |
[in] | pElemRef | Ptr to element reference to mark as being tracked |
void gslc_CollectSetFocus | ( | gslc_tsGui * | pGui, |
gslc_tsCollect * | pCollect, | ||
int16_t | nElemInd | ||
) |
Set the element index within a collection that is currently in focus.
[in] | pGui | Pointer to GUI |
[in] | pCollect | Pointer to the collection |
[in] | nElemInd | Element index to set in focus, GSLC_IND_NONE for none |
void gslc_CollectSetParent | ( | gslc_tsGui * | pGui, |
gslc_tsCollect * | pCollect, | ||
gslc_tsElemRef * | pElemRefParent | ||
) |
Assign the parent element reference to all elements within a collection.
[in] | pGui | Pointer to GUI |
[in] | pCollect | Pointer to the collection |
[in] | pElemRefParent | Ptr to element reference that is the parent |