GUIslice  0.16.0
Embedded GUI in C
Internal: Element Collection Event Functions
Collaboration diagram for Internal: Element Collection Event Functions:

Functions

bool gslc_CollectEvent (void *pvGui, gslc_tsEvent sEvent)
 Common event handler function for an element collection. More...
 
void gslc_CollectTouch (gslc_tsGui *pGui, gslc_tsCollect *pCollect, gslc_tsEventTouch *pEventTouch)
 Handle touch events within the element collection. More...
 
bool gslc_CollectTouchCompound (void *pvGui, void *pvElemRef, gslc_teTouch eTouch, int16_t nRelX, int16_t nRelY, gslc_tsCollect *pCollect)
 Handle dispatch of touch (up,down,move) events to compound elements sub elements. More...
 
void gslc_CollectInput (gslc_tsGui *pGui, gslc_tsCollect *pCollect, gslc_tsEventTouch *pEventTouch)
 Handle direct input events within the element collection. More...
 

Detailed Description

Function Documentation

bool gslc_CollectEvent ( void *  pvGui,
gslc_tsEvent  sEvent 
)

Common event handler function for an element collection.

Parameters
[in]pvGuiVoid pointer to GUI
[in]sEventEvent data structure
Returns
true if success, false if fail
void gslc_CollectInput ( gslc_tsGui pGui,
gslc_tsCollect pCollect,
gslc_tsEventTouch pEventTouch 
)

Handle direct input events within the element collection.

Parameters
[in]pGuiPointer to the GUI
[in]pCollectPtr to the element collection
[in]pEventTouchPtr to the touch event structure
Returns
none
void gslc_CollectTouch ( gslc_tsGui pGui,
gslc_tsCollect pCollect,
gslc_tsEventTouch pEventTouch 
)

Handle touch events within the element collection.

Parameters
[in]pGuiPointer to the GUI
[in]pCollectPtr to the element collection
[in]pEventTouchPtr to the touch event structure
Returns
none
bool gslc_CollectTouchCompound ( void *  pvGui,
void *  pvElemRef,
gslc_teTouch  eTouch,
int16_t  nRelX,
int16_t  nRelY,
gslc_tsCollect pCollect 
)

Handle dispatch of touch (up,down,move) events to compound elements sub elements.

Parameters
[in]pvGuiVoid ptr to GUI (typecast to gslc_tsGui*)
[in]pvElemRefVoid ptr to Element Reference(typecast to gslc_tsElemRef*)
[in]eTouchTouch event type
[in]nRelXTouch X coord relative to element
[in]nRelYTouch Y coord relative to element
[in]pCollectCollection containing sub elements
Returns
true if success, false otherwise