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 RectShape::stroke_kind to control if stroke is inside/outside/centered #5647

Merged
merged 5 commits into from
Jan 29, 2025

Conversation

emilk
Copy link
Owner

@emilk emilk commented Jan 29, 2025

Adds RectShape::stroke_kind so you can select if the stroke goes inside, outside, or is centered on the rectangle.

Also adds RectShape::round_to_pixels so you can override TessellationOptions::round_rects_to_pixels.

@emilk emilk added feature New feature or request egui epaint labels Jan 29, 2025
Copy link

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

@emilk emilk merged commit 6be1713 into master Jan 29, 2025
49 checks passed
@emilk emilk deleted the emilk/customize-rect-shape branch January 29, 2025 11:46
@emilk emilk changed the title RectShape: add control over where the stoke goes Add RectShape:: stroke_kind to control if stroke is inside/outside/centered Jan 29, 2025
@emilk emilk changed the title Add RectShape:: stroke_kind to control if stroke is inside/outside/centered Add RectShape::stroke_kind to control if stroke is inside/outside/centered Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
egui epaint feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant