MyGUI 3.2.2

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 virtual ~TileRect();
30
31 virtual void setAlpha(float _alpha);
32
33 virtual void setVisible(bool _visible);
34
35 virtual void createDrawItem(ITexture* _texture, ILayerNode* _node);
36 virtual void destroyDrawItem();
37
38 // метод для отрисовки себя
39 virtual void doRender();
40
41 virtual void setStateData(IStateInfo* _data);
42
43 /*internal:*/
44 virtual void _updateView();
45 virtual void _correctView();
46
47 virtual void _setAlign(const IntSize& _oldsize);
48
49 virtual void _setUVSet(const FloatRect& _rect);
50 virtual void _setColour(const Colour& _value);
51
52 protected:
53 bool mEmptyView;
54
55 VertexColourType mVertexFormat;
56 uint32 mCurrentColour;
57
58 FloatRect mCurrentTexture;
59 IntCoord mCurrentCoord;
60
61 ILayerNode* mNode;
62 RenderItem* mRenderItem;
63
64 IntSize mTileSize;
65 size_t mCountVertex;
66
67 float mRealTileWidth;
68 float mRealTileHeight;
69
70 float mTextureHeightOne;
71 float mTextureWidthOne;
72
73 bool mTileH;
74 bool mTileV;
75 };
76
77 } // namespace MyGUI
78
79 #endif // MYGUI_TILE_RECT_H_
MyGUI::types::TCoord< int >
MyGUI::uint32
unsigned int uint32
Definition: MyGUI_Types.h:48
MyGUI::ILayerNode
Definition: MyGUI_ILayerNode.h:27
MyGUI::ISubWidgetRect
Definition: MyGUI_ISubWidgetRect.h:17
MyGUI_Prerequest.h
MyGUI::IStateInfo
Definition: MyGUI_IStateInfo.h:16
MyGUI::types::TSize< int >
MyGUI::TileRect::mTextureWidthOne
float mTextureWidthOne
Definition: MyGUI_TileRect.h:71
MyGUI::RenderItem
Definition: MyGUI_RenderItem.h:22
MyGUI::TileRect::mRenderItem
RenderItem * mRenderItem
Definition: MyGUI_TileRect.h:62
MyGUI::TileRect::mEmptyView
bool mEmptyView
Definition: MyGUI_TileRect.h:53
MyGUI_Types.h
MyGUI::TileRect::mCurrentTexture
FloatRect mCurrentTexture
Definition: MyGUI_TileRect.h:58
MyGUI::VertexColourType
Definition: MyGUI_RenderFormat.h:15
MyGUI::TileRect::mTileV
bool mTileV
Definition: MyGUI_TileRect.h:74
MyGUI_XmlDocument.h
MyGUI::TileRect::mRealTileWidth
float mRealTileWidth
Definition: MyGUI_TileRect.h:67
MyGUI
Definition: MyGUI_ActionController.h:14
MYGUI_RTTI_DERIVED
#define MYGUI_RTTI_DERIVED(DerivedType)
Definition: MyGUI_RTTI.h:65
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition: MyGUI_Platform.h:103
MyGUI::types::TRect< float >
MyGUI::TileRect::mRealTileHeight
float mRealTileHeight
Definition: MyGUI_TileRect.h:68
MyGUI::TileRect::mCountVertex
size_t mCountVertex
Definition: MyGUI_TileRect.h:65
MyGUI::ITexture
Definition: MyGUI_ITexture.h:26
MyGUI::TileRect::mNode
ILayerNode * mNode
Definition: MyGUI_TileRect.h:61
MyGUI_ResourceSkin.h
MyGUI::TileRect
Definition: MyGUI_TileRect.h:22
MyGUI_ISubWidgetRect.h
MyGUI::TileRect::mCurrentCoord
IntCoord mCurrentCoord
Definition: MyGUI_TileRect.h:59
MyGUI::TileRect::mTextureHeightOne
float mTextureHeightOne
Definition: MyGUI_TileRect.h:70
MyGUI::TileRect::mTileH
bool mTileH
Definition: MyGUI_TileRect.h:73
MyGUI::Colour
Definition: MyGUI_Colour.h:16
MyGUI_RenderFormat.h
MyGUI::TileRect::mTileSize
IntSize mTileSize
Definition: MyGUI_TileRect.h:64
MyGUI::TileRect::mVertexFormat
VertexColourType mVertexFormat
Definition: MyGUI_TileRect.h:55
MyGUI::TileRect::mCurrentColour
uint32 mCurrentColour
Definition: MyGUI_TileRect.h:56