Function cgl_rs::graphics::widgets::add_string
source · pub fn add_string(str_value: &str, x: f32, y: f32, sx: f32, sy: f32) -> i32
Expand description
Adds a string to the current frame.
Arguments
str
- A&str
representing the string to add.x
- Af32
representing the x-coordinate of the starting point of the string.y
- Af32
representing the y-coordinate of the starting point of the string.sx
- Af32
representing the x-scale of the string.sy
- Af32
representing the y-scale of the string.
Returns
An i32
representing the width of the string.