New IHM
Dependencies: Array_Matrix TS_DISCO_F746NG LCD_DISCO_F746NG BSP_DISCO_F746NG
Diff: ButtonGroup.hpp
- Revision:
- 8:8c5107c91d02
- Parent:
- 3:fe6ff954824a
- Child:
- 14:b977160de2f3
--- 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_;