Skip to content

Commit

Permalink
Refactor contexts for more code reuse
Browse files Browse the repository at this point in the history
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
  • Loading branch information
cmyr committed May 22, 2020
1 parent 1327af7 commit ce8a1b2
Show file tree
Hide file tree
Showing 4 changed files with 127 additions and 174 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ This means that druid no longer requires cairo on macOS and uses Core Graphics i
- `im::Vector` support for the `List` widget. ([#940] by [@xStrom])
- `LifeCycle::Size` event to inform widgets that their size changed. ([#953] by [@xStrom])
- `Button::dynamic` constructor. ([#963] by [@totsteps])
- `set_menu` method on `UpdateCtx` and `LifeCycleCtx` ([#970] by [@cmyr])

### Changed

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

## [0.5.0] - 2020-04-01

Expand Down
Loading

0 comments on commit ce8a1b2

Please sign in to comment.