elements_text_box

Function elements_text_box 

Source
pub unsafe extern "C" fn elements_text_box(
    canvas: *mut Canvas,
    x: i32,
    y: i32,
    width: usize,
    height: usize,
    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- bold font is used “text- monospaced font is used “text- white text on black background
  • strip_to_dots - Strip text to … if does not fit to width