diff options
Diffstat (limited to 'include/cru/platform/graph_factory.hpp')
-rw-r--r-- | include/cru/platform/graph_factory.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/cru/platform/graph_factory.hpp b/include/cru/platform/graph_factory.hpp index f2e5f286..312dc0ea 100644 --- a/include/cru/platform/graph_factory.hpp +++ b/include/cru/platform/graph_factory.hpp @@ -3,12 +3,19 @@ #include "cru/common/ui_base.hpp" +#include <string> +#include <string_view> + namespace cru::platform { struct SolidColorBrush; struct GeometryBuilder; +struct FontDescriptor; +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; }; } // namespace cru::platform |