MyGUI  3.2.1
MyGUI_MaskPickInfo.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_MASK_PICK_INFO_H__
00008 #define __MYGUI_MASK_PICK_INFO_H__
00009 
00010 #include "MyGUI_Prerequest.h"
00011 #include "MyGUI_Types.h"
00012 
00013 namespace MyGUI
00014 {
00015 
00016     class MYGUI_EXPORT MaskPickInfo
00017     {
00018     public:
00019         MaskPickInfo();
00020 
00021         bool load(const std::string& _file);
00022 
00023         bool pick(const IntPoint& _point, const IntCoord& _coord) const;
00024 
00025         bool empty() const;
00026 
00027     private:
00028         std::vector<uint8> mData;
00029         int mWidth;
00030         int mHeight;
00031     };
00032 
00033 } // namespace MyGUI
00034 
00035 #endif // __MYGUI_MASK_PICK_INFO_H__