Skip to main content

Module schema

Module schema 

Source
Expand description

Closed Rust-side schema and metadata used for Kotlin code generation.

Structs§

BoundaryOp
One logical boundary operation, stated without saying which side calls it.
BoxProps
ButtonProps
Color
ColumnProps
EnumVariantSchema
EventSchema
FieldSchema
RoleEnumSchema
A role enum that codegen mirrors into Kotlin.
RowProps
Selection
SpacerProps
TextFieldProps
TextProps
Theme
A design system choice plus how it reacts to the host platform.
VariantSchema
WebBatchField
One field of the MutationBatch record the Host writes into the shared memory.
Window
What an application may decide about its own window.

Enums§

Alignment
Arrangement
AssetKind
BoundaryParam
One argument of a boundary operation.
ButtonVariant
Chrome
ColorRole
ColorScheme
DesignSystem
EventPayload
EventPayloadType
FieldSlot
Which half of which (first, second) word a modifier field occupies.
FieldType
IconRole
Key
LoopMode
MaterialRole
MessageDuration
Modifier
MotionRole
NotificationImportance
NotificationPermission
NotificationPresentation
Paint
Every place that takes a colour takes a Paint, so colour is expressed once.
PropertyKind
ShapeRole
SlotRole
SpaceRole
TextAlign
TextOverflow
TileMode
TitleBar
TypeRole
WidgetKind
WindowHeightClass
WindowSizeClass

Constants§

ALIGNMENT_SCHEMA
ANDROID_BRIDGE_CLASS
The JVM class the Android shims bind to. The Kotlin file is generated under the same name, so the two sides cannot drift.
ARRANGEMENT_SCHEMA
ASSET_KIND_SCHEMA
BOUNDARY_SCHEMA
BUTTON_VARIANT_SCHEMA
CHROME_SCHEMA
COLOR_ROLE_COUNT
How many colour roles there are, which is how many rows every token table has and how many slots a palette carries per scheme.
COLOR_ROLE_SCHEMA
COLOR_SCHEME_SCHEMA
DESIGN_SYSTEM_SCHEMA
EVENT_SCHEMA
ICON_ROLE_SCHEMA
KEY_SCHEMA
MATERIAL_ROLE_SCHEMA
MESSAGE_DURATION_SCHEMA
MODIFIER_SCHEMA
MOTION_ROLE_SCHEMA
NOTIFICATION_IMPORTANCE_SCHEMA
NOTIFICATION_PERMISSION_SCHEMA
NOTIFICATION_PRESENTATION_SCHEMA
PROPERTY_SCHEMA
PROTOCOL_VERSION
ROLE_ENUM_SCHEMA
Every role enum codegen mirrors, in wire order. Appending is the only allowed edit.
SCHEMA_DESCRIPTOR
Canonical schema text. Variant order is wire-significant and must only be appended to.
SCHEMA_HASH
Stable handshake hash of the complete ordered schema metadata.
SHAPE_ROLE_SCHEMA
SLOT_ROLE_SCHEMA
SPACE_ROLE_SCHEMA
TEXT_ALIGN_SCHEMA
TEXT_OVERFLOW_SCHEMA
TILE_MODE_SCHEMA
TITLE_BAR_SCHEMA
TYPE_ROLE_COUNT
How many type roles there are, which is how many font slots a theme carries.
TYPE_ROLE_SCHEMA
WEB_BATCH_BYTES
How long that record is, including the padding #[repr(C)] adds before the result.
WEB_BATCH_FIELDS
MutationBatch as a wasm32 target lays it out.
WEB_EVENT_BUFFER_BYTES
How much room the Host lends the Renderer to encode one event into.
WEB_EVENT_BUFFER_OFFSET
Where the event buffer starts inside the block compose_rust_host_web_start reports.
WEB_HOST_GLOBAL
The global the generated forwarders read the Host’s exports off.
WEB_MODULE_GLOBAL
The global the loader module publishes the compiled Host module under.
WEB_RENDERER_IMPORT_MODULE
The wasm import module the Host’s frame request comes from.
WEB_RUST_REGION_BASE
The first address that belongs to the Rust module.
WEB_START_SYMBOL
The extra Host export a browser needs, because a page has no library loader.
WIDGET_SCHEMA
WINDOW_HEIGHT_CLASS_SCHEMA
WINDOW_SIZE_CLASS_SCHEMA