diff options
author | crupest <crupest@outlook.com> | 2022-02-16 20:22:25 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-02-16 20:22:25 +0800 |
commit | 3cd44092c44651650a760752a3d374f610ca4f77 (patch) | |
tree | d3481e8d93d8d47674d0df46eb765ccf9100bca8 /include | |
parent | 6459edc7c8af9e5c9bafe4f1635194334f42f415 (diff) | |
download | cru-3cd44092c44651650a760752a3d374f610ca4f77.tar.gz cru-3cd44092c44651650a760752a3d374f610ca4f77.tar.bz2 cru-3cd44092c44651650a760752a3d374f610ca4f77.zip |
...
Diffstat (limited to 'include')
-rw-r--r-- | include/cru/ui/style/Styler.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/cru/ui/style/Styler.h b/include/cru/ui/style/Styler.h index d6cbc760..29c19975 100644 --- a/include/cru/ui/style/Styler.h +++ b/include/cru/ui/style/Styler.h @@ -37,6 +37,8 @@ class CRU_UI_API CompoundStyler : public Styler { } } + std::vector<ClonablePtr<Styler>> GetChildren() const { return stylers_; } + virtual CompoundStyler* Clone() const override { return new CompoundStyler(stylers_); } @@ -84,6 +86,8 @@ class CRU_UI_API CursorStyler : public Styler { CursorStyler* Clone() const override { return new CursorStyler(cursor_); } + std::shared_ptr<platform::gui::ICursor> GetCursor() const { return cursor_; } + private: std::shared_ptr<platform::gui::ICursor> cursor_; }; |