Skip to content

Commit 8fc5863

Browse files
committed
Refactor contexts for more code reuse
This adds a new type, RootState that holds onto all of the app/window-scoped state that is shared between all non-paint contexts. Simplify context lifetimes fixup
1 parent 1327af7 commit 8fc5863

File tree

4 files changed

+127
-174
lines changed

4 files changed

+127
-174
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ This means that druid no longer requires cairo on macOS and uses Core Graphics i
5151
- `im::Vector` support for the `List` widget. ([#940] by [@xStrom])
5252
- `LifeCycle::Size` event to inform widgets that their size changed. ([#953] by [@xStrom])
5353
- `Button::dynamic` constructor. ([#963] by [@totsteps])
54+
- Add `set_menu` method to `UpdateCtx` and `LifeCycleCtx` ([#970] by [@cmyr])
5455

5556
### Changed
5657

@@ -219,6 +220,7 @@ This means that druid no longer requires cairo on macOS and uses Core Graphics i
219220
[#963]: https://github.com/xi-editor/druid/pull/963
220221
[#967]: https://github.com/xi-editor/druid/pull/967
221222
[#969]: https://github.com/xi-editor/druid/pull/969
223+
[#970]: https://github.com/xi-editor/druid/pull/970
222224

223225
## [0.5.0] - 2020-04-01
224226

0 commit comments

Comments
 (0)