From 74bb9cd27242b9320f99ff4d2b50c3051576cc14 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 8 Feb 2022 16:53:51 +0800 Subject: ... --- include/cru/ui/mapper/style/IStylerMapper.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 include/cru/ui/mapper/style/IStylerMapper.h (limited to 'include/cru/ui/mapper/style/IStylerMapper.h') diff --git a/include/cru/ui/mapper/style/IStylerMapper.h b/include/cru/ui/mapper/style/IStylerMapper.h new file mode 100644 index 00000000..4c2ecd16 --- /dev/null +++ b/include/cru/ui/mapper/style/IStylerMapper.h @@ -0,0 +1,17 @@ +#pragma once +#include "../../Base.h" +#include "cru/common/ClonablePtr.h" +#include "cru/ui/mapper/Mapper.h" +#include "cru/ui/style/Styler.h" +#include "cru/xml/XmlNode.h" + +namespace cru::ui::mapper::style { +struct CRU_UI_API IStylerMapper : virtual Interface { + bool XmlElementIsOfThisType(xml::XmlElementNode* node) { + return dynamic_cast(this)->XmlElementIsOfThisType(node); + } + + virtual ClonablePtr MapStylerFromXml( + xml::XmlElementNode* node) = 0; +}; +} // namespace cru::ui::mapper::style -- cgit v1.2.3