blob: d1b3778364a7280a786215ba61bbfd38e66a0924 (
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
|
#pragma once
#include "Resource.hpp"
#include "Brush.hpp"
#include "Font.hpp"
#include "Geometry.hpp"
#include "TextLayout.hpp"
#include <string>
#include <string_view>
namespace cru::platform::graphics {
// Entry point of the graph module.
struct IGraphFactory : virtual INativeResource {
virtual std::unique_ptr<ISolidColorBrush> CreateSolidColorBrush() = 0;
virtual std::unique_ptr<IGeometryBuilder> CreateGeometryBuilder() = 0;
virtual std::unique_ptr<IFont> CreateFont(std::u16string font_family,
float font_size) = 0;
virtual std::unique_ptr<ITextLayout> CreateTextLayout(
std::shared_ptr<IFont> font, std::u16string text) = 0;
};
} // namespace cru::platform::graph
|