diff options
Diffstat (limited to 'include/cru/ui')
-rw-r--r-- | include/cru/ui/controls/Container.h | 17 |
1 files changed, 17 insertions, 0 deletions
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 @@ -16,6 +16,23 @@ class CRU_UI_API Container ~Container() override; public: + std::shared_ptr<platform::graphics::IBrush> GetForegroundBrush() const { + return GetContainerRenderObject()->GetForegroundBrush(); + } + void SetForegroundBrush( + const std::shared_ptr<platform::graphics::IBrush>& brush) { + GetContainerRenderObject()->SetForegroundBrush(brush); + } + + std::shared_ptr<platform::graphics::IBrush> GetBackgroundBrush() const { + return GetContainerRenderObject()->GetBackgroundBrush(); + } + void SetBackgroundBrush( + const std::shared_ptr<platform::graphics::IBrush>& brush) { + GetContainerRenderObject()->SetBackgroundBrush(brush); + } + + public: String GetControlType() const final { return kControlType.ToString(); } }; } // namespace cru::ui::controls |