aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/mapper/style/BorderStylerMapper.hpp
blob: 6c967bedff3961eead986bb69b4437f3fb160cf1 (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.hpp"
#include "cru/common/ClonablePtr.hpp"
#include "cru/ui/style/Styler.hpp"
#include "cru/xml/XmlNode.hpp"

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

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

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