blob: 8cce53c41209738e245a05b1bda21f1065916d4d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#pragma once
#include "Mapper.h"
#include "cru/platform/gui/Cursor.h"
#include "cru/xml/XmlNode.h"
namespace cru::ui::mapper {
class CRU_UI_API CursorMapper : public BasicSharedPtrMapper<platform::gui::ICursor> {
public:
CRU_DEFAULT_CONSTRUCTOR_DESTRUCTOR(CursorMapper);
public:
bool SupportMapFromString() override { return true; }
bool SupportMapFromXml() override { return true; }
bool XmlElementIsOfThisType(xml::XmlElementNode* node) override;
protected:
std::shared_ptr<platform::gui::ICursor> DoMapFromString(String str) override;
std::shared_ptr<platform::gui::ICursor> DoMapFromXml(
xml::XmlElementNode* node) override;
};
} // namespace cru::ui::mapper
|