MyGUI 3.4.1
MyGUI_ILayer.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_H_
8#define MYGUI_I_LAYER_H_
9
10#include "MyGUI_Prerequest.h"
11#include "MyGUI_Types.h"
12#include "MyGUI_IRenderTarget.h"
13#include "MyGUI_ILayerNode.h"
14#include "MyGUI_ISerializable.h"
15
16namespace MyGUI
17{
18
19 class ILayerItem;
20
22 public ISerializable
23 {
25
26 public:
27 ILayer() { }
28
29 const std::string& getName() const
30 {
31 return mName;
32 }
33
34 void setName(const std::string& _name)
35 {
36 mName = _name;
37 }
38
40 virtual void destroyChildItemNode(ILayerNode* _node) = 0;
41
42 // up child item (make it draw and pick above other)
43 virtual void upChildItemNode(ILayerNode* _node) = 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 // return widget at position
53 virtual ILayerItem* getLayerItemByPoint(int _left, int _top) const = 0;
54
55 // return position in layer coordinates
56 virtual IntPoint getPosition(int _left, int _top) const = 0;
57
58 // return layer size
59 virtual const IntSize& getSize() const = 0;
60
61 // render layer
62 virtual void renderToTarget(IRenderTarget* _target, bool _update) = 0;
63
64 virtual void resizeView(const IntSize& _viewSize) = 0;
65
66 protected:
67 std::string mName;
68 };
69
70} // namespace MyGUI
71
72#endif // MYGUI_I_LAYER_H_
#define MYGUI_EXPORT
#define MYGUI_RTTI_DERIVED(DerivedType)
Definition: MyGUI_RTTI.h:48
virtual IntPoint getPosition(int _left, int _top) const =0
virtual void renderToTarget(IRenderTarget *_target, bool _update)=0
const std::string & getName() const
Definition: MyGUI_ILayer.h:29
virtual ILayerItem * getLayerItemByPoint(int _left, int _top) const =0
virtual EnumeratorILayerNode getEnumerator() const =0
virtual void upChildItemNode(ILayerNode *_node)=0
virtual ILayerNode * getLayerNodeAt(size_t _index) const =0
void setName(const std::string &_name)
Definition: MyGUI_ILayer.h:34
virtual ILayerNode * createChildItemNode()=0
virtual size_t getLayerNodeCount() const =0
virtual void destroyChildItemNode(ILayerNode *_node)=0
std::string mName
Definition: MyGUI_ILayer.h:67
virtual void resizeView(const IntSize &_viewSize)=0
virtual const IntSize & getSize() const =0