diff options
author | 杨宇千 <crupest@outlook.com> | 2019-09-15 00:03:11 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-09-15 00:03:11 +0800 |
commit | 73f13dd60f51ff05e31a64fba89fe31ab3ab185d (patch) | |
tree | d674041629f328c2357ed85e3e564dec06757f3a /include/cru/ui/controls | |
parent | 401ca68f7d9d62d195c558edfeda4ece985805e1 (diff) | |
download | cru-73f13dd60f51ff05e31a64fba89fe31ab3ab185d.tar.gz cru-73f13dd60f51ff05e31a64fba89fe31ab3ab185d.tar.bz2 cru-73f13dd60f51ff05e31a64fba89fe31ab3ab185d.zip |
...
Diffstat (limited to 'include/cru/ui/controls')
-rw-r--r-- | include/cru/ui/controls/button.hpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/cru/ui/controls/button.hpp b/include/cru/ui/controls/button.hpp index ca3dcae9..b5cca7dc 100644 --- a/include/cru/ui/controls/button.hpp +++ b/include/cru/ui/controls/button.hpp @@ -20,6 +20,8 @@ struct ButtonBorderStyle { render::BorderStyle hover; // corresponds to ButtonState::Press render::BorderStyle press; + // corresponds to ButtonState::PressCancel + render::BorderStyle press_cancel; }; enum class ButtonState { @@ -27,8 +29,10 @@ enum class ButtonState { Normal, // mouse is in it and not pressed Hover, - // mouse is pressed in it (click begins) - Press + // mouse is pressed in it + Press, + // mouse is pressed outside button + PressCancel, }; class Button : public ContentControl { |