Mladen Adamovic / F746_GUI

Dependencies:   Array_Matrix BSP_DISCO_F746NG LCD_DISCO_F746NG TS_DISCO_F746NG

Dependents:   Spectrogram

Fork of F746_GUI by 不韋 呂

Revision:
10:5a2068884fd9
Parent:
9:c379410bda15
diff -r c379410bda15 -r 5a2068884fd9 SeekBarGroup.hpp
--- a/SeekBarGroup.hpp	Sun Apr 24 11:49:42 2016 +0000
+++ b/SeekBarGroup.hpp	Wed Apr 27 00:24:18 2016 +0000
@@ -1,7 +1,7 @@
 //-----------------------------------------------------------
 //  SeekBarGroup class -- Header
 //
-//  2016/04/24, Copyright (c) 2016 MIKAMI, Naoki
+//  2016/04/26, Copyright (c) 2016 MIKAMI, Naoki
 //-----------------------------------------------------------
 
 #ifndef F746_SEEKBAR_GROUP_HPP
@@ -36,6 +36,11 @@
         void Draw(int num, float value, bool fill = false)
         {   seekBars_[num]->Draw(value, fill); }
 
+        void Redraw(int num, bool fill = false)
+        {   seekBars_[num]->Draw(seekBars_[num]->GetValue(), fill); }
+
+        void RedrawAll(bool fill = false)
+        {   for (int n=0; n<numberOfSeekBar_; n++) Redraw(n, fill); }
 
         // Activate and inactivate
         void Activate(int num) { seekBars_[num]->Activate(); }