Skip to main content

crosshair_price_action

Function crosshair_price_action 

Source
pub fn crosshair_price_action(
    ui: &mut Ui,
    tag: Rect,
    price: f64,
    foreground: Color32,
) -> Option<f64>
Expand description

Paints a 26 by 20 point circled-plus button joined to the left of tag. A click returns price for the host’s alert, order or price-line menu. The tag itself remains available for price-axis drags. Uses the theme’s tag fill and foreground ink; call before handling price-axis drags.