Chrysalis - Renderer
Loading...
Searching...
No Matches
Area.h
Go to the documentation of this file.
1#ifndef CHRYSALIS_AREA_H
2#define CHRYSALIS_AREA_H
3
4namespace Chrysalis {
5 class Area {
6 public:
7 explicit Area();
8 explicit Area(float x, float y, float width, float height);
9
10 [[nodiscard]] const float& x() const;
11 [[nodiscard]] const float& y() const;
12 [[nodiscard]] const float& width() const;
13 [[nodiscard]] const float& height() const;
14
15 void scale(float scaleFactor);
16 void offset(float deltaX, float deltaY);
17 void setSize(float width, float height);
18 private:
19 float x_;
20 float y_;
21 float width_;
22 float height_;
23 };
24}
25
26#endif //CHRYSALIS_AREA_H
void offset(float deltaX, float deltaY)
Definition Area.cpp:31
const float & y() const
Definition Area.cpp:14
void setSize(float width, float height)
Definition Area.cpp:36
void scale(float scaleFactor)
Definition Area.cpp:26
Area()
Definition Area.cpp:5
const float & x() const
Definition Area.cpp:10
const float & width() const
Definition Area.cpp:18
const float & height() const
Definition Area.cpp:22
Definition Area.h:4