Skip to main content

editor_position

Function editor_position 

Source
fn editor_position(
    data: &Drawing<'_>,
    shape: ShapeId,
    painter: &Style<'_, impl Renderer>,
) -> Option<(Rect, Align2)>
Expand description

Where the in-place editor sits: anchored over the committed title’s position, re-measured every frame so it tracks the shape’s geometry. None once the shape (or its title) is gone from under the editor.