MyGUI 3.4.3
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"
14#include "MyGUI_ResourceSkin.h"
15#include "MyGUI_RenderFormat.h"
16
17namespace MyGUI
18{
19
20 class RenderItem;
21
23 {
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
54 uint32 mCurrentColour{0xFFFFFFFF};
55
58
59 ILayerNode* mNode{nullptr};
60 RenderItem* mRenderItem{nullptr};
61
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_
#define MYGUI_EXPORT
#define MYGUI_RTTI_DERIVED(DerivedType)
Definition MyGUI_RTTI.h:69
FloatRect mCurrentTexture
IntCoord mCurrentCoord
VertexColourType mVertexFormat
uint32_t uint32
Definition MyGUI_Types.h:48