aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/ui_manager.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/ui/ui_manager.hpp')
-rw-r--r--include/cru/ui/ui_manager.hpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/include/cru/ui/ui_manager.hpp b/include/cru/ui/ui_manager.hpp
index f3f78722..d2b8ad53 100644
--- a/include/cru/ui/ui_manager.hpp
+++ b/include/cru/ui/ui_manager.hpp
@@ -1,15 +1,16 @@
#pragma once
+#include "base.hpp"
#include "cru/common/base.hpp"
#include <memory>
namespace cru::platform::graph {
-struct IBrush;
-struct IFontDescriptor;
-} // namespace cru::platform
+class Brush;
+class Font;
+} // namespace cru::platform::graph
namespace cru::ui {
-//TODO: Make this theme resource.
+// TODO: Make this theme resource.
class PredefineResources : public Object {
public:
PredefineResources();
@@ -20,12 +21,12 @@ class PredefineResources : public Object {
~PredefineResources() override = default;
// region Button
- std::shared_ptr<platform::graph::IBrush> button_normal_border_brush;
+ std::shared_ptr<platform::graph::Brush> button_normal_border_brush;
// region TextBlock
- std::shared_ptr<platform::graph::IBrush> text_block_selection_brush;
- std::shared_ptr<platform::graph::IBrush> text_block_text_brush;
- std::shared_ptr<platform::graph::IFontDescriptor> text_block_font;
+ std::shared_ptr<platform::graph::Brush> text_block_selection_brush;
+ std::shared_ptr<platform::graph::Brush> text_block_text_brush;
+ std::shared_ptr<platform::graph::Font> text_block_font;
};
class UiManager : public Object {