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

Rectangle interface class Provide interface for creating/removing custom rectangle. More...

#include "interface/rectangle.h"

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

Public Member Functions

 URectangle ()
 
 URectangle (int X1, int Y1, int X2, int Y2, COLORREF color)
 
bool display (int X1, int Y1, int X2, int Y2, WCHAR *TEXT) override
 
bool redraw () override
 
URectangleSetColor (COLORREF color)
 
URectangleSetBorderColor (COLORREF color)
 
URectangleSetBorderWidth (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

Rectangle interface class Provide interface for creating/removing custom rectangle.

Todo:
Customise rectangle style

Definition at line 24 of file rectangle.h.

Constructor & Destructor Documentation

§ URectangle() [1/2]

URectangle::URectangle ( )

Empty constructor. No action.

Definition at line 5 of file rectangle.cpp.

§ URectangle() [2/2]

URectangle::URectangle ( int  X1,
int  Y1,
int  X2,
int  Y2,
COLORREF  color 
)

Constructor display rectangle

Parameters
[in]X1left X coordinate
[in]Y1top Y coordinate
[in]X2right X coordinate
[in]Y2bottom Y coordinate
[in]colorcolor of rectangle

Definition at line 8 of file rectangle.cpp.

Here is the call graph for this function:

Member Function Documentation

§ display()

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

Constructor display rectangle

Parameters
[in]X1left X coordinate
[in]Y1top Y coordinate
[in]X2right X coordinate
[in]Y2bottom Y coordinate

Implements BaseDrawInterfaceElement.

Definition at line 18 of file rectangle.cpp.

Here is the caller graph for this function:

§ redraw()

bool URectangle::redraw ( )
overridevirtual

Redraw rectangle

Implements BaseDrawInterfaceElement.

Definition at line 31 of file rectangle.cpp.

Here is the call graph for this function:

§ SetBorderColor()

URectangle * URectangle::SetBorderColor ( COLORREF  color)

Set rectangle border color

Parameters
[in]colorRectangle border color

Definition at line 42 of file rectangle.cpp.

Here is the caller graph for this function:

§ SetBorderWidth()

URectangle * URectangle::SetBorderWidth ( int  w)

Set rectangle border width

Parameters
[in]wRectangle border width

Definition at line 48 of file rectangle.cpp.

Here is the caller graph for this function:

§ SetColor()

URectangle * URectangle::SetColor ( COLORREF  color)

Set rectangle color

Parameters
[in]colorRectangle color

Definition at line 36 of file rectangle.cpp.

Here is the caller graph for this function:

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