flipperzero_sys

Function elements_scrollable_text_line

Source
pub unsafe extern "C" fn elements_scrollable_text_line(
    canvas: *mut Canvas,
    x: i32,
    y: i32,
    width: usize,
    string: *mut FuriString,
    scroll: usize,
    ellipsis: bool,
)
Expand description

Draw scrollable text line

ยงArguments

  • canvas - The canvas
  • x (direction in) - X coordinate
  • y (direction in) - Y coordinate
  • width (direction in) - The width
  • string - The string
  • scroll (direction in) - The scroll counter: 0 - no scroll, any other number - scroll. Just count up, everything else will be calculated on the inside.
  • ellipsis (direction in) - The ellipsis flag: true to add ellipse