MyGUI 3.5.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_IObject.h"
12#include "MyGUI_IRenderTarget.h"
13#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*>;
26
27 class MYGUI_EXPORT ILayerNode : public IObject, public MemberObsolete<ILayerNode>
28 {
29 MYGUI_RTTI_DERIVED(ILayerNode)
30
31 public:
32 // Layer we belong to
33 virtual ILayer* getLayer() const = 0;
34
35 // Return parent or nullptr
36 virtual ILayerNode* getParent() const = 0;
37
38 virtual ILayerNode* createChildItemNode() = 0;
39 virtual void destroyChildItemNode(ILayerNode* _node) = 0;
40
41 // up child item (make it draw and pick above others)
42 virtual void upChildItemNode(ILayerNode* _item) = 0;
43
44 // child items list
45 virtual const VectorILayerNode& getChildItems() const = 0;
46
47 virtual size_t getLayerNodeCount() const = 0;
48
49 virtual ILayerNode* getLayerNodeAt(size_t _index) const = 0;
50
51 virtual void attachLayerItem(ILayerItem* _item) = 0;
52 virtual void detachLayerItem(ILayerItem* _root) = 0;
53
54#ifndef MYGUI_DONT_USE_OBSOLETE
55 using MemberObsolete<ILayerNode>::addToRenderItem;
56#endif
57 virtual RenderItem* addToRenderItem(ITexture* _texture, bool _firstQueue) = 0;
58 virtual void outOfDate(RenderItem* _item) = 0;
59
60 virtual ILayerItem* getLayerItemByPoint(int _left, int _top) const = 0;
61
62 virtual void renderToTarget(IRenderTarget* _target, bool _update) = 0;
63
64 virtual void resizeView(const IntSize& _viewSize) = 0;
65
66 virtual float getNodeDepth() const = 0;
67 };
68
69} // namespace MyGUI
70
71#endif // MYGUI_I_LAYER_NODE_H_
#define MYGUI_EXPORT
#define MYGUI_RTTI_DERIVED(DerivedType)
Definition MyGUI_RTTI.h:67
std::vector< ILayerNode * > VectorILayerNode
types::TSize< int > IntSize
Definition MyGUI_Types.h:29