Repository navigation
Replies: 2 comments 5 replies
|
What is the use case? |
4 replies
|
Another possibility would by to make it |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
At the moment there is no way to communicate entirely runtime dependent user interface
Events. iced could add aRuntimevariant that has aBox<dyn Any>payload.The events I would be trying to communicate to the widgets do not belong in the
PlatformSpecificvariant because some of the events I would like to send are from a custom Wayland runtime (using non-standard surface roles) for iced.Example of API addition:
pub enum Event { /// A keyboard event Keyboard(keyboard::Event), /// A mouse event Mouse(mouse::Event), /// A window event Window(window::Event), /// A touch event Touch(touch::Event), /// A platform specific event PlatformSpecific(PlatformSpecific), + + /// A runtime dependent event. + /// + /// This should be used to communicate runtime specific events that do not belong in other variants of [`Event`]. + Runtime(Box<dyn Any>), }All reactions