MyGUI  3.2.0
MyGUI_OverlappedLayer.h
Go to the documentation of this file.
1 
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_OVERLAPPED_LAYER_H__
23 #define __MYGUI_OVERLAPPED_LAYER_H__
24 
25 #include "MyGUI_Prerequest.h"
26 #include "MyGUI_Types.h"
27 #include "MyGUI_ILayer.h"
28 
29 namespace MyGUI
30 {
31 
33  public ILayer
34  {
36 
37  public:
39  virtual ~OverlappedLayer();
40 
41  virtual void deserialization(xml::ElementPtr _node, Version _version);
42 
43  // создаем дочерний нод
44  virtual ILayerNode* createChildItemNode();
45  // удаляем дочерний нод
46  virtual void destroyChildItemNode(ILayerNode* _node);
47 
48  // поднимаем дочерний нод
49  virtual void upChildItemNode(ILayerNode* _node);
50 
51  // список детей
52  virtual EnumeratorILayerNode getEnumerator() const;
53 
54  // возвращает виджет по позиции
55  virtual ILayerItem* getLayerItemByPoint(int _left, int _top) const;
56 
57  virtual IntPoint getPosition(int _left, int _top) const;
58 
59  virtual const IntSize& getSize() const;
60 
61  // рисует леер
62  virtual void renderToTarget(IRenderTarget* _target, bool _update);
63 
64  virtual void resizeView(const IntSize& _viewSize);
65 
66  bool isOutOfDate() const;
67 
68  protected:
69  bool mIsPick;
70  VectorILayerNode mChildItems;
71  bool mOutOfDate;
72  IntSize mViewSize;
73  };
74 
75 } // namespace MyGUI
76 
77 #endif // __MYGUI_OVERLAPPED_LAYER_H__
Element * ElementPtr
std::vector< ILayerNode * > VectorILayerNode
#define MYGUI_RTTI_DERIVED(DerivedType)
Definition: MyGUI_RTTI.h:88
#define MYGUI_EXPORT