macos: add getter for NSWindow with macOS windowing
authorChristian Hergert <christian@hergert.me>
Tue, 22 Feb 2022 18:21:46 +0000 (10:21 -0800)
committerChristian Hergert <chergert@redhat.com>
Fri, 25 Feb 2022 19:36:39 +0000 (11:36 -0800)
commit99a40de8adebb809e8175a5c8b8a54fffcefbbff
tree14d56b7500f99f5c9d6d332a0960eb13a7146df9
parent572a884e901e8e418e82ba25e474466766704767
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.
gdk/macos/gdkmacossurface.c
gdk/macos/gdkmacossurface.h