Expand description
Operations that IR nodes can perform.
Every CoreNode carries exactly one Op. The four
categories cover everything a node can do:
| Category | Type | Purpose |
|---|---|---|
| Structure | StructuralOp | Grouping nodes without visual effect. |
| Layout | LayoutOp | Sizing and positioning children (Box, Flex, Grid, …). |
| Paint | PaintOp | Drawing rectangles, text, images, paths, and SVGs. |
| Semantics | Semantics | Accessibility roles, labels, and action bindings. |
Supporting types for colors, fills, strokes, text styles, flex parameters, and grid tracks are also defined here.
Structs§
- BoxShadow
- A drop shadow rendered behind a rectangle.
- Color
- An RGBA color with 8-bit channels.
- Fill
- A solid color fill.
- Stroke
- A colored stroke (outline) with a line width.
- TextRun
- A contiguous run of text with a uniform style.
- Text
Style - Styling properties for a run of text.
Enums§
- Align
Items - How children are aligned on the cross axis of a flex container.
- Embed
Kind - The kind of platform-native surface embedded in the UI.
- Flex
Direction - The primary axis direction for a flex or scroll container.
- Flex
Wrap - Whether a flex container wraps children onto multiple lines.
- Grid
Placement - Where a grid item is placed within its grid container.
- Grid
Track - A track sizing function for CSS Grid-style columns or rows.
- Image
Fit - How an image scales to fit its layout box.
- Justify
Content - How children are distributed along the main axis of a flex container.
- Layout
Op - A layout operation that sizes and positions a node and its children.
- Op
- The operation a node performs.
- PaintOp
- A paint operation that draws something on screen.
- Structural
Op - A structural operation that groups child nodes without any visual or layout effect.
Type Aliases§
- Layout
Unit - The scalar type used for all layout measurements (widths, heights, padding, etc.).