Expand description
High level utilities for running Cranpose applications with minimal boilerplate.
Modules§
- file_
picker - Re-export framework services (HTTP, URI, etc.) from the dedicated services crate. Native, cross-platform file and folder picker.
- fling_
animation - Re-export the UI crate so applications can depend on a single crate. Fling animation driver for scroll containers.
- http
- Re-export framework services (HTTP, URI, etc.) from the dedicated services crate.
- layout
- Re-export the UI crate so applications can depend on a single crate.
- prelude
- Convenience imports for Cranpose applications.
- safe_
area - Re-export the UI crate so applications can depend on a single crate. Platform safe-area insets exposed to composition.
- scroll
- Re-export the UI crate so applications can depend on a single crate. Scroll state and node implementation for cranpose.
- text
- Re-export the UI crate so applications can depend on a single crate.
- text_
field_ focus - Re-export the UI crate so applications can depend on a single crate. Focus manager for text fields.
- text_
layout_ result - Re-export the UI crate so applications can depend on a single crate. Text layout result with cached glyph positions.
- theme
- Re-export framework services (HTTP, URI, etc.) from the dedicated services crate.
- uri_
handler - Re-export framework services (HTTP, URI, etc.) from the dedicated services crate.
- widgets
- Re-export the UI crate so applications can depend on a single crate. UI Widget components
Macros§
- remember
Scroll State - Re-export the UI crate so applications can depend on a single crate. Creates a remembered ScrollState.
Structs§
- Alignment
- Re-export the UI crate so applications can depend on a single crate. Alignment across both axes used for positioning content within a box.
- Alpha
Element - Re-export the UI crate so applications can depend on a single crate. Element that creates and updates alpha nodes.
- Alpha
Node - Re-export the UI crate so applications can depend on a single crate. Node that applies alpha transparency to its content.
- Android
Overlay Window Options - Android floating overlay window configuration.
- AppLauncher
- Platform-agnostic application launcher.
- AppSettings
- Configuration for application settings.
- Background
Element - Re-export the UI crate so applications can depend on a single crate. Element that creates and updates background nodes.
- Background
Node - Re-export the UI crate so applications can depend on a single crate. Node that draws a background behind its content.
- Basic
Text Field Options - Re-export the UI crate so applications can depend on a single crate. Options for customizing BasicTextField appearance and behavior.
- Blurred
Edge Treatment - Re-export the UI crate so applications can depend on a single crate. Controls blur behavior outside source bounds.
- BoxSpec
- Re-export the UI crate so applications can depend on a single crate. Specification for Box layout behavior.
- BoxWith
Constraints Scope Impl - Re-export the UI crate so applications can depend on a single crate.
Concrete implementation of
BoxWithConstraintsScope. - Button
Spec - Re-export the UI crate so applications can depend on a single crate.
- Clickable
Element - Re-export the UI crate so applications can depend on a single crate. Element that creates and updates clickable nodes.
- Clickable
Node - Re-export the UI crate so applications can depend on a single crate.
- Color
- Re-export the UI crate so applications can depend on a single crate.
- Column
Spec - Re-export the UI crate so applications can depend on a single crate. Specification for Column layout behavior.
- Composition
- Re-export the UI crate so applications can depend on a single crate.
- Constraints
- Re-export the UI crate so applications can depend on a single crate. Constraints used during layout measurement.
- Corner
Radii - Re-export the UI crate so applications can depend on a single crate.
- Corner
Shape Element - Re-export the UI crate so applications can depend on a single crate. Element that creates and updates corner shape nodes.
- Corner
Shape Node - Re-export the UI crate so applications can depend on a single crate. Node that tracks the latest rounded corner shape.
- Dp
- Re-export the UI crate so applications can depend on a single crate. Density-independent pixels
- DpOffset
- Re-export the UI crate so applications can depend on a single crate. Density-independent offset for shadows.
- Draw
Cache Builder - Re-export the UI crate so applications can depend on a single crate.
- Edge
Insets - Re-export the UI crate so applications can depend on a single crate. Padding values for each edge of a rectangle.
- File
Filter - Re-export framework services (HTTP, URI, etc.) from the dedicated services crate. A named filter limiting the file types offered by the picker.
- File
Picker Options - Re-export framework services (HTTP, URI, etc.) from the dedicated services crate. Options controlling a pick request.
- Fill
Element - Re-export the UI crate so applications can depend on a single crate. Element that creates and updates fill nodes.
- Fill
Node - Re-export the UI crate so applications can depend on a single crate. Node that fills the maximum available space in one or both dimensions.
- Focus
Manager - Re-export the UI crate so applications can depend on a single crate. Focus manager that tracks and manages focus state across the composition.
- Focus
Requester - Re-export the UI crate so applications can depend on a single crate. A handle for requesting focus programmatically.
- Glass
Material - Re-export the UI crate so applications can depend on a single crate.
Visual parameters for
Modifier::glass_material. - Graphics
Layer - Re-export the UI crate so applications can depend on a single crate.
- Headless
Renderer - Re-export the UI crate so applications can depend on a single crate. A lightweight renderer that walks the layout tree and materialises paint commands.
- Image
Bitmap - Re-export the UI crate so applications can depend on a single crate. Immutable RGBA image data used by UI primitives and render backends.
- KeyEvent
- Re-export the UI crate so applications can depend on a single crate. A keyboard input event.
- Layout
Allocation Debug Stats - Re-export the UI crate so applications can depend on a single crate.
- Layout
Box - Re-export the UI crate so applications can depend on a single crate. Layout information for a single node.
- Layout
Measurements - Re-export the UI crate so applications can depend on a single crate. Result of running the measure pass for a Compose layout tree.
- Layout
Node - Re-export the UI crate so applications can depend on a single crate.
- Layout
Node Data - Re-export the UI crate so applications can depend on a single crate. Snapshot of the data required to render a layout node.
- Layout
Tree - Re-export the UI crate so applications can depend on a single crate. Result of running layout for a Compose tree.
- Lazy
Column Spec - Re-export the UI crate so applications can depend on a single crate. Specification for LazyColumn layout behavior.
- Lazy
List Item Info - Re-export the UI crate so applications can depend on a single crate. Information about a single visible item in a lazy list.
- Lazy
List Layout Info - Re-export the UI crate so applications can depend on a single crate. Information about the currently visible items in a lazy list.
- Lazy
List State - Re-export the UI crate so applications can depend on a single crate. State object for lazy list scroll position tracking.
- Lazy
RowSpec - Re-export the UI crate so applications can depend on a single crate. Specification for LazyRow layout behavior.
- Measure
Layout Options - Re-export the UI crate so applications can depend on a single crate.
- Measure
Result - Re-export the UI crate so applications can depend on a single crate. Result of a measurement operation.
- Modifier
- Re-export the UI crate so applications can depend on a single crate. A modifier chain that can be applied to composable elements.
- Modifier
Chain Trace Guard - Re-export the UI crate so applications can depend on a single crate. RAII guard returned when installing a modifier chain trace subscriber.
- Modifier
Node Slices - Re-export the UI crate so applications can depend on a single crate. Snapshot of modifier node slices that impact draw and pointer subsystems.
- Modifier
Node Slices Debug Stats - Re-export the UI crate so applications can depend on a single crate.
- Modifiers
- Re-export the UI crate so applications can depend on a single crate. Modifier keys state.
- Mutable
Interaction Source - Re-export the UI crate so applications can depend on a single crate.
- Node
Capabilities - Re-export the UI crate so applications can depend on a single crate. Capability flags indicating which specialized traits a modifier node implements.
- Node
State - Re-export the UI crate so applications can depend on a single crate.
Runtime state tracked for every
ModifierNode. - Offset
Element - Re-export the UI crate so applications can depend on a single crate. Element that creates and updates offset nodes.
- Offset
Node - Re-export the UI crate so applications can depend on a single crate. Node that offsets its content by a fixed (x, y) amount.
- Padding
Element - Re-export the UI crate so applications can depend on a single crate. Element that creates and updates padding nodes.
- Padding
Node - Re-export the UI crate so applications can depend on a single crate. Node that adds padding around its content.
- Painter
- Re-export the UI crate so applications can depend on a single crate.
- Paragraph
Style - Re-export the UI crate so applications can depend on a single crate.
- Placeable
- Re-export the UI crate so applications can depend on a single crate. Result of running a measurement pass for a single child.
- Placement
- Re-export the UI crate so applications can depend on a single crate. Placement information for a measured child.
- Platform
Paragraph Style - Re-export the UI crate so applications can depend on a single crate.
- Platform
Span Style - Re-export the UI crate so applications can depend on a single crate.
- Platform
Text Style - Re-export the UI crate so applications can depend on a single crate.
- Point
- Re-export the UI crate so applications can depend on a single crate.
- Pointer
Event - Re-export the UI crate so applications can depend on a single crate. Pointer event with consumption tracking for gesture disambiguation.
- Pointer
Input Scope - Re-export the UI crate so applications can depend on a single crate.
- Prepared
Text Layout - Re-export the UI crate so applications can depend on a single crate.
- Press
Interaction Cancel - Re-export the UI crate so applications can depend on a single crate.
- Press
Interaction Press - Re-export the UI crate so applications can depend on a single crate.
- Press
Interaction Release - Re-export the UI crate so applications can depend on a single crate.
- Recorded
Render Scene - Re-export the UI crate so applications can depend on a single crate. A collection of render operations for a composed scene.
- Rect
- Re-export the UI crate so applications can depend on a single crate.
- Resolved
Background - Re-export the UI crate so applications can depend on a single crate.
- Resolved
Modifiers - Re-export the UI crate so applications can depend on a single crate.
- Rounded
Corner Shape - Re-export the UI crate so applications can depend on a single crate.
- RowSpec
- Re-export the UI crate so applications can depend on a single crate. Specification for Row layout behavior.
- Runtime
Shader - Re-export the UI crate so applications can depend on a single crate.
A custom WGSL shader effect, analogous to Android’s
RuntimeShader. - Scroll
Element - Re-export the UI crate so applications can depend on a single crate. Element for creating a ScrollNode.
- Scroll
Node - Re-export the UI crate so applications can depend on a single crate. ScrollNode layout modifier that physically moves content based on scroll position. This is the component that actually reads ScrollState and applies the visual offset.
- Scroll
State - Re-export the UI crate so applications can depend on a single crate. State object for scroll position tracking.
- Semantics
Callback - Re-export the UI crate so applications can depend on a single crate. Discrete event callback reference produced during semantics extraction.
- Semantics
Node - Re-export the UI crate so applications can depend on a single crate. A single node within the semantics tree.
- Semantics
Tree - Re-export the UI crate so applications can depend on a single crate. Rooted semantics tree extracted after layout.
- Shadow
- Re-export the UI crate so applications can depend on a single crate. Static shadow configuration.
- Shadow
Scope - Re-export the UI crate so applications can depend on a single crate. Pixel-space shadow scope used by block-based APIs.
- Size
- Re-export the UI crate so applications can depend on a single crate.
- Size
Element - Re-export the UI crate so applications can depend on a single crate. Element that creates and updates size nodes.
- Size
Node - Re-export the UI crate so applications can depend on a single crate. Node that enforces size constraints on its content.
- Snapshot
State - Re-export the UI crate so applications can depend on a single crate. Cheap copyable mutable view of a state cell.
- Span
Style - Re-export the UI crate so applications can depend on a single crate.
- String
Annotation - Re-export the UI crate so applications can depend on a single crate.
Mirrors Jetpack Compose’s
AnnotatedString.Range<String>— a tag+value annotation covering a byte range. - Subcompose
Layout Node - Re-export the UI crate so applications can depend on a single crate. Node responsible for orchestrating measure-time subcomposition.
- Subcompose
Measure Scope Impl - Re-export the UI crate so applications can depend on a single crate.
Concrete implementation of
SubcomposeMeasureScope. - SvgPainter
- Re-export the UI crate so applications can depend on a single crate. Parsed SVG image data that rasterizes on demand for the requested draw size.
- Test
Applier Guard - Re-export the UI crate so applications can depend on a single crate.
- Test
Composition - Re-export the UI crate so applications can depend on a single crate. In-memory composition helper used by tests.
- Text
Field Element - Re-export the UI crate so applications can depend on a single crate.
Element that creates and updates
TextFieldModifierNodeinstances. - Text
Field Modifier Node - Re-export the UI crate so applications can depend on a single crate.
- Text
Layout Options - Re-export the UI crate so applications can depend on a single crate.
Text layout behavior options matching Compose
BasicTextcontrols. - Text
Layout Result - Re-export the UI crate so applications can depend on a single crate.
- Text
Line Prefix Widths - Re-export the UI crate so applications can depend on a single crate.
- Text
Metrics - Re-export the UI crate so applications can depend on a single crate.
- Text
Modifier Element - Re-export the UI crate so applications can depend on a single crate. Element that creates and updates TextModifierNode instances.
- Text
Modifier Node - Re-export the UI crate so applications can depend on a single crate. Node that stores text content and handles measurement, drawing, and semantics.
- Text
Options - Re-export the UI crate so applications can depend on a single crate. High-level text widget options for constrained UI text.
- Text
Style - Re-export the UI crate so applications can depend on a single crate.
- Transform
Origin - Re-export the UI crate so applications can depend on a single crate.
- Window
Attach Policy - Attachment and snapping policy for a declarative peer-window group.
- Window
Config - Declarative configuration for an operating-system window.
- Window
Id - A stable identifier for a declarative operating-system window.
- Window
State - Mutable position and size state for a declarative OS window.
Enums§
- Blend
Mode - Re-export the UI crate so applications can depend on a single crate. Blend mode used for draw primitives.
- Brush
- Re-export the UI crate so applications can depend on a single crate.
- Color
Filter - Re-export the UI crate so applications can depend on a single crate. Simple image color filter model.
- Compositing
Strategy - Re-export the UI crate so applications can depend on a single crate. Controls how a graphics layer is composited into its parent target.
- Content
Scale - Re-export the UI crate so applications can depend on a single crate.
- Draw
Command - Re-export the UI crate so applications can depend on a single crate.
- File
Picker Error - Re-export framework services (HTTP, URI, etc.) from the dedicated services crate. Errors produced while presenting a picker or reading a picked entry.
- Fill
Direction - Re-export the UI crate so applications can depend on a single crate. Direction for fill modifiers (horizontal, vertical, or both).
- Focus
Direction - Re-export the UI crate so applications can depend on a single crate. Focus direction for navigation.
- Horizontal
Alignment - Re-export the UI crate so applications can depend on a single crate. Alignment along the horizontal axis.
- Http
Error - Re-export framework services (HTTP, URI, etc.) from the dedicated services crate.
- Image
Sampling - Re-export the UI crate so applications can depend on a single crate. Texture sampling mode for image primitives.
- Interaction
- Re-export the UI crate so applications can depend on a single crate.
- Intrinsic
Size - Re-export the UI crate so applications can depend on a single crate. Specifies how to size a component based on its intrinsic measurements.
- KeyCode
- Re-export the UI crate so applications can depend on a single crate. Physical key codes for keyboard input.
- KeyEvent
Type - Re-export the UI crate so applications can depend on a single crate. Type of keyboard event.
- Layer
Shape - Re-export the UI crate so applications can depend on a single crate.
- Layout
Node Kind - Re-export the UI crate so applications can depend on a single crate.
Classification of the node captured inside a
LayoutBox. - Linear
Arrangement - Re-export the UI crate so applications can depend on a single crate. Arrangement strategy matching Jetpack Compose’s linear arrangements.
- Link
Annotation - Re-export the UI crate so applications can depend on a single crate.
Mirrors Jetpack Compose’s
LinkAnnotationsealed class. - Paint
Layer - Re-export the UI crate so applications can depend on a single crate. Layer that a paint operation targets within the rendering pipeline.
- Picked
Kind - Re-export framework services (HTTP, URI, etc.) from the dedicated services crate.
Whether a
PickedEntryis a single file or a folder/tree. - Pointer
Event Kind - Re-export the UI crate so applications can depend on a single crate.
- Press
Interaction - Re-export the UI crate so applications can depend on a single crate.
- Render
Effect - Re-export the UI crate so applications can depend on a single crate. A render effect applied to a graphics layer’s rendered content.
- Render
Op - Re-export the UI crate so applications can depend on a single crate. A rendered operation emitted by the headless renderer.
- Semantics
Action - Re-export the UI crate so applications can depend on a single crate. Semantics action exposed to the input system.
- Semantics
Role - Re-export the UI crate so applications can depend on a single crate. Semantic role describing how a node should participate in accessibility and hit testing. Roles are now derived from SemanticsConfiguration rather than widget types.
- SvgPainter
Error - Re-export the UI crate so applications can depend on a single crate. Errors returned while parsing or rasterizing an SVG painter.
- System
Theme - Re-export framework services (HTTP, URI, etc.) from the dedicated services crate.
- Text
Draw Style - Re-export the UI crate so applications can depend on a single crate.
- Text
Overflow - Re-export the UI crate so applications can depend on a single crate. How overflowing text should be handled.
- Text
Shaping - Re-export the UI crate so applications can depend on a single crate.
- UriHandler
Error - Re-export framework services (HTTP, URI, etc.) from the dedicated services crate.
- Vertical
Alignment - Re-export the UI crate so applications can depend on a single crate. Alignment along the vertical axis.
- Window
Move Mode - Movement behavior for a group of attached peer windows.
- Window
Resize Direction - Edge or corner used by
WindowModifierExt::window_resize_area.
Constants§
- DEFAULT_
ALPHA - Re-export the UI crate so applications can depend on a single crate.
Traits§
- Arrangement
- Re-export the UI crate so applications can depend on a single crate. Trait implemented by arrangement strategies that distribute children on an axis.
- BoxScope
- Re-export the UI crate so applications can depend on a single crate.
Marker trait matching Jetpack Compose’s
BoxScopeAPI. - BoxWith
Constraints Scope - Re-export the UI crate so applications can depend on a single crate.
Scope exposed to [
BoxWithConstraints] content. - Delegatable
Node - Re-export the UI crate so applications can depend on a single crate.
Provides traversal helpers that mirror Jetpack Compose’s
DelegatableNodecontract. - File
Picker - Re-export framework services (HTTP, URI, etc.) from the dedicated services crate. Presents native file and folder pickers.
- Folder
Stream - Re-export framework services (HTTP, URI, etc.) from the dedicated services crate. A folder being enumerated, yielding its files as the provider discovers them.
- Http
Client - Re-export framework services (HTTP, URI, etc.) from the dedicated services crate.
- Layout
Engine - Re-export the UI crate so applications can depend on a single crate.
Extension trait that equips
MemoryApplierwith layout computation. - Measurable
- Re-export the UI crate so applications can depend on a single crate. Object capable of measuring a layout child and exposing intrinsic sizes.
- Modifier
Node - Re-export the UI crate so applications can depend on a single crate. Core trait implemented by modifier nodes.
- Modifier
Node Element - Re-export the UI crate so applications can depend on a single crate. Strongly typed modifier elements that can create and update nodes while exposing equality/hash/inspector contracts that mirror Jetpack Compose.
- Picked
Entry - Re-export framework services (HTTP, URI, etc.) from the dedicated services crate. An opaque handle to a picked file or folder.
- Subcompose
Layout Scope - Re-export the UI crate so applications can depend on a single crate. Base trait for measurement scopes.
- Subcompose
Measure Scope - Re-export the UI crate so applications can depend on a single crate. Public trait exposed to measure policies for subcomposition.
- Text
Measurer - Re-export the UI crate so applications can depend on a single crate.
- UriHandler
- Re-export framework services (HTTP, URI, etc.) from the dedicated services crate.
- Window
Modifier Ext - Modifier helpers for composables rendered in OS windows.
Functions§
- Basic
Text - Re-export the UI crate so applications can depend on a single crate.
- Basic
Text Field - Re-export the UI crate so applications can depend on a single crate.
- Basic
Text With Options - Re-export the UI crate so applications can depend on a single crate.
- Bitmap
Painter - Re-export the UI crate so applications can depend on a single crate.
- Box
- Re-export the UI crate so applications can depend on a single crate. A layout composable that stacks its children on top of each other.
- BoxWith
Constraints - Re-export the UI crate so applications can depend on a single crate.
- Button
- Re-export the UI crate so applications can depend on a single crate. A clickable button with a background and content.
- Canvas
- Re-export the UI crate so applications can depend on a single crate.
A composable that draws custom content using a
DrawScope. - Clickable
Text - Re-export the UI crate so applications can depend on a single crate.
Displays an
AnnotatedStringand callson_clickwith the byte offset of the character under the pointer at the time of the click. - Column
- Re-export the UI crate so applications can depend on a single crate. A layout composable that places its children in a vertical sequence.
- ForEach
- Re-export the UI crate so applications can depend on a single crate.
- Image
- Re-export the UI crate so applications can depend on a single crate.
- Layout
- Re-export the UI crate so applications can depend on a single crate.
- Lazy
Column - Re-export the UI crate so applications can depend on a single crate. A vertically scrolling list that only composes visible items.
- LazyRow
- Re-export the UI crate so applications can depend on a single crate. A horizontally scrolling list that only composes visible items.
- Linked
Text - Re-export the UI crate so applications can depend on a single crate.
Renders an
AnnotatedStringand automatically dispatches link clicks: - Provide
File Picker - Re-export framework services (HTTP, URI, etc.) from the dedicated services crate.
Provides the default
FilePickerto descendant composables. - Provide
System Theme - Re-export framework services (HTTP, URI, etc.) from the dedicated services crate.
- Provide
UriHandler - Re-export framework services (HTTP, URI, etc.) from the dedicated services crate.
- Row
- Re-export the UI crate so applications can depend on a single crate. A layout composable that places its children in a horizontal sequence.
- Spacer
- Re-export the UI crate so applications can depend on a single crate. A component that represents an empty space.
- Subcompose
Layout - Re-export the UI crate so applications can depend on a single crate.
- Text
- Re-export the UI crate so applications can depend on a single crate.
- Text
With Options - Re-export the UI crate so applications can depend on a single crate.
- Window
- Renders content in an operating-system window owned by the current composition.
- Window
Group - Applies attachment and move policy to all peer windows declared inside it.
- Window
Node - Renders content in a peer operating-system window.
- active_
focus_ target - Re-export the UI crate so applications can depend on a single crate. Returns the currently active focus target, if any.
- build_
layout_ tree_ from_ applier - Re-export the UI crate so applications can depend on a single crate. Builds a layout snapshot from retained layout state in the live applier tree.
- build_
semantics_ tree_ from_ applier - Re-export the UI crate so applications can depend on a single crate. Builds a semantics snapshot from retained layout state in the live applier tree.
- build_
semantics_ tree_ from_ layout_ tree - Re-export the UI crate so applications can depend on a single crate.
Builds a semantics tree from an existing
LayoutTree. - clear_
focus_ invalidations - Re-export the UI crate so applications can depend on a single crate. Clears all pending focus invalidations without processing them.
- clear_
platform_ file_ picker - Re-export framework services (HTTP, URI, etc.) from the dedicated services crate. Removes any registered platform picker (used in tests and teardown).
- clear_
pointer_ repasses - Re-export the UI crate so applications can depend on a single crate. Clears all pending pointer repasses without processing them.
- collect_
modifier_ slices - Re-export the UI crate so applications can depend on a single crate.
Collects modifier node slices directly from a reconciled
ModifierNodeChain. - collect_
semantics_ from_ modifier - Re-export the UI crate so applications can depend on a single crate.
Collects semantics by instantiating a temporary modifier chain from a
Modifier. - collect_
slices_ from_ modifier - Re-export the UI crate so applications can depend on a single crate.
Collects modifier node slices by instantiating a temporary node chain from a
Modifier. - current_
density - Re-export the UI crate so applications can depend on a single crate. Returns the current density scale factor (logical px per dp).
- current_
native_ window_ surface_ origin - Returns the desktop-space origin of the current native window surface while dispatching input inside a native window.
- default_
file_ picker - Re-export framework services (HTTP, URI, etc.) from the dedicated services crate. The default picker (the platform backend).
- default_
http_ client - Re-export framework services (HTTP, URI, etc.) from the dedicated services crate.
- default_
system_ theme - Re-export framework services (HTTP, URI, etc.) from the dedicated services crate.
- default_
uri_ handler - Re-export framework services (HTTP, URI, etc.) from the dedicated services crate.
- execute_
draw_ commands - Re-export the UI crate so applications can depend on a single crate.
- format_
layout_ tree - Re-export the UI crate so applications can depend on a single crate. Returns a formatted string representation of the layout tree
- format_
modifier_ chain - Re-export the UI crate so applications can depend on a single crate. Formats the modifier chain using inspector data.
- format_
render_ scene - Re-export the UI crate so applications can depend on a single crate. Returns a formatted string representation of the render scene
- format_
screen_ summary - Re-export the UI crate so applications can depend on a single crate. Returns a compact summary of what’s on screen (counts by type).
- get_
cursor_ x_ for_ offset - Re-export the UI crate so applications can depend on a single crate.
- get_
offset_ for_ position - Re-export the UI crate so applications can depend on a single crate.
- has_
focused_ field - Re-export the UI crate so applications can depend on a single crate. Returns true if any text field currently has focus. Checks weak ref liveness and clears stale focus state.
- has_
pending_ draw_ repasses - Re-export the UI crate so applications can depend on a single crate. Returns true if any draw repasses are pending.
- has_
pending_ focus_ invalidations - Re-export the UI crate so applications can depend on a single crate. Returns true if any focus invalidations are pending.
- has_
pending_ layout_ repasses - Re-export the UI crate so applications can depend on a single crate. Returns true if any layout repasses are pending.
- has_
pending_ pointer_ repasses - Re-export the UI crate so applications can depend on a single crate. Returns true if any pointer repasses are pending.
- install_
modifier_ chain_ trace - Re-export the UI crate so applications can depend on a single crate. Installs a callback that receives modifier chain snapshots when debugging is enabled.
- isSystem
InDark Theme - Re-export framework services (HTTP, URI, etc.) from the dedicated services crate.
- is_
cursor_ visible - Re-export the UI crate so applications can depend on a single crate. Returns whether the cursor should be visible right now.
- layout_
text - Re-export the UI crate so applications can depend on a single crate.
- local_
file_ picker - Re-export framework services (HTTP, URI, etc.) from the dedicated services crate.
The
CompositionLocalcarrying the activeFilePicker. - local_
http_ client - Re-export framework services (HTTP, URI, etc.) from the dedicated services crate.
- local_
safe_ area_ insets - Re-export the UI crate so applications can depend on a single crate. CompositionLocal carrying the platform safe-area insets in logical pixels.
- local_
system_ theme - Re-export framework services (HTTP, URI, etc.) from the dedicated services crate.
- local_
uri_ handler - Re-export framework services (HTTP, URI, etc.) from the dedicated services crate.
- log_
layout_ tree - Re-export the UI crate so applications can depend on a single crate. Logs the current layout tree through the logger with indentation showing hierarchy.
- log_
modifier_ chain - Re-export the UI crate so applications can depend on a single crate. Logs the contents of a modifier node chain including capabilities.
- log_
render_ scene - Re-export the UI crate so applications can depend on a single crate. Logs the current render scene through the logger.
- log_
screen_ summary - Re-export the UI crate so applications can depend on a single crate. Logs a compact summary of what’s on screen (counts by type).
- map_
ordered_ concurrent - Re-export framework services (HTTP, URI, etc.) from the dedicated services crate.
- measure_
layout - Re-export the UI crate so applications can depend on a single crate.
Runs the measure phase for the subtree rooted at
root. - measure_
layout_ with_ options - Re-export the UI crate so applications can depend on a single crate.
- measure_
text - Re-export the UI crate so applications can depend on a single crate.
- measure_
text_ for_ node - Re-export the UI crate so applications can depend on a single crate.
- measure_
text_ with_ options - Re-export the UI crate so applications can depend on a single crate.
- measure_
text_ with_ options_ for_ node - Re-export the UI crate so applications can depend on a single crate.
- mutable
State Of - Core runtime helpers commonly used by applications.
Creates a new
MutableStateinitialized with the given value. - next_
cursor_ blink_ time - Re-export the UI crate so applications can depend on a single crate.
Returns the next cursor blink transition time, if any.
Use this for
WaitUntilscheduling in the event loop. - peek_
focus_ invalidation - Re-export the UI crate so applications can depend on a single crate. Returns true if a focus invalidation is pending without clearing it.
- peek_
layout_ invalidation - Re-export the UI crate so applications can depend on a single crate. Returns true if a layout invalidation is pending without clearing it.
- peek_
pointer_ invalidation - Re-export the UI crate so applications can depend on a single crate. Returns true if a pointer invalidation is pending without clearing it.
- peek_
render_ invalidation - Re-export the UI crate so applications can depend on a single crate. Returns true if a render invalidation is pending without clearing it.
- pending_
layout_ repass_ nodes_ snapshot - Re-export the UI crate so applications can depend on a single crate. Returns a stable snapshot of pending layout repass node IDs without consuming them.
- prepare_
text_ layout - Re-export the UI crate so applications can depend on a single crate.
- prepare_
text_ layout_ for_ node - Re-export the UI crate so applications can depend on a single crate.
- process_
focus_ invalidations - Re-export the UI crate so applications can depend on a single crate. Processes all pending focus invalidations.
- process_
pointer_ repasses - Re-export the UI crate so applications can depend on a single crate. Processes all pending pointer repasses.
- remember
- Core runtime helpers commonly used by applications.
- remember
Mutable Interaction Source - Re-export the UI crate so applications can depend on a single crate.
- remember
Updated State - Core runtime helpers commonly used by applications.
Returns a
MutableStatethat always holds the latest value. - remember
Window State - Remembers native-window position and size across recompositions.
- remember_
svg - Re-export the UI crate so applications can depend on a single crate.
- request_
focus_ invalidation - Re-export the UI crate so applications can depend on a single crate. Requests a focus recomposition without affecting layout/draw dirties.
- request_
layout_ invalidation - Re-export the UI crate so applications can depend on a single crate. Requests a global layout re-run.
- request_
pointer_ invalidation - Re-export the UI crate so applications can depend on a single crate. Requests a new pointer-input pass without touching layout or draw dirties.
- request_
render_ invalidation - Re-export the UI crate so applications can depend on a single crate. Requests that the renderer rebuild the current scene.
- reset_
cursor_ blink - Re-export the UI crate so applications can depend on a single crate. Resets cursor to visible and restarts the blink timer. Call this on any input (key press, paste) so cursor stays visible while typing.
- run_
test_ composition - Re-export the UI crate so applications can depend on a single crate. Build a composition with a simple in-memory applier and run the provided closure once.
- schedule_
draw_ repass - Re-export the UI crate so applications can depend on a single crate. Schedules a draw-only repass for a specific node.
- schedule_
focus_ invalidation - Re-export the UI crate so applications can depend on a single crate. Schedules a focus invalidation for the specified node.
- schedule_
layout_ repass - Re-export the UI crate so applications can depend on a single crate. Schedules a layout repass for a specific node.
- schedule_
pointer_ repass - Re-export the UI crate so applications can depend on a single crate. Schedules a pointer repass for the specified node.
- set_
active_ focus_ target - Re-export the UI crate so applications can depend on a single crate. Sets the currently active focus target.
- set_
density - Re-export the UI crate so applications can depend on a single crate. Updates the current density scale factor.
- set_
platform_ file_ picker - Re-export framework services (HTTP, URI, etc.) from the dedicated services crate. Registers the platform-provided picker (Android SAF / iOS UIDocumentPicker).
- set_
text_ measurer - Re-export the UI crate so applications can depend on a single crate.
- start_
cursor_ blink - Re-export the UI crate so applications can depend on a single crate. Starts the active context’s cursor blink animation. Called when a text field gains focus.
- stop_
cursor_ blink - Re-export the UI crate so applications can depend on a single crate. Stops the active context’s cursor blink animation. Called when no text field is focused.
- take_
draw_ repass_ nodes - Re-export the UI crate so applications can depend on a single crate. Takes all pending draw repass node IDs.
- take_
focus_ invalidation - Re-export the UI crate so applications can depend on a single crate. Returns true if a focus invalidation was pending and clears the flag.
- take_
layout_ invalidation - Re-export the UI crate so applications can depend on a single crate. Returns true if a layout invalidation was pending and clears the flag.
- take_
layout_ repass_ nodes - Re-export the UI crate so applications can depend on a single crate. Takes all pending layout repass node IDs.
- take_
pointer_ invalidation - Re-export the UI crate so applications can depend on a single crate. Returns true if a pointer invalidation was pending and clears the flag.
- take_
render_ invalidation - Re-export the UI crate so applications can depend on a single crate. Returns true if a render invalidation was pending and clears the flag.
- tick_
cursor_ blink - Re-export the UI crate so applications can depend on a single crate.
Advances the cursor blink state if needed.
Returns
trueif a redraw is needed. - tree_
needs_ layout - Re-export the UI crate so applications can depend on a single crate. Check if a node or any of its descendants needs measure (selective measure optimization). This can be used by the app shell to skip layout when the tree is clean.
- tree_
needs_ semantics - Re-export the UI crate so applications can depend on a single crate. Check if the root semantics snapshot is dirty.
- useState
- Core runtime helpers commonly used by applications.
A composable hook that creates and remembers a
MutableState.
Type Aliases§
- File
Picker Ref - Re-export framework services (HTTP, URI, etc.) from the dedicated services crate.
Shared handle to a
FilePicker. - Folder
Stream Ref - Re-export framework services (HTTP, URI, etc.) from the dedicated services crate.
Shared handle to a
FolderStream. - Http
Client Ref - Re-export framework services (HTTP, URI, etc.) from the dedicated services crate.
- Http
Future - Re-export framework services (HTTP, URI, etc.) from the dedicated services crate.
- Key
- Re-export the UI crate so applications can depend on a single crate.
- Picked
Entry Ref - Re-export framework services (HTTP, URI, etc.) from the dedicated services crate.
Shared handle to a
PickedEntry. - Picker
Future - Re-export framework services (HTTP, URI, etc.) from the dedicated services crate.
A
'staticfuture returned by picker operations, polled on the UI thread. - UriHandler
Ref - Re-export framework services (HTTP, URI, etc.) from the dedicated services crate.
Attribute Macros§
- composable
- Re-export the UI crate so applications can depend on a single crate.