MyGUI 3.4.3
MyGUI_ILayerNode.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_I_LAYER_NODE_H_
8#define MYGUI_I_LAYER_NODE_H_
9
10#include "MyGUI_Prerequest.h"
11#include "MyGUI_Enumerator.h"
12#include "MyGUI_IObject.h"
13#include "MyGUI_IRenderTarget.h"
14#include "MyGUI_Types.h"
15
16namespace MyGUI
17{
18
19 class ILayer;
20 class ILayerItem;
21 class ILayerNode;
22
23 class RenderItem;
24
25 using VectorILayerNode = std::vector<ILayerNode*>;
27
29 {
31
32 public:
33 // леер, которому мы принадлежим
34 virtual ILayer* getLayer() const = 0;
35
36 // возвращает отца или nullptr
37 virtual ILayerNode* getParent() const = 0;
38
40 virtual void destroyChildItemNode(ILayerNode* _node) = 0;
41
42 // up child item (make it draw and pick above others)
43 virtual void upChildItemNode(ILayerNode* _item) = 0;
44
45 // child items list
47
48 virtual size_t getLayerNodeCount() const = 0;
49
50 virtual ILayerNode* getLayerNodeAt(size_t _index) const = 0;
51
52 // добавляем айтем к ноду
53 virtual void attachLayerItem(ILayerItem* _item) = 0;
54 // удаляем айтем из нода
55 virtual void detachLayerItem(ILayerItem* _root) = 0;
56
57 // добавляет саб айтем и возвращает рендер айтем
58 virtual RenderItem* addToRenderItem(ITexture* _texture, bool _firstQueue, bool _separate) = 0;
59 // необходимо обновление нода
60 virtual void outOfDate(RenderItem* _item) = 0;
61
62 // возвращает виджет по позиции
63 virtual ILayerItem* getLayerItemByPoint(int _left, int _top) const = 0;
64
65 // рисует леер
66 virtual void renderToTarget(IRenderTarget* _target, bool _update) = 0;
67
68 virtual void resizeView(const IntSize& _viewSize) = 0;
69
70 virtual float getNodeDepth() const = 0;
71 };
72
73} // namespace MyGUI
74
75#endif // MYGUI_I_LAYER_NODE_H_
#define MYGUI_EXPORT
#define MYGUI_RTTI_DERIVED(DerivedType)
Definition MyGUI_RTTI.h:69
virtual ILayerNode * getLayerNodeAt(size_t _index) const =0
virtual ILayerNode * getParent() const =0
virtual void destroyChildItemNode(ILayerNode *_node)=0
virtual void resizeView(const IntSize &_viewSize)=0
virtual void detachLayerItem(ILayerItem *_root)=0
virtual size_t getLayerNodeCount() const =0
virtual ILayer * getLayer() const =0
virtual void renderToTarget(IRenderTarget *_target, bool _update)=0
virtual void attachLayerItem(ILayerItem *_item)=0
virtual EnumeratorILayerNode getEnumerator() const =0
virtual float getNodeDepth() const =0
virtual void upChildItemNode(ILayerNode *_item)=0
virtual void outOfDate(RenderItem *_item)=0
virtual ILayerItem * getLayerItemByPoint(int _left, int _top) const =0
virtual RenderItem * addToRenderItem(ITexture *_texture, bool _firstQueue, bool _separate)=0
virtual ILayerNode * createChildItemNode()=0
Enumerator< VectorILayerNode > EnumeratorILayerNode
std::vector< ILayerNode * > VectorILayerNode
types::TSize< int > IntSize
Definition MyGUI_Types.h:30