ShishGL  1.0
A simple modular cross-platform graphics library
RectangleShape.hpp
Go to the documentation of this file.
1 /*============================================================================*/
2 #ifndef SHISHGL_RECTANGLE_HPP
3 #define SHISHGL_RECTANGLE_HPP
4 /*============================================================================*/
5 #include "Shape2D.hpp"
6 /*============================================================================*/
7 namespace Sh {
8 
9  class RectangleShape : public Shape2D {
10  public:
11 
12  void draw(const Frame& viewport) const override;
13 
14  [[nodiscard]]
15  bool contains(const Frame& viewport,
16  const Vector2<double>& point) const override;
17 
18  };
19 
20 }
21 /*============================================================================*/
22 #endif //SHISHGL_RECTANGLE_HPP
23 /*============================================================================*/
Sh::Shape2D
Definition: Shape2D.hpp:12
Sh::RectangleShape::draw
void draw(const Frame &viewport) const override
Definition: RectangleShape.cpp:8
Sh::Frame
Definition: Frame.hpp:9
Sh::Vector2< double >
Shape2D.hpp
Sh
Definition: CoreApplication.hpp:10
Sh::RectangleShape
Definition: RectangleShape.hpp:9
Sh::RectangleShape::contains
bool contains(const Frame &viewport, const Vector2< double > &point) const override
Definition: RectangleShape.cpp:14