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

#include "Mapper.hpp"

namespace cru::ui::mapper {
class CRU_UI_API CornerRadiusMapper : public BasicMapper<CornerRadius> {
 public:
  CRU_DEFAULT_CONSTRUCTOR_DESTRUCTOR(CornerRadiusMapper)

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

 protected:
  std::unique_ptr<CornerRadius> DoMapFromXml(
      xml::XmlElementNode* node) override;
};
}  // namespace cru::ui::mapper