etui/widgets/marquee

Types

pub type Marquee {
  Marquee(
    text: String,
    speed: Int,
    separator: String,
    fg: style.Color,
    bg: style.Color,
    modifier: style.Modifier,
  )
}

Constructors

  • Marquee(
      text: String,
      speed: Int,
      separator: String,
      fg: style.Color,
      bg: style.Color,
      modifier: style.Modifier,
    )

    Arguments

    speed

    Frames per character advance. Higher = slower scroll. 0 or 1 = fastest.

    separator

    String appended between repetitions for visual separation.

Values

pub fn marquee_new(text: String) -> Marquee
pub fn render(
  buf: buffer.Buffer,
  area: geometry.Rect,
  m: Marquee,
  frame: Int,
) -> buffer.Buffer

Render the scrolling marquee. frame drives scroll position.

pub fn with_fg(m: Marquee, fg: style.Color) -> Marquee
pub fn with_separator(m: Marquee, sep: String) -> Marquee
pub fn with_speed(m: Marquee, speed: Int) -> Marquee
pub fn with_style(
  m: Marquee,
  fg: style.Color,
  bg: style.Color,
  modifier: style.Modifier,
) -> Marquee
Search Document