MyGUI: MyGUI_SubSkin.h Source File

MyGUI 3.4.3

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