From adc925180be3a8b4a970c70c58ef6c3de6993458 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 23 Nov 2020 17:14:21 +0100 Subject: Rename puglShowWindow and puglHideWindow to puglShow an puglHide These names were confusing because a view is not necessarily a window. Since there's no room for ambiguity here, simply drop the superfluous word. --- include/pugl/pugl.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'include/pugl') diff --git a/include/pugl/pugl.h b/include/pugl/pugl.h index 30d92c6..61820e5 100644 --- a/include/pugl/pugl.h +++ b/include/pugl/pugl.h @@ -1042,11 +1042,11 @@ puglRealize(PuglView* view); top depending on the platform. */ PUGL_API PuglStatus -puglShowWindow(PuglView* view); +puglShow(PuglView* view); /// Hide the current window PUGL_API PuglStatus -puglHideWindow(PuglView* view); +puglHide(PuglView* view); /// Return true iff the view is currently visible PUGL_API bool @@ -1515,6 +1515,12 @@ puglPollEvents(PuglWorld* world, double timeout); PUGL_API PUGL_DEPRECATED_BY("puglUpdate") PuglStatus puglDispatchEvents(PuglWorld* world); +PUGL_API PUGL_DEPRECATED_BY("puglShow") PuglStatus +puglShowWindow(PuglView* view); + +PUGL_API PUGL_DEPRECATED_BY("puglHide") PuglStatus +puglHideWindow(PuglView* view); + #endif // PUGL_DISABLE_DEPRECATED /** -- cgit v1.2.1