From a385c3cbcc29219aecb6be663079149f992a20a6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 21 Oct 2020 11:55:53 +0200 Subject: Cleanup: Reformat pugl.hpp and pugl.ipp --- pugl/pugl.hpp | 20 +++++++++++--------- pugl/pugl.ipp | 2 +- 2 files changed, 12 insertions(+), 10 deletions(-) (limited to 'pugl') diff --git a/pugl/pugl.hpp b/pugl/pugl.hpp index 8686fa0..9709e51 100644 --- a/pugl/pugl.hpp +++ b/pugl/pugl.hpp @@ -625,7 +625,9 @@ private: return event; } - static PuglStatus dispatchEvent(PuglView* view, const PuglEvent* event) noexcept { + static PuglStatus + dispatchEvent(PuglView* view, const PuglEvent* event) noexcept + { try { View* self = static_cast(puglGetHandle(view)); @@ -647,8 +649,8 @@ private: return static_cast( onDestroy(typedEventRef(event->any))); case PUGL_CONFIGURE: - return static_cast(onConfigure( - typedEventRef(event->configure))); + return static_cast( + onConfigure(typedEventRef(event->configure))); case PUGL_MAP: return static_cast( onMap(typedEventRef(event->any))); @@ -680,14 +682,14 @@ private: return static_cast( onText(typedEventRef(event->text))); case PUGL_POINTER_IN: - return static_cast(onPointerIn( - typedEventRef(event->crossing))); + return static_cast( + onPointerIn(typedEventRef(event->crossing))); case PUGL_POINTER_OUT: - return static_cast(onPointerOut( - typedEventRef(event->crossing))); + return static_cast( + onPointerOut(typedEventRef(event->crossing))); case PUGL_BUTTON_PRESS: - return static_cast(onButtonPress( - typedEventRef(event->button))); + return static_cast( + onButtonPress(typedEventRef(event->button))); case PUGL_BUTTON_RELEASE: return static_cast(onButtonRelease( typedEventRef(event->button))); diff --git a/pugl/pugl.ipp b/pugl/pugl.ipp index 7c39a63..0ed8c4d 100644 --- a/pugl/pugl.ipp +++ b/pugl/pugl.ipp @@ -151,4 +151,4 @@ View::onTimer(const TimerEvent&) return pugl::Status::success; } -} +} // namespace pugl -- cgit v1.2.1