Function flipper0::ffi::canvas_draw_str_aligned
source · pub unsafe extern "C" fn canvas_draw_str_aligned(
canvas: *mut Canvas,
x: u8,
y: u8,
horizontal: Align,
vertical: Align,
str_: *const i8
)
Expand description
Draw aligned string defined by x, y.
Align calculated from position of baseline, string width and ascent (height of the glyphs above the baseline)
@param canvas Canvas instance @param x anchor point x coordinate @param y anchor point y coordinate @param horizontal horizontal alignment @param vertical vertical alignment @param str C-string