From 3cc5539d1c85e5044e6f893b3173cd1392bd8fc8 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 6 Jun 2022 22:41:41 -0400 Subject: Use consistent terminology for native views On MacOS in particular, views and windows are entirely different concepts, so confusing them... confuses things. This was the last holdover in the API that used the old "native window". --- src/mac.m | 2 +- src/win.c | 2 +- src/x11.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/mac.m b/src/mac.m index ce156f5..fafade3 100644 --- a/src/mac.m +++ b/src/mac.m @@ -1421,7 +1421,7 @@ puglPostRedisplayRect(PuglView* view, const PuglRect rect) } PuglNativeView -puglGetNativeWindow(PuglView* view) +puglGetNativeView(PuglView* view) { return (PuglNativeView)view->impl->wrapperView; } diff --git a/src/win.c b/src/win.c index ea64fdc..0150d67 100644 --- a/src/win.c +++ b/src/win.c @@ -1002,7 +1002,7 @@ puglPostRedisplayRect(PuglView* view, const PuglRect rect) } PuglNativeView -puglGetNativeWindow(PuglView* view) +puglGetNativeView(PuglView* view) { return (PuglNativeView)view->impl->hwnd; } diff --git a/src/x11.c b/src/x11.c index 582b6f7..ac81ca8 100644 --- a/src/x11.c +++ b/src/x11.c @@ -1547,7 +1547,7 @@ puglPostRedisplayRect(PuglView* const view, const PuglRect rect) } PuglNativeView -puglGetNativeWindow(PuglView* const view) +puglGetNativeView(PuglView* const view) { return (PuglNativeView)view->impl->win; } -- cgit v1.2.1