From 5c4a00512bb4e99263b9e8c300fe617d1923db63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 9 Apr 2020 16:09:55 +0200 Subject: [PATCH] Platform: reorder test code for consistency. --- src/Magnum/Platform/Test/GlfwApplicationTest.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Magnum/Platform/Test/GlfwApplicationTest.cpp b/src/Magnum/Platform/Test/GlfwApplicationTest.cpp index 3d6d56d38..3ed9913ff 100644 --- a/src/Magnum/Platform/Test/GlfwApplicationTest.cpp +++ b/src/Magnum/Platform/Test/GlfwApplicationTest.cpp @@ -49,6 +49,13 @@ struct GlfwApplicationTest: Platform::Application { << event.dpiScaling(); } + void exitEvent(ExitEvent& event) override { + Debug{} << "application exiting"; + event.setAccepted(); /* Comment-out to test app exit suppression */ + } + + void drawEvent() override {} + void keyPressEvent(KeyEvent& event) override { #if GLFW_VERSION_MAJOR*100 + GLFW_VERSION_MINOR >= 302 Debug{} << "key press event:" << int(event.key()) << event.keyName(); @@ -89,13 +96,6 @@ struct GlfwApplicationTest: Platform::Application { void textInputEvent(TextInputEvent& event) override { Debug{} << "text input event:" << std::string{event.text(), event.text().size()}; } - - void exitEvent(ExitEvent& event) override { - Debug{} << "application exiting"; - event.setAccepted(); /* Comment-out to test app exit suppression */ - } - - void drawEvent() override {} }; GlfwApplicationTest::GlfwApplicationTest(const Arguments& arguments): Platform::Application{arguments, NoCreate} {