Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Array_Matrix BSP_DISCO_F746NG LCD_DISCO_F746NG TS_DISCO_F746NG
Fork of F746_GUI by
Revision 8:8c5107c91d02, committed 2016-04-21
- Comitter:
- MikamiUitOpen
- Date:
- Thu Apr 21 01:12:59 2016 +0000
- Parent:
- 7:3813be1ca81d
- Child:
- 9:c379410bda15
- Commit message:
- 9
Changed in this revision
| ButtonGroup.hpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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_;
