MyGUI  3.2.1
MyGUI_ResourceManualPointer.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_RESOURCE_MANUAL_POINTER_H__
00008 #define __MYGUI_RESOURCE_MANUAL_POINTER_H__
00009 
00010 #include "MyGUI_Prerequest.h"
00011 #include "MyGUI_IPointer.h"
00012 
00013 namespace MyGUI
00014 {
00015 
00016     class MYGUI_EXPORT ResourceManualPointer :
00017         public IPointer
00018     {
00019         MYGUI_RTTI_DERIVED( ResourceManualPointer )
00020 
00021     public:
00022         ResourceManualPointer();
00023         virtual ~ResourceManualPointer();
00024 
00025         virtual void deserialization(xml::ElementPtr _node, Version _version);
00026 
00027         virtual void setImage(ImageBox* _image);
00028         virtual void setPosition(ImageBox* _image, const IntPoint& _point);
00029 
00030     private:
00031         IntPoint mPoint;
00032         IntSize mSize;
00033         IntCoord mTextureCoord;
00034         std::string mTexture;
00035     };
00036 
00037 } // namespace MyGUI
00038 
00039 #endif // __MYGUI_RESOURCE_MANUAL_POINTER_H__