Frame And Rectangle work
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
#ifndef Rectangle_h__
|
||||
#define Rectangle_h__
|
||||
|
||||
class Rectangle
|
||||
{
|
||||
private:
|
||||
int height;
|
||||
int width;
|
||||
int x;
|
||||
int y;
|
||||
|
||||
public:
|
||||
Rectangle();
|
||||
int Height() const { return height; }
|
||||
void Height(float val) { height = val; }
|
||||
|
||||
int Width() const { return width; }
|
||||
void Width(float val) { width = val; }
|
||||
|
||||
int X() const { return x; }
|
||||
void X(int val) { x = val; }
|
||||
|
||||
int Y() const { return y; }
|
||||
void Y(int val) { y = val; }
|
||||
};
|
||||
|
||||
Rectangle::Rectangle()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user