René.2mo ago

Help with usage of unsafe apis in webview_deno

Hello, basically I was wondering how to use the unsafeWindowHandle method. Could any simple examples be provided? thanks in advance! For more info:
webview_deno/src/webview.ts at main · webview/webview_deno
🌐 Deno bindings for webview, a tiny library for creating web-based desktop GUIs - webview/webview_deno
5 Replies
Deno AI Helper
Deno AI Helper2mo ago
I wasn't able to find the answer to your question in the official Deno documentation. However, based on your message, I can provide some general advice. The unsafeWindowHandle method you're referring to seems to be a part of the webview_deno library, which is an external library and not part of the core Deno APIs. If you're looking to use this method, you should ensure that you're using the library correctly and that you have the necessary permissions enabled when running your Deno script, as it might require access to system resources. Please note that the advice provided here is not based on the Deno documentation, and I would advise you to double-check the accuracy of the advice given. For more specific guidance on using unsafeWindowHandle, you might want to look at the repository's issues, pull requests, or even directly ask the maintainers for examples or further documentation.
AapoAlas2mo ago
Hmm, @divy or @eliassjogreen (denosaurs) maybe?
Snabel2mo ago
Hey! Yeah, so the unsafeWindowHandle should be useable with the respective platforms API:s as it's simply the handle/pointer to the native window. With GTK for example it might be possible to manage the window using or maybe something from (@loading...?)
GitHub - sigmaSd/deno-gtk-py: Deno wrapper+types over gtk using den...
Deno wrapper+types over gtk using deno-python. Contribute to sigmaSd/deno-gtk-py development by creating an account on GitHub.
Deno Windowing
Deno Windowing Ecosystem. Deno Windowing has 9 repositories available. Follow their code on GitHub.
loading...2mo ago
check the dwm source code very clean usage of the unsafeWindowHandle
René.2mo ago
Thanks for the info 🙂