gir.core icon indicating copy to clipboard operation
gir.core copied to clipboard

on Windows, no way to get native window handle (HWND) for a Gdk.Surface

Open medovina opened this issue 10 months ago • 1 comments

On Windows, it could be useful to get a native window handle (type HWND) for a Gdk.Surface, which a program can then pass to Windows functions for platform-specific functionality.

In C, there's a function gdk_win32_surface_get_handle() that will return this value, but it's not exposed in Gir.Core.

medovina avatar Feb 22 '25 07:02 medovina

This api is not available because it is part of another package: https://github.com/gircore/gir-files/blob/2beec2513c228453806c79dec513ba6cadcc78a3/windows/GdkWin32-4.0.gir

I will see if I can add the new project in the next major version.

badcel avatar Feb 22 '25 09:02 badcel