MyGUI 3.4.1
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"
14#include "MyGUI_ResourceSkin.h"
15#include "MyGUI_RenderFormat.h"
16#include "MyGUI_IStateInfo.h"
17
18namespace 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:
55
58
61
64
66 };
67
68} // namespace MyGUI
69
70#endif // MYGUI_SUB_SKIN_H_
#define MYGUI_EXPORT
#define MYGUI_RTTI_DERIVED(DerivedType)
Definition: MyGUI_RTTI.h:48
FloatRect mCurrentTexture
Definition: MyGUI_SubSkin.h:59
IntCoord mCurrentCoord
Definition: MyGUI_SubSkin.h:60
ILayerNode * mNode
Definition: MyGUI_SubSkin.h:62
VertexColourType mVertexFormat
Definition: MyGUI_SubSkin.h:56
RenderItem * mRenderItem
Definition: MyGUI_SubSkin.h:63
FloatRect mRectTexture
Definition: MyGUI_SubSkin.h:53
uint32 mCurrentColour
Definition: MyGUI_SubSkin.h:57
uint32_t uint32
Definition: MyGUI_Types.h:47