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.
Revision 2:a885824aefe0, committed 2020-06-30
- Comitter:
- Rhamao
- Date:
- Tue Jun 30 23:32:27 2020 +0000
- Parent:
- 1:2a58d8fcf7f9
- Commit message:
- version publique; ;
Changed in this revision
| view2.cpp | Show annotated file Show diff for this revision Revisions of this file |
| view2.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/view2.cpp Mon Jun 22 21:55:40 2020 +0000
+++ b/view2.cpp Tue Jun 30 23:32:27 2020 +0000
@@ -89,6 +89,21 @@
}
}
+void View2::updateAnim1(Button* button){
+ if(button == anim1){
+ anim1Bool=true;
+ }
+}
+
+bool View2::getAnim1(){
+ return anim1Bool;
+}
+
+
+void View2::setAnim1(bool viewChanged){
+ anim1Bool = this->anim1Bool;
+}
+
bool View2::getViewChanged(){
return viewChanged;
}
--- a/view2.h Mon Jun 22 21:55:40 2020 +0000
+++ b/view2.h Tue Jun 30 23:32:27 2020 +0000
@@ -27,6 +27,9 @@
void updateViewChanged(Button* button);
bool getViewChanged();
void setViewChanged(bool viewChanged);
+ void updateAnim1(Button* button);
+ bool getAnim1();
+ void setAnim1(bool viewChanged);
void initView();
~View2();
@@ -47,6 +50,7 @@
false, false, false, false,
false, false, false, false};
bool viewChanged= false;
+ bool anim1Bool= false;
//Animations
Button *anim1 = new Button(20, 38, ANIMATION_BUTTON_WIDTH, ANIMATION_BUTTON_HEIGHT, LIGHT_GRAY);