Function cgl_rs::graphics::widgets::add_rounded_rect2f
source · pub fn add_rounded_rect2f(
start_x: f32,
start_y: f32,
size_x: f32,
size_y: f32,
radius: f32,
res: i32
)
Expand description
Adds a rounded rectangle to the current frame.
Arguments
start_x
- Af32
representing the x-coordinate of the starting point of the rectangle.start_y
- Af32
representing the y-coordinate of the starting point of the rectangle.size_x
- Af32
representing the width of the rectangle.size_y
- Af32
representing the height of the rectangle.radius
- Af32
representing the radius of the corners of the rectangle.res
- Ani32
representing the number of segments used to approximate the corners of the rectangle.