MyGUI
3.4.3
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
File List
Globals
MyGUIEngine
include
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
:
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
Definition
MyGUI_SubSkin.h:24
MyGUI::SubSkin::mCurrentTexture
FloatRect mCurrentTexture
Definition
MyGUI_SubSkin.h:58
MyGUI::SubSkin::mCurrentCoord
IntCoord mCurrentCoord
Definition
MyGUI_SubSkin.h:59
MyGUI::SubSkin::mVertexFormat
VertexColourType mVertexFormat
Definition
MyGUI_SubSkin.h:55
MyGUI::SubSkin::mRectTexture
FloatRect mRectTexture
Definition
MyGUI_SubSkin.h:52
MyGUI
Definition
MyGUI_ActionController.h:15
MyGUI::uint32
uint32_t uint32
Definition
MyGUI_Types.h:48
MyGUI::Colour
Definition
MyGUI_Colour.h:17
MyGUI::VertexColourType
Definition
MyGUI_RenderFormat.h:16
MyGUI::types::TCoord< int >
MyGUI::types::TRect< float >
MyGUI::types::TSize< int >
Generated by
1.12.0