get window handle to get current monitor to get monitor resolution #714
Unanswered
alexzanderr
asked this question in
Q&A
Replies: 1 comment 3 replies
-
In the master branch, you can get the wry window in Dioxus using the use_window hook. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hello
my goal is to get the current monitor's resolution at runtime after the config (WindowBuilder) was setup.
i've seen that to get the current monitor (https://docs.rs/wry/latest/wry/application/window/struct.Window.html#method.current_monitor) you need to get a window handle, first.
but i dont know how to get a window handle.
i've also seen this example (https://github.com/Satellite-im/Uplink/blob/dev/src/main.rs#L181-L209) from another discussion, but that doesnt work for me. because in my case launch_with_props expects
Config
instead of a closure. i dont know why? im using, i think, the same version, 0.2.4 asany ideas? thanks.
Beta Was this translation helpful? Give feedback.
All reactions