Skip to main content

Module schema

Module schema 

Source
Expand description

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

Structs§

Animation
One animation the Renderer plays to its end on its own frame clock, described once.
AnimationEvents
Which moments of an animation are reported back as AnimationEvents. None, the default, means the animation plays to its end without a single call to the Host.
BoundaryOp
One logical boundary operation, stated without saying which side calls it.
BoxProps
ButtonProps
Color
ColumnProps
EnumVariantSchema
EventSchema
FieldSchema
Keyframe
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.
TransformFunction
One CSS transform function: its kind and up to six values, the unused ones zero.
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
AnimatedProperty
AnimationControl
AnimationEventKind
Arrangement
AssetKind
BoundaryParam
One argument of a boundary operation.
ButtonKind
ButtonVariant
Chrome
ColorInterpolation
ColorRole
ColorScheme
Cursor
DecorationKind
DesignSystem
EventPayload
EventPayloadType
FieldSlot
Which half of which u64 word of a modifier’s value a field occupies.
FieldType
FillMode
GenericFamily
GutterDecorationKind
HoverPhase
IconRole
Key
KeyframeValue
What one keyframe holds, which has to be what its animation’s property takes.
LoopMode
MaterialRole
MessageDuration
Modifier
MotionRole
NotificationImportance
NotificationPermission
NotificationPresentation
OverflowWrap
Paint
Every place that takes a colour takes a Paint, so colour is expressed once.
PlayState
PlaybackDirection
PointerKind
PointerType
PropertyKind
ReducedMotion
RevealAlign
Severity
ShapeRole
SlotRole
SpaceRole
StepPosition
TextAlign
TextOverflow
TileMode
Timing
The timing function of one keyframe, which shapes the segment to the next one.
TimingKind
TitleBar
TransformFunctionKind
TypeRole
UserSelect
WheelDeltaMode
WidgetKind
WindowHeightClass
WindowSizeClass
WordBreak

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.
ANIMATED_PROPERTY_SCHEMA
ANIMATION_CONTROL_SCHEMA
ANIMATION_EVENT_KIND_SCHEMA
ARRANGEMENT_SCHEMA
ASSET_KIND_SCHEMA
BOUNDARY_SCHEMA
BUTTON_KIND_SCHEMA
BUTTON_VARIANT_SCHEMA
CHROME_SCHEMA
COLOR_INTERPOLATION_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
CURSOR_SCHEMA
DECORATION_KIND_SCHEMA
DESIGN_SYSTEM_SCHEMA
EVENT_SCHEMA
FILL_MODE_SCHEMA
GENERIC_FAMILY_SCHEMA
GUTTER_DECORATION_KIND_SCHEMA
HOVER_PHASE_SCHEMA
ICON_ROLE_SCHEMA
KEY_SCHEMA
MATERIAL_ROLE_SCHEMA
MAX_MODIFIER_WORDS
The most words any modifier’s value takes, the two every record has included.
MESSAGE_DURATION_SCHEMA
MODIFIER_SCHEMA
MOTION_ROLE_SCHEMA
NOTIFICATION_IMPORTANCE_SCHEMA
NOTIFICATION_PERMISSION_SCHEMA
NOTIFICATION_PRESENTATION_SCHEMA
OVERFLOW_WRAP_SCHEMA
PLAYBACK_DIRECTION_SCHEMA
PLAY_STATE_SCHEMA
POINTER_KIND_SCHEMA
POINTER_TYPE_SCHEMA
PROPERTY_SCHEMA
PROTOCOL_VERSION
REDUCED_MOTION_SCHEMA
REVEAL_ALIGN_SCHEMA
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.
SEVERITY_SCHEMA
SHAPE_ROLE_SCHEMA
SLOT_ROLE_SCHEMA
SPACE_ROLE_SCHEMA
STEP_POSITION_SCHEMA
TEXT_ALIGN_SCHEMA
TEXT_OVERFLOW_SCHEMA
TILE_MODE_SCHEMA
TIMING_KIND_SCHEMA
TITLE_BAR_SCHEMA
TRANSFORM_FUNCTION_KIND_SCHEMA
TYPE_ROLE_COUNT
How many type roles there are, which is how many font slots a theme carries.
TYPE_ROLE_SCHEMA
USER_SELECT_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.
WHEEL_DELTA_MODE_SCHEMA
WIDGET_SCHEMA
WINDOW_HEIGHT_CLASS_SCHEMA
WINDOW_SIZE_CLASS_SCHEMA
WORD_BREAK_SCHEMA

Functions§

modifier_extra_words
The extra_words the schema gives a modifier tag, or None for a tag it does not list.