summary refs log tree commit diff stats
path: root/src/components/transformable.h
blob: 69f4f0e932bbc0b69a0cd85b9a477858d78576cd (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
#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);

    double getX() const;
    double getY() const;
    int getW() const;
    int getH() const;

    void setX(double v);
    void setY(double v);
    void setW(int v);
    void setH(int v);

  private:
    double x;
    double y;
    int w;
    int h;
};

#endif /* end of include guard: LOCATABLE_H_39E526CA */