Skip to content

Add Deref<Target = Context> for Ui#7770

Merged
emilk merged 11 commits intomainfrom
emilk/deref-to-context
Dec 14, 2025
Merged

Add Deref<Target = Context> for Ui#7770
emilk merged 11 commits intomainfrom
emilk/deref-to-context

Conversation

@emilk
Copy link
Copy Markdown
Owner

@emilk emilk commented Dec 14, 2025

This means you don't have to type ui.ctx().foo but just ui.foo

@emilk emilk added feature New feature or request egui labels Dec 14, 2025
@emilk emilk changed the title add Deref for Ui Add Deref<Target = Context> for Ui Dec 14, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 14, 2025

Preview available at https://egui-pr-preview.github.io/pr/7770-emilkderef-to-context
Note that it might take a couple seconds for the update to show up after the preview_build workflow has completed.

View snapshot changes at kitdiff

@emilk emilk force-pushed the emilk/deref-to-context branch from 10c9808 to 4d69d2d Compare December 14, 2025 15:11
@emilk emilk merged commit 5ea94dd into main Dec 14, 2025
47 checks passed
@emilk emilk deleted the emilk/deref-to-context branch December 14, 2025 15:25
emilk added a commit that referenced this pull request Dec 14, 2025
emilk added a commit that referenced this pull request Dec 14, 2025
It's important to avoid confusion after
* #7770
emilk added a commit that referenced this pull request Dec 14, 2025
Masterchef365 pushed a commit to Masterchef365/egui that referenced this pull request Apr 3, 2026
* Closes emilk#4033
* Closes emilk#4072

This means you don't have to type `ui.ctx().foo` but just `ui.foo`

---------

Co-authored-by: obellish <[email protected]>
Co-authored-by: obellish <[email protected]>
Masterchef365 pushed a commit to Masterchef365/egui that referenced this pull request Apr 3, 2026
Masterchef365 pushed a commit to Masterchef365/egui that referenced this pull request Apr 3, 2026
Masterchef365 pushed a commit to Masterchef365/egui that referenced this pull request Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

egui feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement Deref<Target = Context> for Ui

2 participants