pub fn path_for_rectangle(bounds: &Rect, render_context: &mut RenderContext) -> Path {
    let mut path_builder = render_context.path_builder().expect("path_builder");
    path_builder
        .move_to(bounds.origin)
        .line_to(bounds.top_right())
        .line_to(bounds.bottom_right())
        .line_to(bounds.bottom_left())
        .line_to(bounds.origin);
    path_builder.build()
}
/// Create a render path for the specified rectangle.
Create a render path for the specified rectangle.
Create a render path for the specified rectangle .
pub fn path_for_rectangle(bounds: &Rect, render_context: &mut RenderContext) -> Path {
    let mut path_builder = render_context.path_builder().expect("path_builder");
    path_builder
        .move_to(bounds.origin)
        .line_to(bounds.top_right())
        .line_to(bounds.bottom_right())
        .line_to(bounds.bottom_left())
        .line_to(bounds.origin);
    path_builder.build()
}
pub fn path_for_rectangle ( bounds : & Rect , render_context : & mut RenderContext ) -> Path { let mut path_builder = render_context . path_builder ( ) . expect ( " " ) ; path_builder . move_to ( bounds . origin ) . line_to ( bounds . top_right ( ) ) . line_to ( bounds . bottom_right ( ) ) . line_to ( bounds . bottom_left ( ) ) . line_to ( bounds . origin ) ; path_builder . build ( ) }
Create a render path for the specified rectangle.
Create a render path for the specified rectangle .
bounds
&Rect
render_context
&mut RenderContext
bounds
&Rect
render_context
&mut RenderContext