aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-10-21 11:55:53 +0200
committerDavid Robillard <d@drobilla.net>2020-10-21 11:55:53 +0200
commita385c3cbcc29219aecb6be663079149f992a20a6 (patch)
treef7adbf0925c79858445a3f19aefeda7245b0c058
parent0020f0dfab1dc00029c6e39aeb03f63c76b87c51 (diff)
downloadpugl-a385c3cbcc29219aecb6be663079149f992a20a6.tar.gz
pugl-a385c3cbcc29219aecb6be663079149f992a20a6.tar.bz2
pugl-a385c3cbcc29219aecb6be663079149f992a20a6.zip
Cleanup: Reformat pugl.hpp and pugl.ipp
-rw-r--r--pugl/pugl.hpp20
-rw-r--r--pugl/pugl.ipp2
2 files changed, 12 insertions, 10 deletions
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<View*>(puglGetHandle(view));
@@ -647,8 +649,8 @@ private:
return static_cast<PuglStatus>(
onDestroy(typedEventRef<DestroyEvent>(event->any)));
case PUGL_CONFIGURE:
- return static_cast<PuglStatus>(onConfigure(
- typedEventRef<ConfigureEvent>(event->configure)));
+ return static_cast<PuglStatus>(
+ onConfigure(typedEventRef<ConfigureEvent>(event->configure)));
case PUGL_MAP:
return static_cast<PuglStatus>(
onMap(typedEventRef<MapEvent>(event->any)));
@@ -680,14 +682,14 @@ private:
return static_cast<PuglStatus>(
onText(typedEventRef<TextEvent>(event->text)));
case PUGL_POINTER_IN:
- return static_cast<PuglStatus>(onPointerIn(
- typedEventRef<PointerInEvent>(event->crossing)));
+ return static_cast<PuglStatus>(
+ onPointerIn(typedEventRef<PointerInEvent>(event->crossing)));
case PUGL_POINTER_OUT:
- return static_cast<PuglStatus>(onPointerOut(
- typedEventRef<PointerOutEvent>(event->crossing)));
+ return static_cast<PuglStatus>(
+ onPointerOut(typedEventRef<PointerOutEvent>(event->crossing)));
case PUGL_BUTTON_PRESS:
- return static_cast<PuglStatus>(onButtonPress(
- typedEventRef<ButtonPressEvent>(event->button)));
+ return static_cast<PuglStatus>(
+ onButtonPress(typedEventRef<ButtonPressEvent>(event->button)));
case PUGL_BUTTON_RELEASE:
return static_cast<PuglStatus>(onButtonRelease(
typedEventRef<ButtonReleaseEvent>(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