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

Dependents:   F746_SD_GraphicEqualizer_ren0620

Fork of F746_GUI by 不韋 呂

Revision:
8:8c5107c91d02
Parent:
3:fe6ff954824a
Child:
14:95544440b46c
--- a/ButtonGroup.hpp	Tue Apr 12 05:48:25 2016 +0000
+++ b/ButtonGroup.hpp	Thu Apr 21 01:12:59 2016 +0000
@@ -1,7 +1,7 @@
 //-----------------------------------------------------------
 //  ButtonGroup class -- Header
 //
-//  2016/04/07, Copyright (c) 2016 MIKAMI, Naoki
+//  2016/04/21, Copyright (c) 2016 MIKAMI, Naoki
 //-----------------------------------------------------------
 
 #ifndef F746_BUTTON_GROUP_HPP
@@ -59,6 +59,16 @@
         // Activate and inactivate
         bool Activate(int num);
         bool Inactivate(int num);
+        void ActivateAll()
+        {   
+            for (int n=0; n<numberOfButtons_; n++)
+                buttons_[n]->Activate();
+        }
+        void InactivateAll()
+        {
+            for (int n=0; n<numberOfButtons_; n++)
+                buttons_[n]->Inactivate();
+        }
 
     private:
         Button **buttons_;