From e375fac168ec8b273b9552999c139bb59a3f2e3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 26 May 2019 11:38:39 +0200 Subject: [PATCH] Platform: properly define enum operators for all EmscriptenApp flags. --- src/Magnum/Platform/EmscriptenApplication.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Magnum/Platform/EmscriptenApplication.h b/src/Magnum/Platform/EmscriptenApplication.h index 72eef036f..1e75a2799 100644 --- a/src/Magnum/Platform/EmscriptenApplication.h +++ b/src/Magnum/Platform/EmscriptenApplication.h @@ -709,6 +709,8 @@ class EmscriptenApplication::GLConfiguration { Flags _flags; }; +CORRADE_ENUMSET_OPERATORS(EmscriptenApplication::GLConfiguration::Flags) + /** @brief Configuration @@ -810,6 +812,8 @@ class EmscriptenApplication::Configuration { WindowFlags _windowFlags; }; +CORRADE_ENUMSET_OPERATORS(EmscriptenApplication::Configuration::WindowFlags) + /** @brief Viewport event @@ -970,6 +974,8 @@ class EmscriptenApplication::InputEvent { bool _accepted; }; +CORRADE_ENUMSET_OPERATORS(EmscriptenApplication::InputEvent::Modifiers) + /** @brief Mouse event @@ -1057,6 +1063,8 @@ class EmscriptenApplication::MouseMoveEvent: public EmscriptenApplication::Input const EmscriptenMouseEvent* const _event; }; +CORRADE_ENUMSET_OPERATORS(EmscriptenApplication::MouseMoveEvent::Buttons) + /** @brief Mouse scroll event @@ -1289,8 +1297,6 @@ class EmscriptenApplication::KeyEvent: public EmscriptenApplication::InputEvent const EmscriptenKeyboardEvent* const _event; }; -CORRADE_ENUMSET_OPERATORS(EmscriptenApplication::MouseMoveEvent::Buttons) - /** @brief Text input event