aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/mapper/style/CursorStylerMapper.hpp
blob: c12efbd91987c9412ffa3a671059d50362e2e9e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once
#include "../Mapper.hpp"
#include "cru/ui/style/Styler.hpp"

namespace cru::ui::mapper::style {
class CRU_UI_API CursorStylerMapper
    : public BasicPtrMapper<ui::style::CursorStyler> {
 public:
  CRU_DEFAULT_CONSTRUCTOR_DESTRUCTOR(CursorStylerMapper)

 public:
  bool SupportMapFromXml() override { return true; }
  bool XmlElementIsOfThisType(xml::XmlElementNode* node) override;

 protected:
  ClonablePtr<ui::style::CursorStyler> DoMapFromXml(
      xml::XmlElementNode* node) override;
};
}  // namespace cru::ui::mapper::style