blob: ca83be863f4d353b6abaf97894f4ad916fdb6572 (
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
26
27
28
|
#pragma once
#include "win_pre_config.hpp"
#include "../graph_factory.hpp"
namespace cru::platform::win {
class GraphManager;
class WinGraphFactory : public Object, public virtual GraphFactory {
public:
explicit WinGraphFactory(GraphManager* graph_manager);
WinGraphFactory(const WinGraphFactory& other) = delete;
WinGraphFactory(WinGraphFactory&& other) = delete;
WinGraphFactory& operator=(const WinGraphFactory& other) = delete;
WinGraphFactory& operator=(WinGraphFactory&& other) = delete;
~WinGraphFactory() override = default;
SolidColorBrush* CreateSolidColorBrush(const ui::Color& color) override;
GeometryBuilder* CreateGeometryBuilder() override;
FontDescriptor* CreateFontDescriptor(const std::wstring_view& font_family,
float font_size);
TextLayout* CreateTextLayout(std::shared_ptr<FontDescriptor> font,
std::wstring text);
private:
GraphManager* graph_manager_;
};
} // namespace cru::platform::win
|