GUI parts for DISCO-F746NG. GuiBase, Button, ButtonGroup, ResetButton, Label, BlinkLabel, NumericLabel, SeekBar, SeekbarGroup, NumericUpDown

Dependencies:   Array_Matrix BSP_DISCO_F746NG LCD_DISCO_F746NG TS_DISCO_F746NG

Dependents:   F746_AudioOutQSPI F746_AudioPlayerSD DISCO-F746NG_test001 F746_SD_WavPlayer ... more

Revision:
13:9ae055fac9cf
Parent:
12:687ec6183385
Child:
15:0511a08a3c09
--- 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
+