7 #ifndef CAFU_GUISYS_COMPONENT_TRANSFORM_HPP_INCLUDED
8 #define CAFU_GUISYS_COMPONENT_TRANSFORM_HPP_INCLUDED
10 #include "CompBase.hpp"
31 const Vector2fT& GetPos()
const {
return m_Pos.Get(); }
32 const Vector2fT& GetSize()
const {
return m_Size.Get(); }
33 float GetRotAngle()
const {
return m_RotAngle.
Get(); }
35 void SetPos(
const Vector2fT& Pos) { m_Pos.Set(Pos); }
36 void SetSize(
const Vector2fT& Size) { m_Size.Set(Size); }
37 void SetRotAngle(
float RotAngle) { m_RotAngle.
Set(RotAngle); }
41 const char*
GetName()
const {
return "Transform"; }
53 static int toString(lua_State* LuaState);
56 static const char* DocClass;
63 enum SizeFlagsT { RATIO, FIXED };
This is a "wrapper" around a normal C++ variable.
Definition: SetCompVar.hpp:15
This is the base class for the components that a window is composed/aggregated of.
Definition: CompBase.hpp:51
virtual void Set(const T &v)
Sets the value of this variable to the given value v.
Definition: Variables.hpp:189
Definition: TypeSys.hpp:52
Definition: TypeSys.hpp:57
This class keeps type information (about an entity class that occurs in the game).
Definition: TypeSys.hpp:79
const T & Get() const
Returns the value of this variable.
Definition: Variables.hpp:182
Definition: TypeSys.hpp:68