vex_sdk::display

Function vexDisplayStringWidthGet

Source
pub unsafe fn vexDisplayStringWidthGet(pString: *const c_char) -> i32
Expand description

Returns the calculated width (in pixels) of a string if it were to be drawn to the display.

This function uses the text size of the last text drawing operation for calculating width.

ยงSafety

Calls to jumptable functions are unsafe because jumptable functions are owned by VEXos and we cannot guarantee their safety.