MyGUI: MyGUI_ResourceManualPointer.h Source File

MyGUI 3.4.3

MyGUI_ResourceManualPointer.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_RESOURCE_MANUAL_POINTER_H_
8#define MYGUI_RESOURCE_MANUAL_POINTER_H_
9
10#include "MyGUI_Prerequest.h"
11#include "MyGUI_IPointer.h"
12
13namespace MyGUI
14{
15
16 class MYGUI_EXPORT ResourceManualPointer : public IPointer
17 {
18 MYGUI_RTTI_DERIVED(ResourceManualPointer)
19
20 public:
21 void deserialization(xml::ElementPtr _node, Version _version) override;
22
23 void setImage(ImageBox* _image) override;
24 void setPosition(ImageBox* _image, const IntPoint& _point) override;
25
26 private:
27 IntPoint mPoint;
28 IntSize mSize;
29 IntCoord mTextureCoord;
30 std::string mTexture;
31 };
32
33} // namespace MyGUI
34
35#endif // MYGUI_RESOURCE_MANUAL_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::IPointer
Definition MyGUI_IPointer.h:17
MyGUI::ImageBox
widget description should be here.
Definition MyGUI_ImageBox.h:22
MyGUI::ResourceManualPointer
Definition MyGUI_ResourceManualPointer.h:17
MyGUI::ResourceManualPointer::deserialization
void deserialization(xml::ElementPtr _node, Version _version) override
Definition MyGUI_ResourceManualPointer.cpp:16
MyGUI::ResourceManualPointer::setImage
void setImage(ImageBox *_image) override
Definition MyGUI_ResourceManualPointer.cpp:38
MyGUI::ResourceManualPointer::setPosition
void setPosition(ImageBox *_image, const IntPoint &_point) override
Definition MyGUI_ResourceManualPointer.cpp:44
MyGUI::Version
Definition MyGUI_Version.h:18
MyGUI::xml::ElementPtr
Element * ElementPtr
Definition MyGUI_XmlDocument.h:112
MyGUI
Definition MyGUI_ActionController.h:15
MyGUI::IntPoint
types::TPoint< int > IntPoint
Definition MyGUI_Types.h:27
MyGUI::IntCoord
types::TCoord< int > IntCoord
Definition MyGUI_Types.h:36
MyGUI::IntSize
types::TSize< int > IntSize
Definition MyGUI_Types.h:30