summaryrefslogtreecommitdiff
path: root/gdk/macos/gdkmacossurface.h
diff options
context:
space:
mode:
authorChristian Hergert <christian@hergert.me>2022-02-22 10:21:46 -0800
committerChristian Hergert <chergert@redhat.com>2022-02-25 11:36:39 -0800
commit99a40de8adebb809e8175a5c8b8a54fffcefbbff (patch)
tree14d56b7500f99f5c9d6d332a0960eb13a7146df9 /gdk/macos/gdkmacossurface.h
parent572a884e901e8e418e82ba25e474466766704767 (diff)
downloadgtk+-99a40de8adebb809e8175a5c8b8a54fffcefbbff.tar.gz
macos: add getter for NSWindow with macOS windowing
There may be various reasons that an application could need access to the underlying NSWindow that is being used to display the GdkMacosSurface contents. This provides a minimal API to do that without exposing our implementation details through public API. As our rendering system is likely to change over time, we very much want to keep GdkMacosView, GdkMacosLayer, GdkMacosTile, and GdkMacosWindow all private implementation details which are subject to change. As this is public API, we are a bit long-winded with the name so it is clear what is being accessed without polluting symbol names with things like "ns" as we used to.
Diffstat (limited to 'gdk/macos/gdkmacossurface.h')
-rw-r--r--gdk/macos/gdkmacossurface.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdk/macos/gdkmacossurface.h b/gdk/macos/gdkmacossurface.h
index 470287202e..64ea4c733d 100644
--- a/gdk/macos/gdkmacossurface.h
+++ b/gdk/macos/gdkmacossurface.h
@@ -36,7 +36,9 @@ typedef struct _GdkMacosSurfaceClass GdkMacosSurfaceClass;
#define GDK_IS_MACOS_SURFACE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_MACOS_SURFACE))
GDK_AVAILABLE_IN_ALL
-GType gdk_macos_surface_get_type (void);
+GType gdk_macos_surface_get_type (void);
+GDK_AVAILABLE_IN_4_8
+gpointer gdk_macos_surface_get_native_window (GdkMacosSurface *self);
G_END_DECLS