From b7946e28a08c945e26d39f095d2e55c952a936c4 Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 12 Feb 2022 18:17:52 +0800 Subject: ... --- include/cru/ui/controls/Container.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'include/cru/ui/controls/Container.h') diff --git a/include/cru/ui/controls/Container.h b/include/cru/ui/controls/Container.h index 3df2b445..98958b3b 100644 --- a/include/cru/ui/controls/Container.h +++ b/include/cru/ui/controls/Container.h @@ -15,6 +15,23 @@ class CRU_UI_API Container ~Container() override; + public: + std::shared_ptr GetForegroundBrush() const { + return GetContainerRenderObject()->GetForegroundBrush(); + } + void SetForegroundBrush( + const std::shared_ptr& brush) { + GetContainerRenderObject()->SetForegroundBrush(brush); + } + + std::shared_ptr GetBackgroundBrush() const { + return GetContainerRenderObject()->GetBackgroundBrush(); + } + void SetBackgroundBrush( + const std::shared_ptr& brush) { + GetContainerRenderObject()->SetBackgroundBrush(brush); + } + public: String GetControlType() const final { return kControlType.ToString(); } }; -- cgit v1.2.3