MyGUI
3.4.1
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
:
23
public
ISubWidgetRect
24
{
25
MYGUI_RTTI_DERIVED
(
TileRect
)
26
27
public
:
28
TileRect
();
29
30
void
setAlpha(
float
_alpha)
override
;
31
32
void
setVisible(
bool
_visible)
override
;
33
34
void
createDrawItem(
ITexture
* _texture,
ILayerNode
* _node)
override
;
35
void
destroyDrawItem()
override
;
36
37
// метод для отрисовки себя
38
void
doRender()
override
;
39
40
void
setStateData(
IStateInfo
* _data)
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
bool
mEmptyView
;
53
54
VertexColourType
mVertexFormat
;
55
uint32
mCurrentColour
;
56
57
FloatRect
mCurrentTexture
;
58
IntCoord
mCurrentCoord
;
59
60
ILayerNode
*
mNode
;
61
RenderItem
*
mRenderItem
;
62
63
IntSize
mTileSize
;
64
size_t
mCountVertex
;
65
66
float
mRealTileWidth
;
67
float
mRealTileHeight
;
68
69
float
mTextureHeightOne
;
70
float
mTextureWidthOne
;
71
72
bool
mTileH
;
73
bool
mTileV
;
74
};
75
76
}
// namespace MyGUI
77
78
#endif
// MYGUI_TILE_RECT_H_
MyGUI_ISubWidgetRect.h
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition:
MyGUI_Platform.h:89
MyGUI_Prerequest.h
MYGUI_RTTI_DERIVED
#define MYGUI_RTTI_DERIVED(DerivedType)
Definition:
MyGUI_RTTI.h:48
MyGUI_RenderFormat.h
MyGUI_ResourceSkin.h
MyGUI_Types.h
MyGUI_XmlDocument.h
MyGUI::ILayerNode
Definition:
MyGUI_ILayerNode.h:30
MyGUI::IStateInfo
Definition:
MyGUI_IStateInfo.h:18
MyGUI::ISubWidgetRect
Definition:
MyGUI_ISubWidgetRect.h:19
MyGUI::ITexture
Definition:
MyGUI_ITexture.h:28
MyGUI::RenderItem
Definition:
MyGUI_RenderItem.h:23
MyGUI::TileRect
Definition:
MyGUI_TileRect.h:24
MyGUI::TileRect::mTextureWidthOne
float mTextureWidthOne
Definition:
MyGUI_TileRect.h:70
MyGUI::TileRect::mRealTileHeight
float mRealTileHeight
Definition:
MyGUI_TileRect.h:67
MyGUI::TileRect::mRenderItem
RenderItem * mRenderItem
Definition:
MyGUI_TileRect.h:61
MyGUI::TileRect::mTileH
bool mTileH
Definition:
MyGUI_TileRect.h:72
MyGUI::TileRect::mCurrentTexture
FloatRect mCurrentTexture
Definition:
MyGUI_TileRect.h:57
MyGUI::TileRect::mEmptyView
bool mEmptyView
Definition:
MyGUI_TileRect.h:52
MyGUI::TileRect::mCurrentCoord
IntCoord mCurrentCoord
Definition:
MyGUI_TileRect.h:58
MyGUI::TileRect::mCurrentColour
uint32 mCurrentColour
Definition:
MyGUI_TileRect.h:55
MyGUI::TileRect::mTextureHeightOne
float mTextureHeightOne
Definition:
MyGUI_TileRect.h:69
MyGUI::TileRect::mCountVertex
size_t mCountVertex
Definition:
MyGUI_TileRect.h:64
MyGUI::TileRect::mTileSize
IntSize mTileSize
Definition:
MyGUI_TileRect.h:63
MyGUI::TileRect::mRealTileWidth
float mRealTileWidth
Definition:
MyGUI_TileRect.h:66
MyGUI::TileRect::mNode
ILayerNode * mNode
Definition:
MyGUI_TileRect.h:60
MyGUI::TileRect::mVertexFormat
VertexColourType mVertexFormat
Definition:
MyGUI_TileRect.h:54
MyGUI::TileRect::mTileV
bool mTileV
Definition:
MyGUI_TileRect.h:73
MyGUI
Definition:
MyGUI_ActionController.h:15
MyGUI::uint32
uint32_t uint32
Definition:
MyGUI_Types.h:47
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.9.4