aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/mapper/BorderStyleMapper.h
blob: d585639f89f5e51518a12f3909137b2ba083824c (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.h"
#include "cru/ui/style/ApplyBorderStyleInfo.h"
#include "cru/xml/XmlNode.h"

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