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 instance
  • x - x coordinate
  • y - y coordinate
  • width - width to fit text
  • height - height to fit text
  • horizontal - Align instance
  • vertical - Align instance
  • text - [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