My Project
rectangle.h
Go to the documentation of this file.
1 
12 #pragma once
13 #include "drawinterface.h"
15 
25 {
26 public:
28  URectangle();
29 
38  URectangle(int X1, int Y1, int X2, int Y2, COLORREF color);
39 
47  bool display(int X1, int Y1, int X2, int Y2, WCHAR* TEXT) override;
48 
52  bool redraw() override;
53 
58  URectangle* SetColor(COLORREF color);
59 
64  URectangle* SetBorderColor(COLORREF color);
65 
70  URectangle* SetBorderWidth(int w);
71 
72 private:
73  int X1;
74  int Y1;
75  int X2;
76  int Y2;
77  int bWidth;
78  COLORREF COLOR;
79  COLORREF bCOLOR;
80 };
URectangle * SetColor(COLORREF color)
Definition: rectangle.cpp:36
Rectangle interface class Provide interface for creating/removing custom rectangle.
Definition: rectangle.h:24
bool redraw() override
Definition: rectangle.cpp:31
URectangle * SetBorderWidth(int w)
Definition: rectangle.cpp:48
URectangle * SetBorderColor(COLORREF color)
Definition: rectangle.cpp:42
bool display(int X1, int Y1, int X2, int Y2, WCHAR *TEXT) override
Definition: rectangle.cpp:18
Base draw interface class. Parent of basic draw classes.
Definition: drawinterface.h:22