Function cgl_rs::graphics::widgets::add_rect2f
source · pub fn add_rect2f(start_x: f32, start_y: f32, size_x: f32, size_y: f32)
Expand description
Adds a 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.