My Project
Public Member Functions | List of all members
BaseDrawInterface Class Reference

Main drwa interface class. Provides access to create/remove/update elements. More...

#include "interface/drawinterface.h"

Public Member Functions

 BaseDrawInterface ()
 
 ~BaseDrawInterface ()
 
Texttext (int ID)
 
URectanglerectangle (int ID)
 
bool redraw (int ID=-1)
 
void remove (int ID)
 

Detailed Description

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:

interface = new BaseInterface;
interface->button(1111)->create(10,10,100,200,TEXT("MY BUTTON")); // created
interface->button(1111)->remove(); // removed (memory still allocated in interfaceCtrlLists)

Definition at line 131 of file drawinterface.h.

Constructor & Destructor Documentation

§ BaseDrawInterface()

BaseDrawInterface::BaseDrawInterface ( )

Empty constructor. No action.

Definition at line 23 of file drawinterface.cpp.

§ ~BaseDrawInterface()

BaseDrawInterface::~BaseDrawInterface ( )

Destructor. Removes all interface items and dealocates memory. (Cleans interfaceCtrlsList)

Definition at line 28 of file drawinterface.cpp.

Member Function Documentation

§ rectangle()

URectangle * BaseDrawInterface::rectangle ( int  ID)

Provides access to draw rectangle with unique ID

Parameters
[in]IDunique ID of rectangle
Returns
Pointer to rectangle object

Definition at line 54 of file drawinterface.cpp.

Here is the caller graph for this function:

§ redraw()

bool BaseDrawInterface::redraw ( int  ID = -1)

Redraw all elements in array

Returns
true if all elements redrawed

Definition at line 71 of file drawinterface.cpp.

Here is the caller graph for this function:

§ remove()

void BaseDrawInterface::remove ( int  ID)

Will remove item with requested ID and free memory

Definition at line 87 of file drawinterface.cpp.

§ text()

Text * BaseDrawInterface::text ( int  ID)

Provides access to text with unique ID

Parameters
[in]IDunique ID of text
Returns
Pointer to text object

Definition at line 37 of file drawinterface.cpp.

Here is the caller graph for this function:

The documentation for this class was generated from the following files: