Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add return value to with_accessibility_parent #5083

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

bash
Copy link
Contributor

@bash bash commented Sep 6, 2024

Extracted out of #4805

In egui-theme-switch I'm allocating a response inside the closure passed to with_accessibility_parent so that my radio buttons have the radio group as parent.

I'm working around the lack of return value with a custom extension trait for now: ContextExt

  • I have followed the instructions in the PR template

@bash bash changed the title Add return value to with_accessibility_parent Add return value to with_accessibility_parent Sep 6, 2024
@emilk emilk added accessibility More accessible to e.g. the visually impaired egui feature New feature or request labels Sep 9, 2024
@emilk emilk merged commit 49fb163 into emilk:master Sep 9, 2024
22 of 23 checks passed
@bash bash deleted the with-accessibility-parent-return branch September 9, 2024 10:18
hacknus pushed a commit to hacknus/egui that referenced this pull request Oct 30, 2024
Extracted out of emilk#4805

In [`egui-theme-switch`] I'm allocating a response inside the closure
passed to `with_accessibility_parent` so that my radio buttons have the
radio group as parent.

I'm working around the lack of return value with a custom extension
trait for now: [`ContextExt`]

* [x] I have followed the instructions in the PR template

[`egui-theme-switch`]:
https://github.com/bash/egui-theme-switch/blob/main/src/lib.rs
[`ContextExt`]:
https://github.com/bash/egui-theme-switch/blob/main/src/context_ext.rs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility More accessible to e.g. the visually impaired egui feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants