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 emath::Vec2b, replacing egui_plot::AxisBools #3543

Merged
merged 2 commits into from
Nov 11, 2023
Merged

Add emath::Vec2b, replacing egui_plot::AxisBools #3543

merged 2 commits into from
Nov 11, 2023

Conversation

emilk
Copy link
Owner

@emilk emilk commented Nov 11, 2023

Thanks to impl From<bool> for Vec2b one can now shorten some builder calls, like:

Previous:

 egui::ScrollArea::vertical()
        .auto_shrink([false; 2])

New:

 egui::ScrollArea::vertical()
        .auto_shrink(false)

@emilk emilk added egui_plot Related to egui_plot egui emath Relates to the emath crate labels Nov 11, 2023
@emilk emilk merged commit b27aa27 into master Nov 11, 2023
38 checks passed
@emilk emilk deleted the emilk/vec2b branch November 11, 2023 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
egui_plot Related to egui_plot egui emath Relates to the emath crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant