2018-09-30 16:26:06 +03:00
|
|
|
#ifndef GUIOBJECT_H
|
|
|
|
#define GUIOBJECT_H
|
|
|
|
|
2018-10-08 21:10:07 +03:00
|
|
|
#include "baseclass.h"
|
|
|
|
#include "QObject"
|
2018-09-30 16:26:06 +03:00
|
|
|
|
2018-10-08 21:10:07 +03:00
|
|
|
class GuiObject:public QObject, public BaseClass
|
2018-09-30 16:26:06 +03:00
|
|
|
{
|
2018-10-08 21:10:07 +03:00
|
|
|
Q_OBJECT
|
|
|
|
protected:
|
|
|
|
double x, y, angle;
|
|
|
|
QString texture;
|
|
|
|
double sizeX, sizeY, radius;
|
2018-09-30 16:26:06 +03:00
|
|
|
public:
|
2018-10-08 21:10:07 +03:00
|
|
|
GuiObject(QObject *ptr = nullptr);
|
|
|
|
|
|
|
|
double getAngle() const;
|
|
|
|
void setAngle(double angle);
|
|
|
|
|
|
|
|
double getY() const;
|
|
|
|
void setY(double y);
|
|
|
|
|
|
|
|
double getX() const;
|
|
|
|
void setX(double x);
|
|
|
|
|
|
|
|
QString getTexture() const;
|
|
|
|
void setTexture(const QString &texture);
|
2018-09-30 16:26:06 +03:00
|
|
|
};
|
|
|
|
|
2018-10-08 21:10:07 +03:00
|
|
|
#endif // GUIOBJECT_H
|