-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove app data. all state is now stored in window and timer handlers
Remove the app data (T in App<T>). Building the App struct no longer requires a builder closure that constructs the app data. App now has a context method for getting access to the AppContext outside an event handler, which makes it possible to open windows before entering the event loop. Window handlers are also now passed a &Window, which makes it possible to call methods on the window without passing it in via an Rc or similar. These APIs will get cleaned up in the future. AppContext will become an AppHandle which implements Clone, and window and timer handlers will be passed a WindowContext and TimerContext which allow getting access to both the AppHandle and the Window and Timer objects respectively.
- Loading branch information
Showing
12 changed files
with
282 additions
and
442 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.