My Project
All Classes Files Functions Variables Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
Editfield Class Reference

Editfield interface class Provide interface for creating/removing editfield. More...

#include "interface/editfield.h"

Inheritance diagram for Editfield:
Inheritance graph
[legend]
Collaboration diagram for Editfield:
Collaboration graph
[legend]

Public Member Functions

 Editfield ()
 
 Editfield (int ID)
 
 Editfield (int X, int Y, int HEIGHT, int WIDTH, WCHAR *TEXT=NULL)
 
 ~Editfield ()
 
HWND create (int X, int Y, int HEIGHT, int WIDTH, WCHAR *TEXT) override
 
WCHAR * getText ()
 
int getInt ()
 
HWND getHWND ()
 
void remove () override
 
- Public Member Functions inherited from BaseInterfaceCtrl
 BaseInterfaceCtrl ()
 
 BaseInterfaceCtrl (HWND hWnd, HINSTANCE hInst)
 
 ~BaseInterfaceCtrl ()
 

Additional Inherited Members

- Static Protected Attributes inherited from BaseInterfaceCtrl
static HWND hWnd
 
static HINSTANCE hInst
 

Detailed Description

Editfield interface class Provide interface for creating/removing editfield.

Todo:
Customise editfield style

Definition at line 24 of file editfield.h.

Constructor & Destructor Documentation

§ Editfield() [1/3]

Editfield::Editfield ( )

Empty constructor. No action.

Definition at line 5 of file editfield.cpp.

§ Editfield() [2/3]

Editfield::Editfield ( int  ID)

Constructor sets ID in 'id' variable

Parameters
[in]IDUnique identify of editfield

Definition at line 10 of file editfield.cpp.

§ Editfield() [3/3]

Editfield::Editfield ( int  X,
int  Y,
int  HEIGHT,
int  WIDTH,
WCHAR *  TEXT = NULL 
)

Constructor create and display editfield

Parameters
[in]XX coordinate
[in]YY coordinate
[in]HEIGHTHeight of the window
[in]WIDTHWidth of the window
[in]TEXTText which is displaying on element

Definition at line 15 of file editfield.cpp.

Here is the call graph for this function:

§ ~Editfield()

Editfield::~Editfield ( )

Destructor. Removes editfield (Does not free memory)

Definition at line 20 of file editfield.cpp.

Member Function Documentation

§ create()

HWND Editfield::create ( int  X,
int  Y,
int  HEIGHT,
int  WIDTH,
WCHAR *  TEXT 
)
overridevirtual

Create and display editfield

Parameters
[in]XX coordinate
[in]YY coordinate
[in]HEIGHTHeight of the window
[in]WIDTHWidth of the window
[in]TEXTText which is displaying on element
Returns
HWND of created window

Implements BaseInterfaceCtrl.

Definition at line 25 of file editfield.cpp.

Here is the caller graph for this function:

§ getHWND()

HWND Editfield::getHWND ( )

Definition at line 59 of file editfield.cpp.

§ getInt()

int Editfield::getInt ( )

Get integer value from editfield

Returns
integer value

Definition at line 49 of file editfield.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

§ getText()

WCHAR * Editfield::getText ( )

Get text from editfield

Returns
text

Definition at line 42 of file editfield.cpp.

Here is the caller graph for this function:

§ remove()

void Editfield::remove ( )
overridevirtual

Removes editfield (Does not free memory)

Implements BaseInterfaceCtrl.

Definition at line 64 of file editfield.cpp.


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