blob: 6ed26374e108d7eca9968d6a40a9fceb3246ee5f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
#ifndef LOCATABLE_H_39E526CA
#define LOCATABLE_H_39E526CA
#include "component.h"
class TransformableComponent : public Component {
public:
TransformableComponent(
double x,
double y,
int w,
int h) :
x_(x),
y_(y),
w_(w),
h_(h)
{
}
inline double getX() const
{
return x_;
}
inline void setX(double v)
{
x_ = v;
}
inline double getY() const
{
return y_;
}
inline void setY(double v)
{
y_ = v;
}
inline int getW() const
{
return w_;
}
inline void setW(int v)
{
w_ = v;
}
inline int getH() const
{
return h_;
}
inline void setH(int v)
{
h_ = v;
}
private:
double x_;
double y_;
int w_;
int h_;
};
#endif /* end of include guard: LOCATABLE_H_39E526CA */
|