MyGUI  3.2.1
MyGUI_ILayerItem.h
Go to the documentation of this file.
00001 /*
00002  * This source file is part of MyGUI. For the latest info, see http://mygui.info/
00003  * Distributed under the MIT License
00004  * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
00005  */
00006 
00007 #ifndef __MYGUI_I_LAYER_ITEM_H__
00008 #define __MYGUI_I_LAYER_ITEM_H__
00009 
00010 #include "MyGUI_Prerequest.h"
00011 
00012 namespace MyGUI
00013 {
00014 
00015     class ILayer;
00016     class ILayerNode;
00017 
00018     class MYGUI_EXPORT ILayerItem
00019     {
00020     public:
00021         virtual ~ILayerItem() { }
00022 
00023         virtual ILayerItem* getLayerItemByPoint(int _left, int _top) const = 0;
00024         virtual const IntCoord& getLayerItemCoord() const = 0;
00025 
00026         virtual void resizeLayerItemView(const IntSize& _oldView, const IntSize& _newView) = 0;
00027 
00028         virtual void attachItemToNode(ILayer* _layer, ILayerNode* _node) = 0;
00029         virtual void detachFromLayer() = 0;
00030         virtual void upLayerItem() = 0;
00031     };
00032 
00033 } // namespace MyGUI
00034 
00035 #endif // __MYGUI_I_LAYER_ITEM_H__