fn render_bordered_rect_path(
        &self,
        render_context_2_d: &mut RenderContext2D,
        rect: Rectangle,
        brush: utils::Brush,
        border_brush: utils::Brush,
        border_thickness: Thickness,
    ) {
        render_context_2_d.rect(rect.x(), rect.y(), rect.width(), rect.height());

        if !brush.is_transparent() {
            render_context_2_d.set_fill_style(brush);
            render_context_2_d.fill();
        }

        if !border_brush.is_transparent() {
            render_context_2_d.set_line_width(border_thickness.left());
            render_context_2_d.set_stroke_style(border_brush);
            render_context_2_d.stroke();
        }
    }
// Renders rectangle with border and without radius.
Renders rectangle with border and without radius.
Renders rectangle with border and without radius .
fn render_bordered_rect_path(
        &self,
        render_context_2_d: &mut RenderContext2D,
        rect: Rectangle,
        brush: utils::Brush,
        border_brush: utils::Brush,
        border_thickness: Thickness,
    ) {
        render_context_2_d.rect(rect.x(), rect.y(), rect.width(), rect.height());
        if !brush.is_transparent() {
            render_context_2_d.set_fill_style(brush);
            render_context_2_d.fill();
        }
        if !border_brush.is_transparent() {
            render_context_2_d.set_line_width(border_thickness.left());
            render_context_2_d.set_stroke_style(border_brush);
            render_context_2_d.stroke();
        }
    }
fn render_bordered_rect_path ( & self , render_context_2_d : & mut RenderContext2D , rect : Rectangle , brush : utils :: Brush , border_brush : utils :: Brush , border_thickness : Thickness , ) { render_context_2_d . rect ( rect . x ( ) , rect . y ( ) , rect . width ( ) , rect . height ( ) ) ; if ! brush . is_transparent ( ) { render_context_2_d . set_fill_style ( brush ) ; render_context_2_d . fill ( ) ; } if ! border_brush . is_transparent ( ) { render_context_2_d . set_line_width ( border_thickness . left ( ) ) ; render_context_2_d . set_stroke_style ( border_brush ) ; render_context_2_d . stroke ( ) ; } }
Renders rectangle with border and without radius.
Renders rectangle with border and without radius .
&self
render_context_2_d
&mut RenderContext2D
rect
Rectangle
brush
utils::Brush
border_brush
utils::Brush
border_thickness
Thickness