ui_access

module pkg::alloy::ui::paintingsource

Painting: each element a canvas node under its parent's, moved by its position and painted again only when marked. Its edges are snapped to device pixels as browsers snap boxes: each rounded where it lies on the window, its size following, so nothing starts between two pixel rows while layout, hit tests and the accessibility tree keep fractions.

type Scenesource

exp type Scene = struct

The device, surface and canvas a Ui draws with: the app's own device, or an engine's, which a Hud is lent while it handles an event or draws.

Fields

exp canvas: Canvas

Functions

fn devicesource

exp fn device(self scene: &var Scene) -> &var Device

The device the scene draws with.

fn has_devicesource

exp fn has_device(self scene: &Scene) -> bool

Whether the scene has a device now: a HUD's only while lent one.

fn chevron_marksource

exp fn chevron_mark(canvas: &var Canvas, device: &var Device) -> Picture

A downward chevron's, which a Select paints.

fn previous_marksource

exp fn previous_mark(canvas: &var Canvas, device: &var Device) -> Picture

Chevrons to the left and to the right, a calendar's buttons.

fn next_marksource

exp fn next_mark(canvas: &var Canvas, device: &var Device) -> Picture