Updated Draw List (markdown)

omar 2026-10-01 16:46:38 +02:00
parent 5ab91e9f8a
commit e030874344

@ -54,6 +54,8 @@ These flags are used to position the stroke relative to the path of the shape. T
- **ImDrawFlags_StrokeOutside**: stroke is expanded left of the path
- **ImDrawFlags_StrokeLegacy**: stroke position mimicks the old API behavior (may differ per function)
![Stroke positions](drawlist/stroke_pos_all.svg)
### Default Stroke Position
In order to keep the common use intuitive to use (and to help with the migration from pre 1.93 API), the default stroke position is different for the two groups of shapes.
@ -66,8 +68,6 @@ In order to keep the common use intuitive to use (and to help with the migration
The Default Stroke Position may be overidden by passing one of the dedicated `ImDrawFlags` value to any function.
![Stroke positions](drawlist/stroke_pos_all.svg)
## Stroke Options
- **ImDrawFlags_Closed**: This option closes the path by drawing a line from first to last point. Applies to `AddPolyline()`and `PathStroke()`