7#ifndef MYGUI_ROTATING_SKIN_H_
8#define MYGUI_ROTATING_SKIN_H_
12#ifndef MYGUI_DONT_USE_OBSOLETE
23 class MYGUI_OBSOLETE(
"RotatingSkin is deprecated; use Widget::setRotation() and Widget::setRotationCenter().")
32 void setAngle(
float _angle);
34 float getAngle()
const;
39 void setCenter(
const IntPoint& _center);
41 IntPoint getCenter(
bool _local =
true)
const;
43 void setAlpha(
float _alpha)
override;
45 void setVisible(
bool _visible)
override;
47 void setStateData(IStateInfo* _data)
override;
49 void createDrawItem(ITexture* _texture, ILayerNode* _node)
override;
50 void destroyDrawItem()
override;
52 void doRender()
override;
55 void _updateView()
override;
56 void _correctView()
override;
58 void _setAlign(
const IntSize& _oldsize)
override;
60 void _setUVSet(
const FloatRect& _rect)
override;
61 void _setColour(
const Colour& _value)
override;
64 void _rebuildGeometry();
67 bool mGeometryOutdated{
false};
74 RECT_VERTICIES_COUNT = 4,
75 GEOMETRY_VERTICIES_TOTAL_COUNT = 8
77 FloatPoint mResultVerticiesPos[GEOMETRY_VERTICIES_TOTAL_COUNT];
78 FloatPoint mResultVerticiesUV[GEOMETRY_VERTICIES_TOTAL_COUNT];
79 size_t mVertexCount{0};
81 bool mEmptyView{
false};
83 VertexColourType mVertexFormat;
84 uint32 mCurrentColour{0xFFFFFFFF};
89 ILayerNode* mNode{
nullptr};
90 RenderItem* mRenderItem{
nullptr};
#define MYGUI_OBSOLETE(text)
#define MYGUI_RTTI_DERIVED(DerivedType)
types::TPoint< int > IntPoint
types::TRect< float > FloatRect
types::TPoint< float > FloatPoint
types::TCoord< int > IntCoord