My Project
|
Main drwa interface class. Provides access to create/remove/update elements. More...
#include "interface/drawinterface.h"
Public Member Functions | |
BaseDrawInterface () | |
~BaseDrawInterface () | |
Text * | text (int ID) |
URectangle * | rectangle (int ID) |
bool | redraw (int ID=-1) |
void | remove (int ID) |
Main drwa interface class. Provides access to create/remove/update elements.
Contains list of all interface elemets.
Example of creating and removing button with ID = 1111:
Definition at line 131 of file drawinterface.h.
BaseDrawInterface::BaseDrawInterface | ( | ) |
Empty constructor. No action.
Definition at line 23 of file drawinterface.cpp.
BaseDrawInterface::~BaseDrawInterface | ( | ) |
Destructor. Removes all interface items and dealocates memory. (Cleans interfaceCtrlsList)
Definition at line 28 of file drawinterface.cpp.
URectangle * BaseDrawInterface::rectangle | ( | int | ID | ) |
Provides access to draw rectangle with unique ID
[in] | ID | unique ID of rectangle |
Definition at line 54 of file drawinterface.cpp.
bool BaseDrawInterface::redraw | ( | int | ID = -1 | ) |
Redraw all elements in array
Definition at line 71 of file drawinterface.cpp.
void BaseDrawInterface::remove | ( | int | ID | ) |
Will remove item with requested ID and free memory
Definition at line 87 of file drawinterface.cpp.
Text * BaseDrawInterface::text | ( | int | ID | ) |
Provides access to text with unique ID
[in] | ID | unique ID of text |
Definition at line 37 of file drawinterface.cpp.