tiramisu/renderer

Renderer host attributes and tick events.

Runtime ownership stays in the browser-only internal renderer component so these declarative helpers remain usable from Lustre server components.

Types

pub type Tick {
  Tick(
    delta_time: duration.Duration,
    timestamp: timestamp.Timestamp,
  )
}

Constructors

Values

pub fn alpha(enabled: Bool) -> attribute.Attribute(msg)
pub fn antialias(enabled: Bool) -> attribute.Attribute(msg)
pub const height: fn(Int) -> attribute.Attribute(a)
pub fn on_tick(
  to_msg: fn(Tick) -> msg,
) -> attribute.Attribute(msg)
pub const width: fn(Int) -> attribute.Attribute(b)
Search Document