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

namespace cru::ui::mapper::style {
class FocusConditionMapper : public BasicPtrMapper<ui::style::FocusCondition> {
 public:
  CRU_DEFAULT_CONSTRUCTOR_DESTRUCTOR(FocusConditionMapper)

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

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