Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for modal windows #6607

Open
Enyium opened this issue Oct 21, 2024 · 0 comments
Open

Support for modal windows #6607

Enyium opened this issue Oct 21, 2024 · 0 comments
Labels
api Changes or additions to APIs enhancement New feature or request

Comments

@Enyium
Copy link
Contributor

Enyium commented Oct 21, 2024

Context: Rust.

I propose to add a new constructor function to generated Window/Dialog component 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.

@FloVanGH FloVanGH added the need triaging Issue that the owner of the area still need to triage label Oct 21, 2024
@ogoffart ogoffart added enhancement New feature or request api Changes or additions to APIs and removed need triaging Issue that the owner of the area still need to triage labels Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Changes or additions to APIs enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants