Skip to main content

draw_label_placeholders

Function draw_label_placeholders 

Source
pub fn draw_label_placeholders<R: Renderer>(
    pos: Pos2,
    h_align: Align,
    name: &str,
    type_label: &str,
    painter: &Style<'_, R>,
)
Expand description

Draw faint “Add Name”/“Add Type” prompts at a pin’s empty label slots, in the same positions draw_pin_labels would use. Called only while the pin’s shape is selected, so the user sees where to double-click to add a label.