My Project
|
Rectangle interface class Provide interface for creating/removing custom rectangle. More...
#include "interface/rectangle.h"
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 |
URectangle * | SetColor (COLORREF color) |
URectangle * | SetBorderColor (COLORREF color) |
URectangle * | SetBorderWidth (int w) |
![]() | |
BaseDrawInterfaceElement () | |
BaseDrawInterfaceElement (HDC hdc) | |
~BaseDrawInterfaceElement () | |
Additional Inherited Members | |
![]() | |
static HDC | hdc |
Rectangle interface class Provide interface for creating/removing custom rectangle.
Definition at line 24 of file rectangle.h.
URectangle::URectangle | ( | ) |
Empty constructor. No action.
Definition at line 5 of file rectangle.cpp.
URectangle::URectangle | ( | int | X1, |
int | Y1, | ||
int | X2, | ||
int | Y2, | ||
COLORREF | color | ||
) |
Constructor display rectangle
[in] | X1 | left X coordinate |
[in] | Y1 | top Y coordinate |
[in] | X2 | right X coordinate |
[in] | Y2 | bottom Y coordinate |
[in] | color | color of rectangle |
Definition at line 8 of file rectangle.cpp.
|
overridevirtual |
Constructor display rectangle
[in] | X1 | left X coordinate |
[in] | Y1 | top Y coordinate |
[in] | X2 | right X coordinate |
[in] | Y2 | bottom Y coordinate |
Implements BaseDrawInterfaceElement.
Definition at line 18 of file rectangle.cpp.
|
overridevirtual |
Redraw rectangle
Implements BaseDrawInterfaceElement.
Definition at line 31 of file rectangle.cpp.
URectangle * URectangle::SetBorderColor | ( | COLORREF | color | ) |
Set rectangle border color
[in] | color | Rectangle border color |
Definition at line 42 of file rectangle.cpp.
URectangle * URectangle::SetBorderWidth | ( | int | w | ) |
Set rectangle border width
[in] | w | Rectangle border width |
Definition at line 48 of file rectangle.cpp.
URectangle * URectangle::SetColor | ( | COLORREF | color | ) |
Set rectangle color
[in] | color | Rectangle color |
Definition at line 36 of file rectangle.cpp.