aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/mapper/BorderStyleMapper.hpp
blob: 4d9ae77470ed2631d1aa514815c1214d6c884c9f (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
    : 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