From e6183b3dbe6b83d642cad1dfb296083ce8c53360 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 25 May 2021 12:07:17 -0400 Subject: Rename event structs in a more readable style Aside from reading more naturally, this avoids clashes with types that are not events, like PuglEventFlags. This is also more consistent with the C++ bindings, where "EventExpose" would be quite strange, for example. Apologies for the noise. Aliases to the old names will be preserved in the deprecated API like other things for a short while. --- bindings/cpp/include/pugl/pugl.hpp | 92 +++++++++++++++++++------------------- 1 file changed, 46 insertions(+), 46 deletions(-) (limited to 'bindings/cpp/include') diff --git a/bindings/cpp/include/pugl/pugl.hpp b/bindings/cpp/include/pugl/pugl.hpp index 4eebdac..69ea0eb 100644 --- a/bindings/cpp/include/pugl/pugl.hpp +++ b/bindings/cpp/include/pugl/pugl.hpp @@ -117,74 +117,74 @@ using EventFlag = PuglEventFlag; ///< @copydoc PuglEventFlag using EventFlags = PuglEventFlags; ///< @copydoc PuglEventFlags using CrossingMode = PuglCrossingMode; ///< @copydoc PuglCrossingMode -/// @copydoc PuglEventCreate -using CreateEvent = Event; +/// @copydoc PuglCreateEvent +using CreateEvent = Event; -/// @copydoc PuglEventDestroy -using DestroyEvent = Event; +/// @copydoc PuglDestroyEvent +using DestroyEvent = Event; -/// @copydoc PuglEventConfigure -using ConfigureEvent = Event; +/// @copydoc PuglConfigureEvent +using ConfigureEvent = Event; -/// @copydoc PuglEventMap -using MapEvent = Event; +/// @copydoc PuglMapEvent +using MapEvent = Event; -/// @copydoc PuglEventUnmap -using UnmapEvent = Event; +/// @copydoc PuglUnmapEvent +using UnmapEvent = Event; -/// @copydoc PuglEventUpdate -using UpdateEvent = Event; +/// @copydoc PuglUpdateEvent +using UpdateEvent = Event; -/// @copydoc PuglEventExpose -using ExposeEvent = Event; +/// @copydoc PuglExposeEvent +using ExposeEvent = Event; -/// @copydoc PuglEventClose -using CloseEvent = Event; +/// @copydoc PuglCloseEvent +using CloseEvent = Event; -/// @copydoc PuglEventFocus -using FocusInEvent = Event; +/// @copydoc PuglFocusEvent +using FocusInEvent = Event; -/// @copydoc PuglEventFocus -using FocusOutEvent = Event; +/// @copydoc PuglFocusEvent +using FocusOutEvent = Event; -/// @copydoc PuglEventKey -using KeyPressEvent = Event; +/// @copydoc PuglKeyEvent +using KeyPressEvent = Event; -/// @copydoc PuglEventKey -using KeyReleaseEvent = Event; +/// @copydoc PuglKeyEvent +using KeyReleaseEvent = Event; -/// @copydoc PuglEventText -using TextEvent = Event; +/// @copydoc PuglTextEvent +using TextEvent = Event; -/// @copydoc PuglEventCrossing -using PointerInEvent = Event; +/// @copydoc PuglCrossingEvent +using PointerInEvent = Event; -/// @copydoc PuglEventCrossing -using PointerOutEvent = Event; +/// @copydoc PuglCrossingEvent +using PointerOutEvent = Event; -/// @copydoc PuglEventButton -using ButtonPressEvent = Event; +/// @copydoc PuglButtonEvent +using ButtonPressEvent = Event; -/// @copydoc PuglEventButton -using ButtonReleaseEvent = Event; +/// @copydoc PuglButtonEvent +using ButtonReleaseEvent = Event; -/// @copydoc PuglEventMotion -using MotionEvent = Event; +/// @copydoc PuglMotionEvent +using MotionEvent = Event; -/// @copydoc PuglEventScroll -using ScrollEvent = Event; +/// @copydoc PuglScrollEvent +using ScrollEvent = Event; -/// @copydoc PuglEventClient -using ClientEvent = Event; +/// @copydoc PuglClientEvent +using ClientEvent = Event; -/// @copydoc PuglEventTimer -using TimerEvent = Event; +/// @copydoc PuglTimerEvent +using TimerEvent = Event; -/// @copydoc PuglEventLoopEnter -using LoopEnterEvent = Event; +/// @copydoc PuglLoopEnterEvent +using LoopEnterEvent = Event; -/// @copydoc PuglEventLoopLeave -using LoopLeaveEvent = Event; +/// @copydoc PuglLoopLeaveEvent +using LoopLeaveEvent = Event; /** @} -- cgit v1.2.1