fn draw_mark(frame: &mut Frame, bar_width: f32, offset_x: f32, value: Decibels) {
        let text = format!("{:>4.0}", value.as_db());
        let tick_y = Self::decibels_y_position(frame, value);
        let mut tick_path = iced::canvas::path::Builder::new();
        tick_path.move_to(Point::new(offset_x, tick_y));
        tick_path.line_to(Point::new(offset_x + bar_width, tick_y));
        frame.stroke(
            &tick_path.build(),
            Stroke::default().with_color(Colors::border_color()),
        );
        frame.translate(Vector::new(bar_width * 2. + 5., tick_y - 8.0));
        frame.fill_text(iced::canvas::Text {
            content: text,
            color: Colors::border_color(),
            ..iced::canvas::Text::default()
        });
        frame.translate(Vector::new(-(bar_width * 2. + 5.), -(tick_y - 8.0)));
    }
/// Draw a mark and text reference for the `value` decibels point.
Draw a mark and text reference for the `value` decibels point.
Draw a mark and text reference for the ` value ` decibels point .
fn draw_mark(frame: &mut Frame, bar_width: f32, offset_x: f32, value: Decibels) {
        let text = format!("{:>4.0}", value.as_db());
        let tick_y = Self::decibels_y_position(frame, value);
        let mut tick_path = iced::canvas::path::Builder::new();
        tick_path.move_to(Point::new(offset_x, tick_y));
        tick_path.line_to(Point::new(offset_x + bar_width, tick_y));
        frame.stroke(
            &tick_path.build(),
            Stroke::default().with_color(Colors::border_color()),
        );
        frame.translate(Vector::new(bar_width * 2. + 5., tick_y - 8.0));
        frame.fill_text(iced::canvas::Text {
            content: text,
            color: Colors::border_color(),
            ..iced::canvas::Text::default()
        });
        frame.translate(Vector::new(-(bar_width * 2. + 5.), -(tick_y - 8.0)));
    }
fn draw_mark ( frame : & mut Frame , bar_width : f32 , offset_x : f32 , value : Decibels ) { let text = format ! ( " " value as_db ( ) ) ; let tick_y = Self :: decibels_y_position ( frame , value ) ; let mut tick_path = iced :: canvas :: path :: Builder :: new ( ) ; tick_path . move_to ( Point :: new ( offset_x , tick_y ) ) ; tick_path . line_to ( Point :: new ( offset_x + bar_width , tick_y ) ) ; frame . stroke ( & tick_path . build ( ) , Stroke :: default ( ) . with_color ( Colors :: border_color ( ) ) , ) ; frame . translate ( Vector :: new ( bar_width * 2. + 5. , tick_y - 8.0 ) ) ; frame . fill_text ( iced :: canvas :: Text { content : text , color : Colors :: border_color ( ) , .. iced :: canvas :: Text :: default ( ) } ) ; frame . translate ( Vector :: new ( - ( bar_width * 2. + 5. ) , - ( tick_y - 8.0 ) ) ) ; }
Draw a mark and text reference for the `value` decibels point.
Draw a mark and text reference for the ` value ` decibels point .
frame
&mut Frame
bar_width
f32
offset_x
f32
value
Decibels
frame
&mut Frame
bar_width
f32
offset_x
f32
value
Decibels