Function flipperzero_sys::elements_text_box
source · pub unsafe extern "C" fn elements_text_box(
canvas: *mut Canvas,
x: u8,
y: u8,
width: u8,
height: u8,
horizontal: Align,
vertical: Align,
text: *const c_char,
strip_to_dots: bool
)Expand description
Draw text box element
Arguments
canvas- Canvas instancex- x coordinatey- y coordinatewidth- width to fit textheight- height to fit texthorizontal- Align instancevertical- Align instancetext- [Direction: In] Formatted text. The following formats are available:- text\e#“* - bold font is used
- text\e*“* - monospaced font is used
- text\e!“* - white text on black background
strip_to_dots- Strip text to … if does not fit to width