aboutsummaryrefslogtreecommitdiff
path: root/CruUI/ui/controls/toggle_button.h
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-09-18 01:38:02 +0800
committercrupest <crupest@outlook.com>2018-09-18 01:38:02 +0800
commit4710715102df3806479985679bd8048631ccaab5 (patch)
tree0f18f3c1d278aace11521a93abad97c97eb4ae54 /CruUI/ui/controls/toggle_button.h
parent94c066a34900845297c41c134a9a910124a5833d (diff)
downloadcru-4710715102df3806479985679bd8048631ccaab5.tar.gz
cru-4710715102df3806479985679bd8048631ccaab5.tar.bz2
cru-4710715102df3806479985679bd8048631ccaab5.zip
I think I can't sleep well after this commit.
Still a lot of bugs!!!
Diffstat (limited to 'CruUI/ui/controls/toggle_button.h')
-rw-r--r--CruUI/ui/controls/toggle_button.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/CruUI/ui/controls/toggle_button.h b/CruUI/ui/controls/toggle_button.h
index d2e49473..8668b2c9 100644
--- a/CruUI/ui/controls/toggle_button.h
+++ b/CruUI/ui/controls/toggle_button.h
@@ -52,6 +52,8 @@ namespace cru::ui::controls
private:
bool state_ = false;
+ float current_circle_position_;
+
Microsoft::WRL::ComPtr<ID2D1RoundedRectangleGeometry> frame_path_;
Microsoft::WRL::ComPtr<ID2D1Brush> on_brush_;
Microsoft::WRL::ComPtr<ID2D1Brush> off_brush_;