From 14b35ef217f5ee387c4f33b1b24bebb015e18f23 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 7 Jan 2023 19:27:18 -0500 Subject: Replace map/unmap events with more expressive configure events --- include/pugl/pugl.h | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) (limited to 'include') diff --git a/include/pugl/pugl.h b/include/pugl/pugl.h index 00dffba..22cdfca 100644 --- a/include/pugl/pugl.h +++ b/include/pugl/pugl.h @@ -79,9 +79,7 @@ typedef enum { PUGL_NOTHING, ///< No event PUGL_REALIZE, ///< View realized, a #PuglRealizeEvent PUGL_UNREALIZE, ///< View unrealizeed, a #PuglUnrealizeEvent - PUGL_CONFIGURE, ///< View moved/resized, a #PuglConfigureEvent - PUGL_MAP, ///< View made visible, a #PuglMapEvent - PUGL_UNMAP, ///< View made invisible, a #PuglUnmapEvent + PUGL_CONFIGURE, ///< View configured, a #PuglConfigureEvent PUGL_UPDATE, ///< View ready to draw, a #PuglUpdateEvent PUGL_EXPOSE, ///< View must be drawn, a #PuglExposeEvent PUGL_CLOSE, ///< View will be closed, a #PuglCloseEvent @@ -217,25 +215,6 @@ typedef struct { PuglViewStyleFlags style; ///< Bitwise OR of #PuglViewStyleFlag flags } PuglConfigureEvent; -/** - View show event. - - This event is sent when a view is mapped to the screen and made visible. - - This event type has no extra fields. -*/ -typedef PuglAnyEvent PuglMapEvent; - -/** - View hide event. - - This event is sent when a view is unmapped from the screen and made - invisible. - - This event type has no extra fields. -*/ -typedef PuglAnyEvent PuglUnmapEvent; - /** Recursive loop enter event. @@ -1566,12 +1545,6 @@ typedef PuglDestroyEvent PuglEventDestroy; PUGL_DEPRECATED_BY("PuglConfigureEvent") typedef PuglConfigureEvent PuglEventConfigure; -PUGL_DEPRECATED_BY("PuglMapEvent") -typedef PuglMapEvent PuglEventMap; - -PUGL_DEPRECATED_BY("PuglUnmapEvent") -typedef PuglUnmapEvent PuglEventUnmap; - PUGL_DEPRECATED_BY("PuglUpdateEvent") typedef PuglUpdateEvent PuglEventUpdate; -- cgit v1.2.1