MyGUI: MyGUI_ILayer.h Source File

MyGUI 3.4.2

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files
- Examples

- File List
- Globals

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
21 class MYGUI_EXPORT ILayer :
22 public ISerializable
23 {
24 MYGUI_RTTI_DERIVED( ILayer )
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
39 virtual ILayerNode* createChildItemNode() = 0;
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
46 virtual EnumeratorILayerNode getEnumerator() const = 0;
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_
MyGUI_ILayerNode.h
MyGUI_IRenderTarget.h
MyGUI_ISerializable.h
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition MyGUI_Platform.h:77
MyGUI_Prerequest.h
MYGUI_RTTI_DERIVED
#define MYGUI_RTTI_DERIVED(DerivedType)
Definition MyGUI_RTTI.h:48
MyGUI_Types.h
MyGUI::Enumerator
Definition MyGUI_Enumerator.h:49
MyGUI::ILayer
Definition MyGUI_ILayer.h:23
MyGUI::ILayer::getPosition
virtual IntPoint getPosition(int _left, int _top) const =0
MyGUI::ILayer::renderToTarget
virtual void renderToTarget(IRenderTarget *_target, bool _update)=0
MyGUI::ILayer::getName
const std::string & getName() const
Definition MyGUI_ILayer.h:29
MyGUI::ILayer::getLayerItemByPoint
virtual ILayerItem * getLayerItemByPoint(int _left, int _top) const =0
MyGUI::ILayer::ILayer
ILayer()
Definition MyGUI_ILayer.h:27
MyGUI::ILayer::getEnumerator
virtual EnumeratorILayerNode getEnumerator() const =0
MyGUI::ILayer::upChildItemNode
virtual void upChildItemNode(ILayerNode *_node)=0
MyGUI::ILayer::getLayerNodeAt
virtual ILayerNode * getLayerNodeAt(size_t _index) const =0
MyGUI::ILayer::setName
void setName(const std::string &_name)
Definition MyGUI_ILayer.h:34
MyGUI::ILayer::createChildItemNode
virtual ILayerNode * createChildItemNode()=0
MyGUI::ILayer::getLayerNodeCount
virtual size_t getLayerNodeCount() const =0
MyGUI::ILayer::destroyChildItemNode
virtual void destroyChildItemNode(ILayerNode *_node)=0
MyGUI::ILayer::mName
std::string mName
Definition MyGUI_ILayer.h:67
MyGUI::ILayer::resizeView
virtual void resizeView(const IntSize &_viewSize)=0
MyGUI::ILayer::getSize
virtual const IntSize & getSize() const =0
MyGUI::ILayerItem
Definition MyGUI_ILayerItem.h:20
MyGUI::ILayerNode
Definition MyGUI_ILayerNode.h:30
MyGUI::IRenderTarget
Definition MyGUI_IRenderTarget.h:21
MyGUI::ISerializable
Definition MyGUI_ISerializable.h:20
MyGUI
Definition MyGUI_ActionController.h:15
MyGUI::types::TPoint< int >
MyGUI::types::TSize< int >