Skip to content

Winit: Created a back end method to return a callback to allow access to the Winit ActiveEventLoop#11518

Open
npwoods wants to merge 2 commits intoslint-ui:masterfrom
npwoods:invoke_with_winit_event_loop
Open

Winit: Created a back end method to return a callback to allow access to the Winit ActiveEventLoop#11518
npwoods wants to merge 2 commits intoslint-ui:masterfrom
npwoods:invoke_with_winit_event_loop

Conversation

@npwoods
Copy link
Copy Markdown
Contributor

@npwoods npwoods commented Apr 25, 2026

The intention of this change is to provide Winit-specific functionality similar to Slint's invoke_from_event_loop(), but with access to Winit's ActiveEventLoop.

I regard the pattern of "invoke a method to return a callback that can be passed a callback" as somewhat awkward, so I'm very open to the possibility that there might be a better way to go about this.

npwoods and others added 2 commits April 25, 2026 09:17
… to the Winit `ActiveEventLoop`

The intention of this change is to provide Winit-specific functionality similar to Slint's `invoke_from_event_loop()`, but with access to Winit's `ActiveEventLoop`.

I regard the pattern of "invoke a method to return a callback that can be passed a callback" as somewhat awkward, so I'm very open to the possibility that there might be a better way to go about this.
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.

1 participant