UGDK
0.4.1
Main Page
Namespaces
Classes
Files
File List
File Members
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
4
#include <
ugdk/graphic/drawable/shape.h
>
5
#include <
ugdk/base/types.h
>
6
7
namespace
ugdk {
8
namespace
graphic {
9
10
class
SolidRectangle
:
public
Shape
{
11
public
:
12
SolidRectangle
(
const
Vector2D
&
size
);
13
~SolidRectangle
();
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
src
ugdk
graphic
drawable
solidrectangle.h
Generated on Sat Oct 13 2012 02:25:11 for UGDK by
1.8.2