My Project
Public Member Functions | Static Protected Attributes | List of all members
BaseDrawInterfaceElement Class Referenceabstract

Base draw interface class. Parent of basic draw classes. More...

#include "interface/drawinterface.h"

Inheritance diagram for BaseDrawInterfaceElement:
Inheritance graph
[legend]

Public Member Functions

 BaseDrawInterfaceElement ()
 
 BaseDrawInterfaceElement (HDC hdc)
 
 ~BaseDrawInterfaceElement ()
 
virtual bool display (int X1=0, int Y1=0, int X2=0, int Y2=0, WCHAR *TEXT=NULL)=0
 
virtual bool redraw ()=0
 

Static Protected Attributes

static HDC hdc
 

Detailed Description

Base draw interface class. Parent of basic draw classes.

Contains global HDC. Provide interface for children by virtual methods

Definition at line 22 of file drawinterface.h.

Constructor & Destructor Documentation

§ BaseDrawInterfaceElement() [1/2]

BaseDrawInterfaceElement::BaseDrawInterfaceElement ( )

Empty constructor. No action.

Definition at line 8 of file drawinterface.cpp.

§ BaseDrawInterfaceElement() [2/2]

BaseDrawInterfaceElement::BaseDrawInterfaceElement ( HDC  hdc)

Constructor fills static variables HWND and HINSTANCE.

Parameters
[in]hdcglobal HDC

Definition at line 13 of file drawinterface.cpp.

§ ~BaseDrawInterfaceElement()

BaseDrawInterfaceElement::~BaseDrawInterfaceElement ( )

Destructor. No action.

Definition at line 18 of file drawinterface.cpp.

Member Function Documentation

§ display()

virtual bool BaseDrawInterfaceElement::display ( int  X1 = 0,
int  Y1 = 0,
int  X2 = 0,
int  Y2 = 0,
WCHAR *  TEXT = NULL 
)
pure virtual

Creating interface element. Virtual.

Parameters
[in]X1start X coordinate
[in]Y1start Y coordinate
[in]X2end X coordinate
[in]Y2end Y coordinate
[in]TEXTText which is displaying on element
Returns
bool result of drawing element

Implemented in InterfaceDrawInit, URectangle, and Text.

§ redraw()

virtual bool BaseDrawInterfaceElement::redraw ( )
pure virtual

Redraw existed element

Implemented in InterfaceDrawInit, URectangle, and Text.

Member Data Documentation

§ hdc

HDC BaseDrawInterfaceElement::hdc
staticprotected

Global HDC

Definition at line 57 of file drawinterface.h.


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