diff options
author | crupest <crupest@outlook.com> | 2019-04-04 15:43:09 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-04-04 15:43:09 +0800 |
commit | fcaf471275a67d718887430ee63a53890915c4c7 (patch) | |
tree | 4ef45647b01f7f325aac5c836b9ca7d3b985a751 /include/cru/platform/graph_factory.hpp | |
parent | dcd866074615ba357b62b6128f1c64d56ed4ad16 (diff) | |
download | cru-fcaf471275a67d718887430ee63a53890915c4c7.tar.gz cru-fcaf471275a67d718887430ee63a53890915c4c7.tar.bz2 cru-fcaf471275a67d718887430ee63a53890915c4c7.zip |
...
Diffstat (limited to 'include/cru/platform/graph_factory.hpp')
-rw-r--r-- | include/cru/platform/graph_factory.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/cru/platform/graph_factory.hpp b/include/cru/platform/graph_factory.hpp index 312dc0ea..f6122241 100644 --- a/include/cru/platform/graph_factory.hpp +++ b/include/cru/platform/graph_factory.hpp @@ -3,6 +3,7 @@ #include "cru/common/ui_base.hpp" +#include <memory> #include <string> #include <string_view> @@ -15,7 +16,9 @@ struct TextLayout; struct GraphFactory : virtual Interface { virtual SolidColorBrush* CreateSolidColorBrush(const ui::Color& color) = 0; virtual GeometryBuilder* CreateGeometryBuilder() = 0; - virtual FontDescriptor* CreateFontDescriptor(const std::wstring_view& font_family) = 0; - virtual TextLayout* CreateTextLayout(std::shared_ptr<FontDescriptor> font, std::wstring text) = 0; + virtual FontDescriptor* CreateFontDescriptor( + const std::wstring_view& font_family, float font_size) = 0; + virtual TextLayout* CreateTextLayout(std::shared_ptr<FontDescriptor> font, + std::wstring text) = 0; }; } // namespace cru::platform |