You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I propose to add a new constructor function to generated Window/Dialogcomponent structs besides new(): new_modal() (with_owner() would be a terminology that's too Windows-specific). It would take a reference to another type implementing ComponentHandle as parameter. Because of lack of support from winit, on other OSs than Windows, this currently simply would be ineffective. On Windows, winit provides WindowAttributesExtWindows::with_owner_window(), which you'd need to use. Whenever the owned window is shown, the owner window must be disabled (with WindowExtWindows::set_enable()). When the owned window is hidden, the owner window must be enabled before hiding it.
The text was updated successfully, but these errors were encountered:
Context: Rust.
I propose to add a new constructor function to generated
Window
/Dialog
component
structs besidesnew()
:new_modal()
(with_owner()
would be a terminology that's too Windows-specific). It would take a reference to another type implementingComponentHandle
as parameter. Because of lack of support from winit, on other OSs than Windows, this currently simply would be ineffective. On Windows, winit providesWindowAttributesExtWindows::with_owner_window()
, which you'd need to use. Whenever the owned window is shown, the owner window must be disabled (withWindowExtWindows::set_enable()
). When the owned window is hidden, the owner window must be enabled before hiding it.The text was updated successfully, but these errors were encountered: