MyGUI_ResourceImageSetPointer.h
Go to the documentation of this file.
/*
* This source file is part of MyGUI. For the latest info, see http://mygui.info/
* Distributed under the MIT License
* (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
*/
#ifndef MYGUI_RESOURCE_IMAGE_SET_POINTER_H_
#define MYGUI_RESOURCE_IMAGE_SET_POINTER_H_
#include "MyGUI_Prerequest.h"
#include "MyGUI_IPointer.h"
#include "MyGUI_ResourceImageSet.h"
namespace MyGUI
{
class MYGUI_EXPORT ResourceImageSetPointer : public IPointer
{
MYGUI_RTTI_DERIVED(ResourceImageSetPointer)
public:
void deserialization(xml::ElementPtr _node, Version _version) override;
void setImage(ImageBox* _image) override;
void setPosition(ImageBox* _image, const IntPoint& _point) override;
private:
IntPoint mPoint;
IntSize mSize;
ResourceImageSetPtr mImageSet{nullptr};
};
} // namespace MyGUI
#endif // MYGUI_RESOURCE_IMAGE_SET_POINTER_H_
MyGUI_IPointer.h
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition MyGUI_Platform.h:77
MyGUI_Prerequest.h
MYGUI_RTTI_DERIVED
#define MYGUI_RTTI_DERIVED(DerivedType)
Definition MyGUI_RTTI.h:69
MyGUI_ResourceImageSet.h
MyGUI::IPointer
Definition MyGUI_IPointer.h:17
MyGUI::ImageBox
widget description should be here.
Definition MyGUI_ImageBox.h:22
MyGUI::ResourceImageSetPointer
Definition MyGUI_ResourceImageSetPointer.h:18
MyGUI::ResourceImageSetPointer::setPosition
void setPosition(ImageBox *_image, const IntPoint &_point) override
Definition MyGUI_ResourceImageSetPointer.cpp:41
MyGUI::ResourceImageSetPointer::deserialization
void deserialization(xml::ElementPtr _node, Version _version) override
Definition MyGUI_ResourceImageSetPointer.cpp:15
MyGUI::ResourceImageSetPointer::setImage
void setImage(ImageBox *_image) override
Definition MyGUI_ResourceImageSetPointer.cpp:35
MyGUI::Version
Definition MyGUI_Version.h:18
MyGUI::xml::ElementPtr
Element * ElementPtr
Definition MyGUI_XmlDocument.h:112
MyGUI
Definition MyGUI_ActionController.h:15
MyGUI::ResourceImageSetPtr
ResourceImageSet * ResourceImageSetPtr
Definition MyGUI_ResourceImageSet.h:24
MyGUI::IntPoint
types::TPoint< int > IntPoint
Definition MyGUI_Types.h:27
MyGUI::IntSize
types::TSize< int > IntSize
Definition MyGUI_Types.h:30