Skip to main content

Module core

Module core 

Source

Re-exports§

pub use crate::memory::ImageCachePolicy;

Structs§

ActionId
AnimatedValue
AnimationBinding
AnimationRegistry
AnimationSnapshot
BackdropBlurStyle
Color
ComponentActionOutcome
ComponentId
ComponentRuntimeMetrics
ComponentStateStore
ComponentTree
CompositingLayerSpec
An independently retained paint surface. Animation is only one possible producer of changes.
ContextProviderGuard
ContextRegistry
CustomPaintStyle
DirtySet
DirtyTracker
EdgeInsets
EffectRegistry
Element
ElementKey
ElementRenderCx
EventPolicy
Fragment
HitResult
HookId
HookStateStore
HostProjectionMetrics
HostTree
HostTreeBuilder
IconStyle
ImageRequest
InteractionFlags
KeyModifiers
Pressed modifier keys.
KeyboardEvent
Keyboard events are issued for all pressed and released keys.
LayerTransform
A backend-neutral transform applied while a retained layer is composited.
LayoutCommitMetrics
LayoutRuntime
Observable
OverlayStyle
PathStyle
PendingUpdateOutput
PhysicalPoint
PhysicalRect
PhysicalSize
Point
PointerData
PointerId
RadialGradientLayer
RenderCx
RuntimeOutput
Scene
ScrollRasterSpec
SemanticNode
SemanticRelationships
SemanticState
SemanticText
SemanticUpdate
Semantics
ShadowStyle
A drop shadow of an element’s composited alpha, including its descendants. Distances are logical pixels; blur is the Gaussian standard deviation. Positive spread dilates the alpha mask; negative spread erodes it.
Size
State
StateSetter
StaticLayerSpec
Stroke
TextStyle
UiAction
UiActionBinding
UiActionEvent
UiAsyncContext
UiDefaultAction
UiElement
UiEventContext
Generic application, Store, Router, task and window access passed to every event handler.
UiEventDispatcher
UiEventFlags
UiFocusHandle
UiHandlerEvent
UiId
UiIdPath
UiInputEventBinding
UiInteractionState
UiNode
UiPath
UiRect
UiRenderContext
UiRuntime
UiScale
UiScope
UiUpdateQueue
VerticalGradientLayer
VisualStyle
WheelDelta
WindowStateEvent

Enums§

Align
AnimProperty
AnimationTiming
Axis
CompositingLayerBackground
HookSlotKind
ImageDecodePolicy
ImageFit
ImeEvent
InputEvent
InteractionRole
KeyLocation
The location attribute contains an indication of the physical location of the key on the device.
KeyState
Describes the state a key is in.
LayoutInvalidation
LayoutSpec
LogicalKey
The value received from the keypress.
NamedKey
Key represents the meaning of a keypress.
PhysicalKey
Code is the physical position of a key.
PlatformEvent
PlatformTheme
PointerButton
PointerKind
RasterCachePolicy
RenderPhase
ScenePrimitive
ScenePrimitiveKind
SemanticAction
SemanticInput
SemanticRole
StaticLayerBackground
StaticLayerSource
TextAlign
TouchPhase
UiEvent
UiEventKind
UiEventPayload
UiImageSource
UiNodeKind
UiPathCommand
WheelUnit

Constants§

POINTER_DOWN_ACTION
POINTER_DRAG_ACTION
POINTER_UP_ACTION

Traits§

ComponentState
CompositingLayerAnimation
Application-owned animation state for a retained compositing layer.
DeclarativeView
IntoClickHandler
IntoEffectCleanup
IntoElementContent
IntoUiHandler
RootComponent
UiComponent
UiExecutor

Functions§

animated_compositing_layer
Creates a retained compositing layer whose application-owned animation state updates only composition properties. Its static children are reused between frames.
apply_events_to_animations
apply_layout
apply_layout_tree
async_handler
async_handler_with
clip
clip_path
commands_for_phase
compile_scene
compile_scene_root
Compiles one retained scene root. Normal commits call this only for inserted or paint-dirty roots; unchanged roots keep their previously committed primitive vectors.
component
Declares a real component boundary whose hooks, children and compiled output are retained. Unchanged props and clean dependencies reuse the committed output without executing render.
compositing_layer
compositing_layer_damage
Computes the pixels that can change when a retained layer replaces one command list with another. Returned rectangles use the same local coordinate space as previous and next.
content_text
context_provider
Provides a typed context value while its declarative descendants are compiled.
dispatch_event_handlers
dispatch_hit_handlers
dispatch_runtime_output
Executes every handler and control default action produced by one runtime input pass.
ellipse
fragment
glow
group
line
noop_task_spawner
overlay
path
precompiled
scene_root_ids
Returns the retained scene roots in backend paint order without compiling their primitives. Descendants owned by clip/static/raster containers are represented by that container root; popup descendants remain independent roots so they preserve popup z-order semantics.
scroll_raster_command_snapshot_exists
text
try_use_context
Tries to read a typed value from the nearest provider for the component currently being rendered.
use_context
Reads a typed value from the nearest provider and subscribes the component currently being rendered to provider changes.

Type Aliases§

ObservableListener
UiActionHandler
UiEffect
UiEventHandler
UiInputEventHandler
UiTask
UiTaskSpawner
UiValueEventHandler
UiWake