widget_add_text_box_element

Function widget_add_text_box_element 

Source
pub unsafe extern "C" fn widget_add_text_box_element(
    widget: *mut Widget,
    x: u8,
    y: u8,
    width: u8,
    height: u8,
    horizontal: Align,
    vertical: Align,
    text: *const c_char,
    strip_to_dots: bool,
)
Expand description

Add Text Box Element

§Arguments

  • widget - Widget 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