MyGUI: MyGUI_SubSkin.h Source File

MyGUI 3.2.2

MyGUI_SubSkin.h
Go to the documentation of this file.
1 /*
2 * This source file is part of MyGUI. For the latest info, see http://mygui.info/
3 * Distributed under the MIT License
4 * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
5 */
6
7 #ifndef MYGUI_SUB_SKIN_H_
8 #define MYGUI_SUB_SKIN_H_
9
10 #include "MyGUI_Prerequest.h"
11 #include "MyGUI_Types.h"
12 #include "MyGUI_XmlDocument.h"
13 #include "MyGUI_ISubWidgetRect.h"
14 #include "MyGUI_ResourceSkin.h"
15 #include "MyGUI_RenderFormat.h"
16 #include "MyGUI_IStateInfo.h"
17
18 namespace MyGUI
19 {
20
21 class RenderItem;
22
23 class MYGUI_EXPORT SubSkin :
24 public ISubWidgetRect
25 {
26 MYGUI_RTTI_DERIVED( SubSkin )
27
28 public:
29 SubSkin();
30 virtual ~SubSkin();
31
32 virtual void setAlpha(float _alpha);
33
34 virtual void setVisible(bool _visible);
35
36 virtual void setStateData(IStateInfo* _data);
37
38 virtual void createDrawItem(ITexture* _texture, ILayerNode* _node);
39 virtual void destroyDrawItem();
40
41 // метод для отрисовки себя
42 virtual void doRender();
43
44 /*internal:*/
45 virtual void _updateView();
46 virtual void _correctView();
47
48 virtual void _setAlign(const IntSize& _oldsize);
49
50 virtual void _setUVSet(const FloatRect& _rect);
51 virtual void _setColour(const Colour& _value);
52
53 protected:
54 FloatRect mRectTexture;
55 bool mEmptyView;
56
57 VertexColourType mVertexFormat;
58 uint32 mCurrentColour;
59
60 FloatRect mCurrentTexture;
61 IntCoord mCurrentCoord;
62
63 ILayerNode* mNode;
64 RenderItem* mRenderItem;
65
66 bool mSeparate;
67 };
68
69 } // namespace MyGUI
70
71 #endif // MYGUI_SUB_SKIN_H_
MyGUI::SubSkin::mCurrentTexture
FloatRect mCurrentTexture
Definition: MyGUI_SubSkin.h:60
MyGUI_XmlDocument.h
MyGUI::types::TRect< float >
MyGUI_RenderFormat.h
MyGUI::SubSkin::mVertexFormat
VertexColourType mVertexFormat
Definition: MyGUI_SubSkin.h:57
MyGUI::ILayerNode
Definition: MyGUI_ILayerNode.h:27
MyGUI_ISubWidgetRect.h
MyGUI::SubSkin
Definition: MyGUI_SubSkin.h:23
MyGUI::RenderItem
Definition: MyGUI_RenderItem.h:22
MyGUI::uint32
unsigned int uint32
Definition: MyGUI_Types.h:48
MyGUI::IStateInfo
Definition: MyGUI_IStateInfo.h:16
MyGUI::SubSkin::mCurrentCoord
IntCoord mCurrentCoord
Definition: MyGUI_SubSkin.h:61
MyGUI::SubSkin::mCurrentColour
uint32 mCurrentColour
Definition: MyGUI_SubSkin.h:58
MyGUI_Prerequest.h
MyGUI::SubSkin::mEmptyView
bool mEmptyView
Definition: MyGUI_SubSkin.h:55
MyGUI::VertexColourType
Definition: MyGUI_RenderFormat.h:15
MyGUI::SubSkin::mRenderItem
RenderItem * mRenderItem
Definition: MyGUI_SubSkin.h:64
MYGUI_RTTI_DERIVED
#define MYGUI_RTTI_DERIVED(DerivedType)
Definition: MyGUI_RTTI.h:65
MyGUI::types::TSize< int >
MyGUI::SubSkin::mNode
ILayerNode * mNode
Definition: MyGUI_SubSkin.h:63
MyGUI::ISubWidgetRect
Definition: MyGUI_ISubWidgetRect.h:17
MyGUI::ITexture
Definition: MyGUI_ITexture.h:26
MyGUI::Colour
Definition: MyGUI_Colour.h:16
MyGUI::SubSkin::mRectTexture
FloatRect mRectTexture
Definition: MyGUI_SubSkin.h:54
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition: MyGUI_Platform.h:103
MyGUI_Types.h
MyGUI_IStateInfo.h
MyGUI::types::TCoord< int >
MyGUI
Definition: MyGUI_ActionController.h:14
MyGUI_ResourceSkin.h
MyGUI::SubSkin::mSeparate
bool mSeparate
Definition: MyGUI_SubSkin.h:66