~ubuntu-branches/ubuntu/vivid/mygui/vivid

« back to all changes in this revision

Viewing changes to MyGUIEngine/include/MyGUI_ILayerNode.h

  • Committer: Package Import Robot
  • Author(s): Scott Howard, Bret Curtis, Scott Howard
  • Date: 2014-09-18 17:57:48 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20140918175748-dd8va78mvpw1jbes
Tags: 3.2.1-1
[ Bret Curtis ]
* Updated license for majority of files from LGPL to Expat (MIT)

[ Scott Howard ]
* New upstream release
* Updated patch to add build option for system GLEW libraries
* All patches accepted upstream except shared_libraries.patch
* Bumped SONAME due to dropped symbols, updated *.symbols and package
  names
* Updated license of debian/* to Expat with permission of all authors
* Don't install Doxygen autogenerated md5 and map files (thanks
  lintian)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*!
2
 
        @file
3
 
        @author         Albert Semenov
4
 
        @date           02/2008
5
 
*/
6
 
/*
7
 
        This file is part of MyGUI.
8
 
 
9
 
        MyGUI is free software: you can redistribute it and/or modify
10
 
        it under the terms of the GNU Lesser General Public License as published by
11
 
        the Free Software Foundation, either version 3 of the License, or
12
 
        (at your option) any later version.
13
 
 
14
 
        MyGUI is distributed in the hope that it will be useful,
15
 
        but WITHOUT ANY WARRANTY; without even the implied warranty of
16
 
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
 
        GNU Lesser General Public License for more details.
18
 
 
19
 
        You should have received a copy of the GNU Lesser General Public License
20
 
        along with MyGUI.  If not, see <http://www.gnu.org/licenses/>.
21
 
*/
22
 
#ifndef __MYGUI_I_LAYER_NODE_H__
23
 
#define __MYGUI_I_LAYER_NODE_H__
24
 
 
25
 
#include "MyGUI_Prerequest.h"
26
 
#include "MyGUI_Enumerator.h"
27
 
#include "MyGUI_IObject.h"
28
 
#include "MyGUI_IRenderTarget.h"
29
 
 
30
 
namespace MyGUI
31
 
{
32
 
 
33
 
        class ILayer;
34
 
        class ILayerItem;
35
 
        class ILayerNode;
36
 
 
37
 
        class RenderItem;
38
 
 
39
 
        typedef std::vector<ILayerNode*> VectorILayerNode;
40
 
        typedef Enumerator<VectorILayerNode> EnumeratorILayerNode;
41
 
 
42
 
        class MYGUI_EXPORT ILayerNode :
43
 
                public IObject
44
 
        {
45
 
                MYGUI_RTTI_DERIVED( ILayerNode )
46
 
 
47
 
        public:
48
 
                virtual ~ILayerNode() { }
49
 
 
50
 
                // леер, которому мы принадлежим
51
 
                virtual ILayer* getLayer() const = 0;
52
 
 
53
 
                // возвращает отца или nullptr
54
 
                virtual ILayerNode* getParent() const = 0;
55
 
 
56
 
                // создаем дочерний нод
57
 
                virtual ILayerNode* createChildItemNode() = 0;
58
 
                // удаляем дочерний нод
59
 
                virtual void destroyChildItemNode(ILayerNode* _node) = 0;
60
 
 
61
 
                // поднимаем дочерний нод
62
 
                virtual void upChildItemNode(ILayerNode* _node) = 0;
63
 
 
64
 
                // список детей
65
 
                virtual EnumeratorILayerNode getEnumerator() const = 0;
66
 
 
67
 
                // добавляем айтем к ноду
68
 
                virtual void attachLayerItem(ILayerItem* _item) = 0;
69
 
                // удаляем айтем из нода
70
 
                virtual void detachLayerItem(ILayerItem* _root) = 0;
71
 
 
72
 
                // добавляет саб айтем и возвращает рендер айтем
73
 
                virtual RenderItem* addToRenderItem(ITexture* _texture, bool _firstQueue, bool _separate) = 0;
74
 
                // необходимо обновление нода
75
 
                virtual void outOfDate(RenderItem* _item) = 0;
76
 
 
77
 
                // возвращает виджет по позиции
78
 
                virtual ILayerItem* getLayerItemByPoint(int _left, int _top) const = 0;
79
 
 
80
 
                // рисует леер
81
 
                virtual void renderToTarget(IRenderTarget* _target, bool _update) = 0;
82
 
 
83
 
                virtual void resizeView(const IntSize& _viewSize) = 0;
84
 
        };
85
 
 
86
 
} // namespace MyGUI
87
 
 
88
 
#endif // __MYGUI_I_LAYER_NODE_H__
 
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
 
 
15
namespace MyGUI
 
16
{
 
17
 
 
18
        class ILayer;
 
19
        class ILayerItem;
 
20
        class ILayerNode;
 
21
 
 
22
        class RenderItem;
 
23
 
 
24
        typedef std::vector<ILayerNode*> VectorILayerNode;
 
25
        typedef Enumerator<VectorILayerNode> EnumeratorILayerNode;
 
26
 
 
27
        class MYGUI_EXPORT ILayerNode :
 
28
                public IObject
 
29
        {
 
30
                MYGUI_RTTI_DERIVED( ILayerNode )
 
31
 
 
32
        public:
 
33
                virtual ~ILayerNode() { }
 
34
 
 
35
                // леер, которому мы принадлежим
 
36
                virtual ILayer* getLayer() const = 0;
 
37
 
 
38
                // возвращает отца или nullptr
 
39
                virtual ILayerNode* getParent() const = 0;
 
40
 
 
41
                // создаем дочерний нод
 
42
                virtual ILayerNode* createChildItemNode() = 0;
 
43
                // удаляем дочерний нод
 
44
                virtual void destroyChildItemNode(ILayerNode* _node) = 0;
 
45
 
 
46
                // поднимаем дочерний нод
 
47
                virtual void upChildItemNode(ILayerNode* _node) = 0;
 
48
 
 
49
                // список детей
 
50
                virtual EnumeratorILayerNode getEnumerator() const = 0;
 
51
 
 
52
                virtual size_t getLayerNodeCount() const = 0;
 
53
 
 
54
                virtual ILayerNode* getLayerNodeAt(size_t _index) const = 0;
 
55
 
 
56
                // добавляем айтем к ноду
 
57
                virtual void attachLayerItem(ILayerItem* _item) = 0;
 
58
                // удаляем айтем из нода
 
59
                virtual void detachLayerItem(ILayerItem* _root) = 0;
 
60
 
 
61
                // добавляет саб айтем и возвращает рендер айтем
 
62
                virtual RenderItem* addToRenderItem(ITexture* _texture, bool _firstQueue, bool _separate) = 0;
 
63
                // необходимо обновление нода
 
64
                virtual void outOfDate(RenderItem* _item) = 0;
 
65
 
 
66
                // возвращает виджет по позиции
 
67
                virtual ILayerItem* getLayerItemByPoint(int _left, int _top) const = 0;
 
68
 
 
69
                // рисует леер
 
70
                virtual void renderToTarget(IRenderTarget* _target, bool _update) = 0;
 
71
 
 
72
                virtual void resizeView(const IntSize& _viewSize) = 0;
 
73
 
 
74
                virtual float getNodeDepth() = 0;
 
75
        };
 
76
 
 
77
} // namespace MyGUI
 
78
 
 
79
#endif // __MYGUI_I_LAYER_NODE_H__