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

Button interface class Provide interface for creating/removing custom text. More...

#include "interface/text.h"

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

Public Member Functions

 Text ()
 
 Text (int X, int Y, WCHAR *TEXT)
 
bool display (int X1, int Y1, int X2, int Y2, WCHAR *TEXT) override
 
bool redraw () override
 
TextSetColor (COLORREF color)
 
TextSetWeight (int w)
 
TextSetHeight (int h)
 
TextSetSymbolWidth (int w)
 
- Public Member Functions inherited from BaseDrawInterfaceElement
 BaseDrawInterfaceElement ()
 
 BaseDrawInterfaceElement (HDC hdc)
 
 ~BaseDrawInterfaceElement ()
 

Additional Inherited Members

- Static Protected Attributes inherited from BaseDrawInterfaceElement
static HDC hdc
 

Detailed Description

Button interface class Provide interface for creating/removing custom text.

Todo:
Customise button style

Definition at line 24 of file text.h.

Constructor & Destructor Documentation

§ Text() [1/2]

Text::Text ( )

Empty constructor. No action.

Definition at line 5 of file text.cpp.

§ Text() [2/2]

Text::Text ( int  X,
int  Y,
WCHAR *  TEXT 
)

Constructor display text

Parameters
[in]XX coordinate
[in]YY coordinate
[in]TEXTText to display

Definition at line 24 of file text.cpp.

Here is the call graph for this function:

Member Function Documentation

§ display()

bool Text::display ( int  X1,
int  Y1,
int  X2,
int  Y2,
WCHAR *  TEXT 
)
overridevirtual

Display text

Parameters
[in]X1X coordinate
[in]Y1Y coordinate
[in]X2not used
[in]Y2not used
[in]TEXTText to display

Implements BaseDrawInterfaceElement.

Definition at line 32 of file text.cpp.

Here is the caller graph for this function:

§ redraw()

bool Text::redraw ( )
overridevirtual

Redraw text

Implements BaseDrawInterfaceElement.

Definition at line 44 of file text.cpp.

Here is the call graph for this function:

§ SetColor()

Text * Text::SetColor ( COLORREF  color)

Set text color

Parameters
[in]colorText color

Definition at line 50 of file text.cpp.

Here is the caller graph for this function:

§ SetHeight()

Text * Text::SetHeight ( int  h)

Set text height

Parameters
[in]hText height

Definition at line 63 of file text.cpp.

Here is the caller graph for this function:

§ SetSymbolWidth()

Text * Text::SetSymbolWidth ( int  w)

Set symbol width

Parameters
[in]hText height

Definition at line 69 of file text.cpp.

Here is the caller graph for this function:

§ SetWeight()

Text * Text::SetWeight ( int  w)

Set text weight

Parameters
[in]wText weight

Definition at line 57 of file text.cpp.

Here is the caller graph for this function:

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