1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 05:10:03 -04:00

RectShape: add control over where the stoke goes (#5647)

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`.
This commit is contained in:
Emil Ernerfeldt
2025-01-29 12:46:12 +01:00
committed by GitHub
parent 83649f2e29
commit 6be17136f2
5 changed files with 76 additions and 21 deletions

View File

@@ -63,6 +63,8 @@ pub fn adjust_colors(
rounding: _,
fill,
stroke,
stroke_kind: _,
round_to_pixels: _,
blur_width: _,
brush: _,
}) => {