From 1a2cf75e94b98a649b2b1e87d62e3a3be9de5ea1 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 4 Sep 2018 01:05:25 +0800 Subject: ... --- CruUI/graph/graph.h | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'CruUI/graph/graph.h') diff --git a/CruUI/graph/graph.h b/CruUI/graph/graph.h index 69d11b9c..b221115a 100644 --- a/CruUI/graph/graph.h +++ b/CruUI/graph/graph.h @@ -9,12 +9,12 @@ namespace cru { namespace graph - { + { class GraphManager; //Represents a window render target. class WindowRenderTarget : public Object - { + { public: WindowRenderTarget(GraphManager* graph_manager, HWND hwnd); WindowRenderTarget(const WindowRenderTarget& other) = delete; @@ -58,13 +58,16 @@ namespace cru }; struct Dpi - { + { float x; float y; }; class GraphManager : public Object - { + { + public: + static GraphManager* GetInstance(); + public: GraphManager(); GraphManager(const GraphManager& other) = delete; @@ -94,6 +97,12 @@ namespace cru return dxgi_factory_; } + Microsoft::WRL::ComPtr GetDWriteFactory() const + { + return dwrite_factory_; + } + + //Create a window render target with the HWND. std::shared_ptr CreateWindowRenderTarget(HWND hwnd); -- cgit v1.2.3