aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/controls/Button.hpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-12-04 18:06:43 +0800
committercrupest <crupest@outlook.com>2021-12-04 18:06:43 +0800
commit942f1d34c48e61a853db745cd68e46db13266a5c (patch)
treefdb859933dbb302404391ed686bae8c7126c96ee /include/cru/ui/controls/Button.hpp
parent2317061516b0bd0002467acbead3120cbe49a6c5 (diff)
downloadcru-942f1d34c48e61a853db745cd68e46db13266a5c.tar.gz
cru-942f1d34c48e61a853db745cd68e46db13266a5c.tar.bz2
cru-942f1d34c48e61a853db745cd68e46db13266a5c.zip
...
Diffstat (limited to 'include/cru/ui/controls/Button.hpp')
-rw-r--r--include/cru/ui/controls/Button.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/cru/ui/controls/Button.hpp b/include/cru/ui/controls/Button.hpp
index 9e324c62..e0335a39 100644
--- a/include/cru/ui/controls/Button.hpp
+++ b/include/cru/ui/controls/Button.hpp
@@ -39,6 +39,10 @@ class Button : public ContentControl,
return click_detector_.StateChangeEvent();
}
+ IEvent<helper::ClickEventArgs>* ClickEvent() {
+ return click_detector_.ClickEvent();
+ }
+
void ApplyBorderStyle(const style::ApplyBorderStyleInfo& style) override;
private: