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

namespace cru::ui::mapper {
class CRU_UI_API BorderStyleMapper
    : public BasicMapper<ui::style::ApplyBorderStyleInfo> {
 public:
  CRU_DEFAULT_CONSTRUCTOR_DESTRUCTOR(BorderStyleMapper)

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

 protected:
  ui::style::ApplyBorderStyleInfo DoMapFromXml(
      xml::XmlElementNode* node) override;
};
}  // namespace cru::ui::mapper