fn render_rounded_rect_path(
        &self,
        render_context_2_d: &mut RenderContext2D,
        x: f64,
        y: f64,
        width: f64,
        height: f64,
        radius: f64,
    ) {
        let r = x + width;
        let b = y + height;
        render_context_2_d.move_to(x + radius, y);
        render_context_2_d.line_to(r - radius, y);
        render_context_2_d.quadratic_curve_to(r, y, r, y + radius);
        render_context_2_d.line_to(r, y + height - radius);
        render_context_2_d.quadratic_curve_to(r, b, r - radius, b);
        render_context_2_d.line_to(x + radius, b);
        render_context_2_d.quadratic_curve_to(x, b, x, b - radius);
        render_context_2_d.line_to(x, y + radius);
        render_context_2_d.quadratic_curve_to(x, y, x + radius, y);
        render_context_2_d.close_path();
    }
// Builds rectangle path with radius and without border.
Builds rectangle path with radius and without border.
Builds rectangle path with radius and without border .
fn render_rounded_rect_path(
        &self,
        render_context_2_d: &mut RenderContext2D,
        x: f64,
        y: f64,
        width: f64,
        height: f64,
        radius: f64,
    ) {
        let r = x + width;
        let b = y + height;
        render_context_2_d.move_to(x + radius, y);
        render_context_2_d.line_to(r - radius, y);
        render_context_2_d.quadratic_curve_to(r, y, r, y + radius);
        render_context_2_d.line_to(r, y + height - radius);
        render_context_2_d.quadratic_curve_to(r, b, r - radius, b);
        render_context_2_d.line_to(x + radius, b);
        render_context_2_d.quadratic_curve_to(x, b, x, b - radius);
        render_context_2_d.line_to(x, y + radius);
        render_context_2_d.quadratic_curve_to(x, y, x + radius, y);
        render_context_2_d.close_path();
    }
fn render_rounded_rect_path ( & self , render_context_2_d : & mut RenderContext2D , x : f64 , y : f64 , width : f64 , height : f64 , radius : f64 , ) { let r = x + width ; let b = y + height ; render_context_2_d . move_to ( x + radius , y ) ; render_context_2_d . line_to ( r - radius , y ) ; render_context_2_d . quadratic_curve_to ( r , y , r , y + radius ) ; render_context_2_d . line_to ( r , y + height - radius ) ; render_context_2_d . quadratic_curve_to ( r , b , r - radius , b ) ; render_context_2_d . line_to ( x + radius , b ) ; render_context_2_d . quadratic_curve_to ( x , b , x , b - radius ) ; render_context_2_d . line_to ( x , y + radius ) ; render_context_2_d . quadratic_curve_to ( x , y , x + radius , y ) ; render_context_2_d . close_path ( ) ; }
Builds rectangle path with radius and without border.
Builds rectangle path with radius and without border .
&self
render_context_2_d
&mut RenderContext2D
x
f64
y
f64
width
f64
height
f64
radius
f64