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

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

#include "interface/interface.h"

Public Member Functions

 BaseInterface ()
 
 ~BaseInterface ()
 
Buttonbutton (int ID)
 
Comboboxcombobox (int ID)
 
Editfieldeditfield (int ID)
 
void remove (int ID)
 

Detailed Description

Main 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 138 of file interface.h.

Constructor & Destructor Documentation

§ BaseInterface()

BaseInterface::BaseInterface ( )

Empty constructor. No action.

Definition at line 24 of file interface.cpp.

§ ~BaseInterface()

BaseInterface::~BaseInterface ( )

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

Definition at line 29 of file interface.cpp.

Member Function Documentation

§ button()

Button * BaseInterface::button ( int  ID)

Provides access to button with unique ID

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

Definition at line 39 of file interface.cpp.

Here is the caller graph for this function:

§ combobox()

Combobox * BaseInterface::combobox ( int  ID)

Provides access to combobox with unique ID

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

Definition at line 56 of file interface.cpp.

Here is the caller graph for this function:

§ editfield()

Editfield * BaseInterface::editfield ( int  ID)

Provides access to editfield with unique ID

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

Definition at line 73 of file interface.cpp.

Here is the caller graph for this function:

§ remove()

void BaseInterface::remove ( int  ID)

Will destroy item with requested ID and free memory

Definition at line 90 of file interface.cpp.


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