MyGUI  3.4.0
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 
24  public ISubWidgetRect
25  {
27 
28  public:
29  SubSkin();
30 
31  void setAlpha(float _alpha) override;
32 
33  void setVisible(bool _visible) override;
34 
35  void setStateData(IStateInfo* _data) override;
36 
37  void createDrawItem(ITexture* _texture, ILayerNode* _node) override;
38  void destroyDrawItem() override;
39 
40  // метод для отрисовки себя
41  void doRender() override;
42 
43  /*internal:*/
44  void _updateView() override;
45  void _correctView() override;
46 
47  void _setAlign(const IntSize& _oldsize) override;
48 
49  void _setUVSet(const FloatRect& _rect) override;
50  void _setColour(const Colour& _value) override;
51 
52  protected:
54  bool mEmptyView;
55 
58 
61 
64 
65  bool mSeparate;
66  };
67 
68 } // namespace MyGUI
69 
70 #endif // MYGUI_SUB_SKIN_H_
MyGUI::SubSkin::mCurrentTexture
FloatRect mCurrentTexture
Definition: MyGUI_SubSkin.h:59
MyGUI_XmlDocument.h
MyGUI::types::TRect< float >
MyGUI_RenderFormat.h
MyGUI::SubSkin::mVertexFormat
VertexColourType mVertexFormat
Definition: MyGUI_SubSkin.h:56
MyGUI::ILayerNode
Definition: MyGUI_ILayerNode.h:30
MyGUI_ISubWidgetRect.h
MyGUI::SubSkin
Definition: MyGUI_SubSkin.h:25
MyGUI::RenderItem
Definition: MyGUI_RenderItem.h:23
MyGUI::IStateInfo
Definition: MyGUI_IStateInfo.h:18
MyGUI::SubSkin::mCurrentCoord
IntCoord mCurrentCoord
Definition: MyGUI_SubSkin.h:60
MyGUI::SubSkin::mCurrentColour
uint32 mCurrentColour
Definition: MyGUI_SubSkin.h:57
MyGUI_Prerequest.h
MyGUI::uint32
unsigned int uint32
Definition: MyGUI_Types.h:46
MyGUI::SubSkin::mEmptyView
bool mEmptyView
Definition: MyGUI_SubSkin.h:54
MyGUI::VertexColourType
Definition: MyGUI_RenderFormat.h:16
MyGUI::SubSkin::mRenderItem
RenderItem * mRenderItem
Definition: MyGUI_SubSkin.h:63
MYGUI_RTTI_DERIVED
#define MYGUI_RTTI_DERIVED(DerivedType)
Definition: MyGUI_RTTI.h:48
MyGUI::types::TSize< int >
MyGUI::SubSkin::mNode
ILayerNode * mNode
Definition: MyGUI_SubSkin.h:62
MyGUI::ISubWidgetRect
Definition: MyGUI_ISubWidgetRect.h:19
MyGUI::ITexture
Definition: MyGUI_ITexture.h:28
MyGUI::Colour
Definition: MyGUI_Colour.h:17
MyGUI::SubSkin::mRectTexture
FloatRect mRectTexture
Definition: MyGUI_SubSkin.h:53
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition: MyGUI_Platform.h:89
MyGUI_Types.h
MyGUI_IStateInfo.h
MyGUI::types::TCoord< int >
MyGUI
Definition: MyGUI_ActionController.h:15
MyGUI_ResourceSkin.h
MyGUI::SubSkin::mSeparate
bool mSeparate
Definition: MyGUI_SubSkin.h:65