Skip to main content

Module op

Module op 

Source
Expand description

Operations that IR nodes can perform.

Every CoreNode carries exactly one Op. The four categories cover everything a node can do:

CategoryTypePurpose
StructureStructuralOpGrouping nodes without visual effect.
LayoutLayoutOpSizing and positioning children (Box, Flex, Grid, …).
PaintPaintOpDrawing rectangles, text, images, paths, and SVGs.
SemanticsSemanticsAccessibility 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.
TextStyle
Styling properties for a run of text.

Enums§

AlignItems
How children are aligned on the cross axis of a flex container.
EmbedKind
The kind of platform-native surface embedded in the UI.
FlexDirection
The primary axis direction for a flex or scroll container.
FlexWrap
Whether a flex container wraps children onto multiple lines.
GridPlacement
Where a grid item is placed within its grid container.
GridTrack
A track sizing function for CSS Grid-style columns or rows.
ImageFit
How an image scales to fit its layout box.
JustifyContent
How children are distributed along the main axis of a flex container.
LayoutOp
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.
StructuralOp
A structural operation that groups child nodes without any visual or layout effect.

Type Aliases§

LayoutUnit
The scalar type used for all layout measurements (widths, heights, padding, etc.).