UGDK  0.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
solidrectangle.h
Go to the documentation of this file.
1 #ifndef UGDK_GRAPHIC_DRAWABLE_SOLIDRECTANGLE_H_
2 #define UGDK_GRAPHIC_DRAWABLE_SOLIDRECTANGLE_H_
3 
5 #include <ugdk/base/types.h>
6 
7 namespace ugdk {
8 namespace graphic {
9 
10 class SolidRectangle : public Shape {
11  public:
14 
15  void Update(double dt);
16  void Draw() const;
17 
18  const Vector2D& size() const { return size_; }
19  void set_size(const Vector2D& size) { size_ = size; }
20 
21  const Color& color() const { return color_; }
22  void set_color(const Color& color) { color_ = color; }
23 
24  private:
25  Vector2D size_;
26  Color color_;
27 };
28 
29 } // namespace graphic
30 } // namespace ugdk
31 
32 #endif