swift-win32 icon indicating copy to clipboard operation
swift-win32 copied to clipboard

Make `hWnd: HWND` public

Open NikolayJuly opened this issue 1 year ago • 2 comments
trafficstars

Right now View has internal var hWnd: HWND!. And If I want to make some extension, like DirectX rendering view, I can't integrate it with this frmaework. If make it public, I can create view and use it as target for DirectX rendering. Any other changes, like adding new view subclasses, might also need access to hWnd if I need to make changes using native windows code.

NikolayJuly avatar Oct 22 '24 14:10 NikolayJuly

The hope is that there is enough of an API surface that we don't need to drop down to native Windows code to render the UI. Are there specific things that you were thinking of doing with DirectX that might be something that we could expose in a more structured manner?

compnerd avatar Nov 13 '24 17:11 compnerd

Actually, atm I did switch to winui3, after I was unable to dynamicly update UI with this lib. So now, nothing specific or structured needed for me. But it was my problem when I just did initial test about rendering DirectX and some UI.

NikolayJuly avatar Nov 13 '24 19:11 NikolayJuly