MyGUI
3.4.3
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
File List
Globals
MyGUIEngine
include
MyGUI_TileRect.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_TILE_RECT_H_
8
#define MYGUI_TILE_RECT_H_
9
10
#include "
MyGUI_Prerequest.h
"
11
#include "
MyGUI_XmlDocument.h
"
12
#include "
MyGUI_Types.h
"
13
#include "
MyGUI_ISubWidgetRect.h
"
14
#include "
MyGUI_ResourceSkin.h
"
15
#include "
MyGUI_RenderFormat.h
"
16
17
namespace
MyGUI
18
{
19
20
class
RenderItem;
21
22
class
MYGUI_EXPORT
TileRect
:
public
ISubWidgetRect
23
{
24
MYGUI_RTTI_DERIVED
(
TileRect
)
25
26
public
:
27
TileRect
();
28
29
void
setAlpha(
float
_alpha)
override
;
30
31
void
setVisible(
bool
_visible)
override
;
32
33
void
createDrawItem(
ITexture
* _texture,
ILayerNode
* _node)
override
;
34
void
destroyDrawItem()
override
;
35
36
// метод для отрисовки себя
37
void
doRender()
override
;
38
39
void
setStateData(
IStateInfo
* _data)
override
;
40
41
/*internal:*/
42
void
_updateView()
override
;
43
void
_correctView()
override
;
44
45
void
_setAlign(
const
IntSize
& _oldsize)
override
;
46
47
void
_setUVSet(
const
FloatRect
& _rect)
override
;
48
void
_setColour(
const
Colour
& _value)
override
;
49
50
protected
:
51
bool
mEmptyView{
false
};
52
53
VertexColourType
mVertexFormat
;
54
uint32
mCurrentColour{0xFFFFFFFF};
55
56
FloatRect
mCurrentTexture
;
57
IntCoord
mCurrentCoord
;
58
59
ILayerNode
* mNode{
nullptr
};
60
RenderItem
* mRenderItem{
nullptr
};
61
62
IntSize
mTileSize
;
63
size_t
mCountVertex
;
64
65
float
mRealTileWidth{0};
66
float
mRealTileHeight{0};
67
68
float
mTextureHeightOne{0};
69
float
mTextureWidthOne{0};
70
71
bool
mTileH{
true
};
72
bool
mTileV{
true
};
73
};
74
75
}
// namespace MyGUI
76
77
#endif
// MYGUI_TILE_RECT_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::TileRect
Definition
MyGUI_TileRect.h:23
MyGUI::TileRect::mCurrentTexture
FloatRect mCurrentTexture
Definition
MyGUI_TileRect.h:56
MyGUI::TileRect::mCurrentCoord
IntCoord mCurrentCoord
Definition
MyGUI_TileRect.h:57
MyGUI::TileRect::mCountVertex
size_t mCountVertex
Definition
MyGUI_TileRect.h:63
MyGUI::TileRect::mTileSize
IntSize mTileSize
Definition
MyGUI_TileRect.h:62
MyGUI::TileRect::mVertexFormat
VertexColourType mVertexFormat
Definition
MyGUI_TileRect.h:53
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