aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/mapper/style/PaddingStylerMapper.h
blob: bf0c56504f25f32e0b48f831e349a46ddd178b7f (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
25
26
#pragma once
#include "../Mapper.h"
#include "cru/ui/mapper/style/IStylerMapper.h"
#include "cru/ui/style/Styler.h"

namespace cru::ui::mapper::style {
class CRU_UI_API PaddingStylerMapper
    : public BasicClonePtrMapper<ui::style::PaddingStyler>,
      public virtual IStylerMapper {
 public:
  PaddingStylerMapper();
  ~PaddingStylerMapper();

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

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

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