aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/mapper/style/FontStylerMapper.h
blob: 34c94b731bc85114bbce70042160d4b6e1fa350c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once
#include "../Mapper.h"
#include "IStylerMapper.h"

namespace cru::ui::mapper::style {
class FontStylerMapper : public BasicClonablePtrMapper<ui::style::FontStyler>,
                         public virtual IStylerMapper {
 public:
  FontStylerMapper();
  ~FontStylerMapper() override;

 public:
  bool SupportMapFromXml() override { return true; }

  ClonablePtr<ui::style::Styler> MapStylerFromXml(
      xml::XmlElementNode* node) override {
    return MapFromXml(node);
  }

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