#include <GewiWidgetList.h>
Public Member Functions | |
WidgetList () | |
Constructor for the linked list. | |
void | AddWidget (WidgetNode *node) |
Add a WidgetNode to the list. | |
void | DeleteWidget (GWidget *widget) |
Delete a widget. | |
void | DeleteWidgets () |
Delete all widgets. | |
void | Message (SDL_Event *rawEvent, GewiEvent event, Uint16 mouseX, Uint16 mouseY, char ch) |
Intercepts a message to process. | |
void | FitParent () |
Fit all widgets to the parent. | |
void | ShowWidgets () |
Show widgets. | |
Private Member Functions | |
void | DeleteWidgetMem (WidgetNode *node) |
Internal function to delete widget memory. | |
Private Attributes | |
WidgetNode * | mWidgetList |
Pointer to head of list. | |
WidgetNode * | mClick |
Variable keeping track of where the last click was, to change focus. |
|
Simply NULLs pointers for the linked list. |
|
Deletes the memory used by a widget node, interally used.
|
|
Adds a WidgetNode to the list, in the 'front'.
|
|
Deletes a widget, it's memory and frees it from it's container or GewiEngine.
|
|
Deletes all widgets and their memory. |
|
Intercepts and processes incoming messages, delegating them where they belong.
|
|
Fits widgets to parent of which this linked list is a part of. |
|
Calls Show method of widgets in reverse order for proper appearance. |