GUIslice  0.16.0
Embedded GUI in C
Internal: Cleanup Functions
Collaboration diagram for Internal: Cleanup Functions:

Functions

void gslc_GuiDestruct (gslc_tsGui *pGui)
 Free up any surfaces associated with the GUI, pages, collections and elements. More...
 
void gslc_PageDestruct (gslc_tsGui *pGui, gslc_tsPage *pPage)
 Free up any members associated with a page. More...
 
void gslc_CollectDestruct (gslc_tsGui *pGui, gslc_tsCollect *pCollect)
 Free up any members associated with an element collection. More...
 
void gslc_ElemDestruct (gslc_tsElem *pElem)
 Free up any members associated with an element. More...
 
void gslc_ResetFont (gslc_tsFont *pFont)
 Initialize a Font struct. More...
 
void gslc_ResetElem (gslc_tsElem *pElem)
 Initialize an Element struct. More...
 

Detailed Description

Function Documentation

void gslc_CollectDestruct ( gslc_tsGui pGui,
gslc_tsCollect pCollect 
)

Free up any members associated with an element collection.

Parameters
[in]pGuiPointer to GUI
[in]pCollectPointer to collection
Returns
none
void gslc_ElemDestruct ( gslc_tsElem pElem)

Free up any members associated with an element.

Parameters
[in]pElemPointer to element
Returns
none
void gslc_GuiDestruct ( gslc_tsGui pGui)

Free up any surfaces associated with the GUI, pages, collections and elements.

Also frees up any fonts.

Parameters
[in]pGuiPointer to GUI
Returns
none
void gslc_PageDestruct ( gslc_tsGui pGui,
gslc_tsPage pPage 
)

Free up any members associated with a page.

Parameters
[in]pGuiPointer to GUI
[in]pPagePointer to Page
Returns
none
void gslc_ResetElem ( gslc_tsElem pElem)

Initialize an Element struct.

Parameters
[in]pElemPointer to Element
Returns
none
void gslc_ResetFont ( gslc_tsFont pFont)

Initialize a Font struct.

Parameters
[in]pFontPointer to Font
Returns
none