aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/controls/IContentBrushControl.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/IContentBrushControl.h
parent14e1b0f188d302b69816ddf12f5ac591fd76b91d (diff)
downloadcru-a0732c3aa32d200bf154d486df3c9f506161954f.tar.gz
cru-a0732c3aa32d200bf154d486df3c9f506161954f.tar.bz2
cru-a0732c3aa32d200bf154d486df3c9f506161954f.zip
...
Diffstat (limited to 'include/cru/ui/controls/IContentBrushControl.h')
-rw-r--r--include/cru/ui/controls/IContentBrushControl.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/cru/ui/controls/IContentBrushControl.h b/include/cru/ui/controls/IContentBrushControl.h
new file mode 100644
index 00000000..d7a4c1b8
--- /dev/null
+++ b/include/cru/ui/controls/IContentBrushControl.h
@@ -0,0 +1,12 @@
+#pragma once
+#include "../Base.h"
+#include "cru/platform/graphics/Brush.h"
+
+namespace cru::ui::controls {
+struct CRU_UI_API IContentBrushControl : virtual Interface {
+ virtual std::shared_ptr<platform::graphics::IBrush> GetContentBrush()
+ const = 0;
+ virtual void SetContentBrush(
+ std::shared_ptr<platform::graphics::IBrush> brush) = 0;
+};
+} // namespace cru::ui::controls