GUI parts for DISCO-F469I a fork of DISCO-F746NG. GuiBase, Button, ButtonGroup, ResetButton, Label, BlinkLabel, NumericLabel, SeekBar, SeekbarGroup
Dependents: DISCO-F469NI_LCDTS_GUI_demo DISCO-F469NI_LCDTS_GUI_demo projekt_PSW_v1 DISCO-F469NI_LCDTS_GUI_demoaaaaaaaaaxxxx ... more
Fork of F746_GUI by
Diff: SeekBar.hpp
- Revision:
- 13:9ae055fac9cf
- Parent:
- 12:687ec6183385
- Child:
- 15:0511a08a3c09
diff -r 687ec6183385 -r 9ae055fac9cf SeekBar.hpp --- a/SeekBar.hpp Sat Apr 30 06:33:32 2016 +0000 +++ b/SeekBar.hpp Mon May 30 14:34:44 2016 +0000 @@ -1,7 +1,7 @@ //----------------------------------------------------------- // SeekBar class -- Header // -// 2016/04/30, Copyright (c) 2016 MIKAMI, Naoki +// 2016/05/30, Copyright (c) 2016 MIKAMI, Naoki //----------------------------------------------------------- #ifndef F746_SEEKBAR_HPP @@ -67,8 +67,6 @@ void SetSlided(bool tf) { slided_ = tf; } bool GetSlided() { return slided_; } - int Round(float x) { return x + 0.5f - (x < 0); } // Round up on 5 - private: const uint16_t L_, W_; const uint16_t SIZE_; // Size of thumb @@ -82,6 +80,7 @@ bool slided_; bool active_; + int Round(float x) { return x + 0.5f - (x < 0); } Point ToPoint(float value); float Saturate(float value); @@ -91,3 +90,4 @@ }; } #endif // F746_SEEKBAR_HPP +