Skip to main content

paint_search_pill

Function paint_search_pill 

Source
pub fn paint_search_pill(
    ui: &mut dyn UiBuilder,
    origin: [f32; 2],
    width: f32,
    height: f32,
    placeholder: &str,
    theme: &UiTheme,
) -> (Interaction, f32)
Expand description

The wide “search commands” pill in the title bar. Returns the click interaction (whether the user wants to open the command palette) plus the right edge in screen-space.