Function cgl_rs::graphics::widgets::add_character
source · pub fn add_character(c: char, x: f32, y: f32, sx: f32, sy: f32) -> i32
Expand description
Adds a character to the current frame.
Arguments
c
- Achar
representing the character to add.x
- Af32
representing the x-coordinate of the starting point of the character.y
- Af32
representing the y-coordinate of the starting point of the character.sx
- Af32
representing the x-scale of the character.sy
- Af32
representing the y-scale of the character.
Returns
An i32
representing the width of the character.