MyGUI  3.2.1
MyGUI_ILayerItem.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_ITEM_H__
8 #define __MYGUI_I_LAYER_ITEM_H__
9 
10 #include "MyGUI_Prerequest.h"
11 
12 namespace MyGUI
13 {
14 
15  class ILayer;
16  class ILayerNode;
17 
19  {
20  public:
21  virtual ~ILayerItem() { }
22 
23  virtual ILayerItem* getLayerItemByPoint(int _left, int _top) const = 0;
24  virtual const IntCoord& getLayerItemCoord() const = 0;
25 
26  virtual void resizeLayerItemView(const IntSize& _oldView, const IntSize& _newView) = 0;
27 
28  virtual void attachItemToNode(ILayer* _layer, ILayerNode* _node) = 0;
29  virtual void detachFromLayer() = 0;
30  virtual void upLayerItem() = 0;
31  };
32 
33 } // namespace MyGUI
34 
35 #endif // __MYGUI_I_LAYER_ITEM_H__