Skip to content

Add RectShape::stroke_kind to control if stroke is inside/outside/centered - #5647

Merged
emilk merged 5 commits into
masterfrom
emilk/customize-rect-shape
Jan 29, 2025
Merged

emilk merged 5 commits into
masterfrom
emilk/customize-rect-shape

Conversation

@emilk

@emilk emilk commented Jan 29, 2025

Copy link
Copy Markdown
Owner

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
@github-actions

Copy link
Copy Markdown

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
@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