aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/controls/IFontControl.h
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-03-04 21:21:15 +0800
committercrupest <crupest@outlook.com>2022-03-04 21:21:15 +0800
commita0732c3aa32d200bf154d486df3c9f506161954f (patch)
tree4019d719d8672030db7602c19798e911ef57e3b3 /include/cru/ui/controls/IFontControl.h
parent14e1b0f188d302b69816ddf12f5ac591fd76b91d (diff)
downloadcru-a0732c3aa32d200bf154d486df3c9f506161954f.tar.gz
cru-a0732c3aa32d200bf154d486df3c9f506161954f.tar.bz2
cru-a0732c3aa32d200bf154d486df3c9f506161954f.zip
...
Diffstat (limited to 'include/cru/ui/controls/IFontControl.h')
-rw-r--r--include/cru/ui/controls/IFontControl.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/cru/ui/controls/IFontControl.h b/include/cru/ui/controls/IFontControl.h
new file mode 100644
index 00000000..4167de27
--- /dev/null
+++ b/include/cru/ui/controls/IFontControl.h
@@ -0,0 +1,10 @@
+#pragma once
+#include "../Base.h"
+#include "cru/platform/graphics/Font.h"
+
+namespace cru::ui::controls {
+struct CRU_UI_API IFontControl : virtual Interface {
+ virtual std::shared_ptr<platform::graphics::IFont> GetFont() const = 0;
+ virtual void SetFont(std::shared_ptr<platform::graphics::IFont> font) = 0;
+};
+} // namespace cru::ui::controls