vex_sdk::display

Function vexDisplayStringHeightGet

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

Returns the calculated height (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 height.

ยงSafety

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