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

[idea] iced_native: Add methods to tell if UI should capture events to help with integration #455

Closed
wants to merge 1 commit into from

Conversation

alvinhochun
Copy link

This adds two properties to Widget - is_wanting_mouse_events and has_focus. The idea is that a widget can use these properties to indicate whether mouse and keyboard events should be captured. After a state update, the embedding engine can know whether mouse and keyboard events are being captured by the UI through the program state.

My WIP attempt of integrating into Kiss3d (sebcrozet/kiss3d#235) shows how it works.

This PR is incomplete as I have not implement the required changes for some widgets.

Related to: #408

@alvinhochun alvinhochun marked this pull request as draft July 20, 2020 11:38
@hecrj hecrj mentioned this pull request Aug 24, 2020
@hecrj hecrj mentioned this pull request Nov 13, 2020
@hecrj hecrj closed this in #614 Nov 14, 2020
@hecrj hecrj added this to the 0.2.0 milestone Nov 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants