Skip to main contentModule draw
Source - ClipRect
- Axis-aligned scissor rectangle in grid coordinates.
- Color
- Linear RGBA colour with components in
0.0..=1.0. - Pane
- wgpu renderer for a single render target.
- Rect
- Axis-aligned rectangle in grid coordinates.
- Scene
- Batched draw list assembled each frame before it is handed to
Pane::render. - ShaderId
- Opaque handle to a compiled render pipeline, returned by
Pane::register_shader.
- TextAlign
- Horizontal alignment for text drawn inside a fixed-width box.
- grid_width
- Return the grid-space width for a window of size
pw × ph pixels. - run
- Run a standalone pane application, blocking until the window is closed.
- to_ndc
- Convert a grid-space point to normalised device coordinates
[x, y].