Skip to content

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

Closed
alvinhochun wants to merge 1 commit into
iced-rs:masterfrom
alvinhochun:event-capture
Closed

[idea] iced_native: Add methods to tell if UI should capture events to help with integration#455
alvinhochun wants to merge 1 commit into
iced-rs:masterfrom
alvinhochun:event-capture

Conversation

@alvinhochun

Copy link
Copy Markdown

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 (dimforge/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