diff --git a/dependencies/subprojects/animationwindow/include/AnimationWindow.h b/dependencies/subprojects/animationwindow/include/AnimationWindow.h index 970ab97aacb5c11dfd25d12498142d85eb0ef002..680c98d566992783334b6d7be987f6e12487243a 100644 --- a/dependencies/subprojects/animationwindow/include/AnimationWindow.h +++ b/dependencies/subprojects/animationwindow/include/AnimationWindow.h @@ -78,8 +78,8 @@ class AnimationWindow { explicit AnimationWindow(int x = 50, int y = 50, int width = 1024, int height = 768, const std::string& title = "Animation Window", bool softwareRender = false); ~AnimationWindow(); void screenshot(std::string name); - void pressPoint(TDT4102::Point p); - void pressWidgetNr(int n); + void simulateClickAtPoint(TDT4102::Point p); + void simulateClickOnWidget(int n); // When you have finished drawing a frame, call this function to display it (usually at the end of your main while loop) void next_frame(); diff --git a/dependencies/subprojects/animationwindow/meson.build b/dependencies/subprojects/animationwindow/meson.build index fed1a55714a09e9496a1bc196ce38bc72ad3daff..814cc62fb140d4bef8c321fef5cd5dd2c67a2ff3 100644 --- a/dependencies/subprojects/animationwindow/meson.build +++ b/dependencies/subprojects/animationwindow/meson.build @@ -1,4 +1,4 @@ -project('animationwindow', ['c', 'cpp'], version: '0.01', default_options: ['cpp_std=c++17', 'default_library=static', 'buildtype=debugoptimized']) +project('animationwindow', ['c', 'cpp'], version: '0.01', default_options: ['cpp_std=c++20', 'default_library=static', 'buildtype=debugoptimized']) if host_machine.system() == 'windows' sdl2_dep = subproject('sdl2_windows').get_variable('sdl2_windows_dep') diff --git a/dependencies/subprojects/animationwindow/src/AnimationWindow.cpp b/dependencies/subprojects/animationwindow/src/AnimationWindow.cpp index faaea650e83512bfab8fa68b03c116fec376d0b4..bdd30c230347fb493c1d41a3e84e4efc62a6b7d9 100644 --- a/dependencies/subprojects/animationwindow/src/AnimationWindow.cpp +++ b/dependencies/subprojects/animationwindow/src/AnimationWindow.cpp @@ -182,7 +182,7 @@ void TDT4102::AnimationWindow::screenshot(std::string name){ } } -void TDT4102::AnimationWindow::pressPoint(TDT4102::Point p){ +void TDT4102::AnimationWindow::simulateClickAtPoint(TDT4102::Point p){ std::cout<<"pressPoint"<<std::endl; int posx=p.x; int posy=p.y; @@ -201,7 +201,7 @@ void TDT4102::AnimationWindow::pressPoint(TDT4102::Point p){ next_frame(); } -void TDT4102::AnimationWindow::pressWidgetNr(int n){ +void TDT4102::AnimationWindow::simulateClickOnWidget(int n){ std::cout<<"pressKey"<<std::endl; int posx=widgets.at(n).get().position.x+20;