44 #include "UI/uienumerations.h"
45 #include "UI/textureatlas.h"
97 {
return Atlas->GetName(); }
105 {
return this->Top * Atlas->GetTextureSize().Y; }
109 {
return this->Bottom * Atlas->GetTextureSize().Y; }
113 {
return this->Left * Atlas->GetTextureSize().X; }
117 {
return this->Right * Atlas->GetTextureSize().X; }
121 {
return Vector2(this->Left,this->Top) * Atlas->GetTextureSize(); }
125 {
return Vector2(this->GetWidth(),this->GetHeight()); }
129 {
return GetUVBottom() - GetUVTop(); }
133 {
return GetUVRight() - GetUVLeft(); }
141 case UI::QC_TopLeft:
return Vector2(Left,Top) * Atlas->GetTextureSize();
break;
142 case UI::QC_TopRight:
return Vector2(Right,Top) * Atlas->GetTextureSize();
break;
143 case UI::QC_BottomLeft:
return Vector2(Left,Bottom) * Atlas->GetTextureSize();
break;
144 case UI::QC_BottomRight:
return Vector2(Right,Bottom) * Atlas->GetTextureSize();
break;
154 case UI::QC_TopLeft:
return Vector2(Left,Top);
break;
155 case UI::QC_TopRight:
return Vector2(Right,Top);
break;
156 case UI::QC_BottomLeft:
return Vector2(Left,Bottom);
break;
157 case UI::QC_BottomRight:
return Vector2(Right,Bottom);
break;