diff options
author | crupest <crupest@outlook.com> | 2022-02-12 18:17:52 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-02-12 18:17:52 +0800 |
commit | b7946e28a08c945e26d39f095d2e55c952a936c4 (patch) | |
tree | 1e3df327fd8d36c88aa9840ff711545f316e3129 /include/cru/ui | |
parent | 2fd37d41bb804a06acc8e2d341d5ce5d8370184b (diff) | |
download | cru-b7946e28a08c945e26d39f095d2e55c952a936c4.tar.gz cru-b7946e28a08c945e26d39f095d2e55c952a936c4.tar.bz2 cru-b7946e28a08c945e26d39f095d2e55c952a936c4.zip |
...
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 |