1 #ifndef ATHENA_NO_SAKURA
17 #ifndef SSPRITEPART_HPP
18 #define SSPRITEPART_HPP
20 #include "Athena/Global.hpp"
45 Q_PROPERTY(QString name READ name WRITE setName)
46 Q_PROPERTY(
bool hasCollision READ hasCollision WRITE setCollision)
60 void setName(
const std::string& name);
61 std::string name()
const;
63 void setName(
const QString& name);
67 void setCollision(
bool col);
68 bool hasCollision()
const;
108 #ifndef ATHENA_USE_QT
118 #ifndef ATHENA_USE_QT
129 void setSize(atUint32 width, atUint32 height);
135 #ifndef ATHENA_USE_QT
138 void setSize(
const QSize& size);
145 #ifndef ATHENA_USE_QT
180 void nameChanged(QString);
181 void orientationChanged(
bool,
bool);
182 void offsetChanged(QPoint);
183 void textureOffsetChanged(QPoint);
184 void sizeChanged(QSize);
185 void collisionChanged(
bool);
190 #ifndef ATHENA_USE_QT
196 #ifndef ATHENA_USE_QT
202 QPoint m_textureOffset;
207 atUint32 m_frameIndex;
216 #endif // SSPRITEPART_HPP
217 #endif // ATHENA_NO_SAKURA
void setFlippedHorizontally(const bool val)
setFlippedHorizontally
void setTextureOffset(float x, float y)
setTextureOffset
Vector2Df textureOffset() const
textureOffset
void setOffset(float x, float y)
setOffset
void setSize(atUint32 width, atUint32 height)
setSize
Vector2Df offset() const
offset
bool flippedHorizontally() const
flippedHorizontally
void setFlippedVertically(const bool val)
setFlippedVertically
bool flippedVertically() const
flippedVertically
Vector2Di size() const
size