wzzc-dev/moui/core does not have a README file
pub(all) struct ActionCommand {
intent : CommandIntent
shortcut : KeyboardShortcut?
label : String
enabled : Bool
group : String
description : String
context_menu : Bool
} derive(Eq, ToJson, Debug)fn ActionCommand::new(intent~ : CommandIntent, label? : String, shortcut? : KeyboardShortcut?, enabled? : Bool, group? : String, description? : String, context_menu? : Bool) -> ActionCommandtype ActionCommandMapfn ActionCommandMap::dispatch_shortcut(self : ActionCommandMap, event : KeyboardEvent) -> CommandIntent?fn ActionCommandMap::find_shortcut(self : ActionCommandMap, event : KeyboardEvent) -> ActionCommand?pub(all) enum AppEvent {
FrameTick(Frame)
Pointer(PointerEvent)
Keyboard(KeyboardEvent)
TextInput(TextInputEvent)
DragDrop(DragDropEvent)
PlatformView(String, PlatformViewEvent)
Resize(Size)
Redraw(RedrawReason)
CloseRequested
} derive(Eq, ToJson, Debug)pub(all) struct BadgeTheme {
neutral : ToneTokens
accent : ToneTokens
success : ToneTokens
warning : ToneTokens
danger : ToneTokens
radius : Double
padding : Double
} derive(Eq, ToJson, Debug)pub struct Binding[T] {
// private fields
}pub(all) enum Brush {
Solid(Color)
LinearGradient(LinearGradientSpec)
RadialGradient(RadialGradientSpec)
} derive(Eq, ToJson, Debug)pub(all) struct ButtonTheme {
primary : ControlStateTokens
tonal : ControlStateTokens
outline : ControlStateTokens
ghost : ControlStateTokens
subtle : ControlStateTokens
subtle_brand : ControlStateTokens
state_layer : StateLayerTokens
} derive(Eq, ToJson, Debug)fn ButtonTheme::resolve(self : ButtonTheme, variant : ButtonVariantToken, state : InteractionState) -> ControlStateStylefn CachedLayerSpec::new(key~ : String, frame~ : Rect, content_revision~ : Int, scale_factor? : Double) -> CachedLayerSpecpub(all) struct ChoiceControlTheme {
foreground : Color
selected_color : Color
disabled_foreground : Color
disabled_selected_color : Color
control_size : Double
box_shape : ChoiceControlShape
check_style : CheckMarkStyle
} derive(Eq, ToJson, Debug)pub(all) struct ColorPalette {
foreground : Color
background : Color
surface : Color
surface_variant : Color
primary : Color
on_primary : Color
primary_container : Color
on_primary_container : Color
secondary : Color
on_secondary : Color
secondary_container : Color
on_secondary_container : Color
tertiary : Color
on_tertiary : Color
tertiary_container : Color
on_tertiary_container : Color
error : Color
on_error : Color
error_container : Color
on_error_container : Color
on_foreground : Color
on_surface : Color
on_surface_variant : Color
outline : Color
outline_variant : Color
muted : Color
success : Color
on_success : Color
warning : Color
on_warning : Color
info : Color
on_info : Color
danger : Color
on_danger : Color
focus : Color
scrim : Color
} derive(Eq, ToJson, Debug)fn ColorPalette::from_seed(primary~ : Color, scheme : ColorScheme, foreground? : Color, background? : Color, surface? : Color, surface_variant? : Color, outline? : Color, muted? : Color) -> ColorPalettetype CommandBindingpub struct ComponentContext {
// private fields
}fn ComponentContext::on_dispose(self : ComponentContext, key~ : String, cleanup : () -> Unit) -> Unitfn ComponentContext::on_unmount(self : ComponentContext, key~ : String, cleanup : () -> Unit) -> Unitfn ComponentContext::on_unmount_with_reason(self : ComponentContext, key~ : String, cleanup : (ComponentEffectCancelReason) -> Unit) -> Unitfn ComponentContext::on_update(self : ComponentContext, key~ : String, deps~ : Array[String], effect : () -> () -> Unit?) -> Unitfn ComponentContext::on_update_with_reason(self : ComponentContext, key~ : String, deps~ : Array[String], effect : () -> (ComponentEffectCancelReason) -> Unit?) -> Unitfn[T] ComponentContext::restore(self : ComponentContext, key~ : String, codec : SaveableCodec[T]) -> T?fn ComponentContext::run_effect(self : ComponentContext, key~ : String, effect : () -> () -> Unit?) -> Unitfn ComponentContext::run_effect_with_reason(self : ComponentContext, key~ : String, effect : () -> (ComponentEffectCancelReason) -> Unit?) -> Unitfn[T] ComponentContext::save(self : ComponentContext, key~ : String, value : T, codec : SaveableCodec[T]) -> Unitfn[T] ComponentContext::saveable(self : ComponentContext, key~ : String, initial : T, codec : SaveableCodec[T]) -> State[T]fn ComponentContext::saveable_bool(self : ComponentContext, key~ : String, initial : Bool) -> State[Bool]fn ComponentContext::saveable_int(self : ComponentContext, key~ : String, initial : Int) -> State[Int]fn ComponentContext::saveable_string(self : ComponentContext, key~ : String, initial : String) -> State[String]fn ComponentContext::watch_navigation(self : ComponentContext, state : NavigationState) -> Array[String]type ComponentEffectfn ComponentEffect::finish_reuse(old_effects : Array[ComponentEffect], reason? : ComponentEffectCancelReason, cancel_reused? : Bool) -> Unitpub(all) struct ComponentRuntimeContextInput {
component_id : ElementId
request_component_rebuild : (ElementId) -> Unit
viewport_size : Size
saveable_state : SaveableStateStore
subscriptions : Array[StateSubscription]
effects : Array[ComponentEffect]
old_effects : Array[ComponentEffect]
environment : Environment
}pub(all) struct ComponentThemes {
button : ButtonTheme
text_field : TextFieldTheme
surface : SurfaceTheme
choice_control : ChoiceControlTheme
progress : ProgressTheme
slider : SliderTheme
picker : PickerTheme
feedback : FeedbackTheme
badge : BadgeTheme
form_validation : FormValidationTheme
} derive(Eq, ToJson, Debug)pub(all) struct ControlStateStyle {
foreground : Color
background : Brush
border : BorderStyle?
radius : Double
shadow : ShadowStyle?
bottom_border_only : Bool
inner_focus_border : Color?
} derive(Eq, ToJson, Debug)fn ControlStateTokens::new(foreground~ : Color, background~ : Color, border~ : Color, border_width~ : Double, radius~ : Double, bottom_border_only? : Bool, inner_focus_border? : Color?) -> ControlStateTokenstype CustomLayoutCachepub(all) struct CustomLayoutContext {
constraints : Constraints
child_sizes : Array[Size]
child_baselines : Array[Double?]
child_priorities : Array[Double]
child_alignment_guides : Array[AlignmentGuideSet]
cache : CustomLayoutCache
cache_key : String
layout_direction : LayoutDirection
safe_area : Insets
viewport : Size?
}pub(all) struct CustomPlacementContext {
frame : Rect
measured_size : Size
child_sizes : Array[Size]
child_baselines : Array[Double?]
child_priorities : Array[Double]
child_alignment_guides : Array[AlignmentGuideSet]
cache : CustomLayoutCache
cache_key : String
layout_direction : LayoutDirection
safe_area : Insets
viewport : Size?
}fn CustomPlacementContext::mirror_x(self : CustomPlacementContext, x~ : Double, width~ : Double) -> Doublepub struct DerivedState[T] {
// private fields
}fn[A, B, T] DerivedState::combine(left : State[A], right : State[B], project : (A, B) -> T) -> DerivedState[T]fn[T] DerivedState::new(get~ : () -> T, subscribe~ : (() -> Unit) -> Array[StateSubscription]) -> DerivedState[T]fn[T] DerivedState::subscribe(self : DerivedState[T], callback : () -> Unit) -> Array[StateSubscription]fn DragDropEvent::new(phase~ : DragDropPhase, paths? : Array[String], position? : Point?) -> DragDropEventfn DragGestureEvent::new(phase~ : DragGesturePhase, start~ : Point, position~ : Point, delta~ : Point, translation~ : Point) -> DragGestureEventpub(all) enum DrawCommand {
Clear(Color)
FillRect(Rect, Color)
StrokeRect(Rect, Color, Double)
FillRoundedRect(RoundedRect, Color)
StrokeRoundedRect(RoundedRect, Color, Double)
FillRoundedRectBrush(RoundedRect, Brush)
StrokeRoundedRectBrush(RoundedRect, Brush, Double)
DrawShadow(ShadowSpec)
DrawText(TextRun)
DrawImage(ImageRun)
PushClip(Rect)
PopClip
PushRoundedClip(RoundedRect)
PopRoundedClip
PushTransform(Transform2D)
PopTransform
PushOpacity(Double)
PopOpacity
PushLayer(LayerSpec)
PopLayer
BeginCachedLayer(CachedLayerSpec)
EndCachedLayer(String)
DrawCachedLayer(CachedLayerSpec)
PushFilter(FilterEffect)
PopFilter
DrawPath(PathSpec)
DrawShaderEffect(ShaderEffectSpec)
} derive(Eq, ToJson, Debug)pub(all) struct DrawFrame {
commands : Array[DrawCommand]
platform_views : Array[PlatformViewPlacement]
damage : DamageRegion
clear_color : Color
cache_epoch : Int
} derive(Eq, ToJson, Debug)fn DrawFrame::new(commands~ : Array[DrawCommand], platform_views? : Array[PlatformViewPlacement], damage~ : DamageRegion, clear_color? : Color, cache_epoch? : Int) -> DrawFramepub(all) enum Effect[Msg] {
NoEffect
Batch(Array[Effect[Msg]])
Send(Msg)
Dispatch(((Msg) -> Unit) -> Unit)
Run(EffectDescriptor, ((Msg) -> Unit) -> Unit)
Task(EffectDescriptor, ((Msg) -> Unit) -> () -> Unit?)
}fn[Msg] Effect::runtime_visit(self : Effect[Msg], send : (Msg) -> Unit, dispatch_effect : (((Msg) -> Unit) -> Unit) -> Unit, run_effect : (EffectDescriptor, ((Msg) -> Unit) -> Unit) -> Unit, start_task : (EffectDescriptor, ((Msg) -> Unit) -> () -> Unit?) -> Unit) -> Unitpub(all) struct Environment {
theme_spec : ThemeSpec
system_scheme : ColorScheme
theme : Theme
scale_factor : Double
text_scale : Double
locale : String
layout_direction : LayoutDirection
accessibility_contrast : AccessibilityContrast
reduced_motion : Bool
content_size_category : ContentSizeCategory
enabled : Bool
} derive(Eq, ToJson, Debug)fn Environment::with_accessibility_contrast(self : Environment, accessibility_contrast : AccessibilityContrast) -> Environmentfn Environment::with_content_size_category(self : Environment, content_size_category : ContentSizeCategory) -> Environmentfn Environment::with_layout_direction(self : Environment, layout_direction : LayoutDirection) -> Environmentpub(all) struct FeedbackTheme {
neutral : ToneTokens
info : ToneTokens
success : ToneTokens
warning : ToneTokens
danger : ToneTokens
radius : Double
padding : Double
} derive(Eq, ToJson, Debug)fn FocusScope::new(items~ : Array[FocusScopeItem], current? : String?, wrap? : Bool, default_action? : String, dismiss_action? : String) -> FocusScopepub(all) struct FontSpec {
families : FontFamilyStack
size : Double
weight : Int
style : FontStyle
} derive(Eq, ToJson, Debug)pub(all) struct KeyboardEvent {
key : String
text : String?
pressed : Bool
repeat : Bool
modifiers : KeyModifiers
} derive(Eq, ToJson, Debug)fn KeyboardEvent::new(key~ : String, pressed? : Bool, text? : String?, repeat? : Bool, modifiers? : KeyModifiers) -> KeyboardEventfn LinearGradientSpec::new(start~ : Point, end~ : Point, start_color~ : Color, end_color~ : Color) -> LinearGradientSpecfn PlatformViewPlacement::new(id~ : String, kind~ : String, frame~ : Rect, clip? : Rect?, properties? : Array[PlatformViewProperty]) -> PlatformViewPlacementfn PlatformViewPlacement::property_or(self : PlatformViewPlacement, key : String, default : String) -> Stringpub(all) struct PointerEvent {
position : Point
phase : PointerPhase
button : Int
wheel_delta : Point
time_ms : Double
modifiers : KeyModifiers
} derive(Eq, ToJson, Debug)fn PointerEvent::new(position~ : Point, phase~ : PointerPhase, button? : Int, wheel_delta? : Point, time_ms? : Double, modifiers? : KeyModifiers) -> PointerEventtype Program[Model, Msg]fn[Model, Msg] Program::new_with_environment(init~ : () -> (Model, Effect[Msg]), update~ : (Model, Msg) -> (Model, Effect[Msg]), view~ : (Model, ViewEnvironment) -> View[Msg], subscriptions? : (Model) -> Subscription[Msg]) -> Program[Model, Msg]fn[Model, Msg] Program::runtime_subscriptions(self : Program[Model, Msg], model : Model) -> Subscription[Msg]fn[Model, Msg] Program::runtime_view(self : Program[Model, Msg], model : Model, environment : ViewEnvironment) -> View[Msg]fn[Model, Msg] Program::simple(init~ : Model, update~ : (Model, Msg) -> Model, view~ : (Model) -> View[Msg], subscriptions? : (Model) -> Subscription[Msg]) -> Program[Model, Msg]fn[Model, Msg] Program::simple_with_environment(init~ : Model, update~ : (Model, Msg) -> Model, view~ : (Model, ViewEnvironment) -> View[Msg], subscriptions? : (Model) -> Subscription[Msg]) -> Program[Model, Msg]fn RadialGradientSpec::new(center~ : Point, radius~ : Double, center_color~ : Color, edge_color~ : Color) -> RadialGradientSpectype SaveableCodec[T]type SaveableStateStorefn[T] SaveableStateStore::get(self : SaveableStateStore, key : String, codec : SaveableCodec[T]) -> T?fn[T] SaveableStateStore::set(self : SaveableStateStore, key : String, value : T, codec : SaveableCodec[T]) -> Unitfn ScrollState::smooth_scroll_to(self : ScrollState, x~ : Double, y~ : Double, duration_ms? : Double) -> Unitpub(all) struct SemanticsNode {
element_id : ElementId
role : SemanticsRole
level : Int?
url : String
label : String
value : String
description : String
state : SemanticsState
actions : Array[SemanticsAction]
focus_order : Int?
frame : Rect
children : Array[SemanticsNode]
} derive(Eq, ToJson, Debug)fn ShaderEffectSpec::new(name~ : String, frame~ : Rect, uniforms? : Array[Double], fallback? : Brush) -> ShaderEffectSpecpub(all) struct ShadowScale {
sm : ShadowStyle
md : ShadowStyle
lg : ShadowStyle
} derive(Eq, ToJson, Debug)fn ShadowSpec::new(rect~ : RoundedRect, color~ : Color, offset? : Point, blur_radius? : Double, spread? : Double) -> ShadowSpecfn ShadowStyle::new(color~ : Color, offset? : Point, blur_radius? : Double, spread? : Double) -> ShadowStylepub struct State[T] {
// private fields
}pub struct StateSubscription {
// private fields
}pub struct Subscription[Msg] {
// private fields
}fn[Msg] Subscription::animation_tick(key~ : String, start~ : ((Msg) -> Unit) -> () -> Unit?, label? : String) -> Subscription[Msg]fn[Msg] Subscription::host_event(key~ : String, start~ : ((Msg) -> Unit) -> () -> Unit?, label? : String) -> Subscription[Msg]fn[Msg] Subscription::listen(key~ : String, start~ : ((Msg) -> Unit) -> () -> Unit?, kind? : String, label? : String) -> Subscription[Msg]fn[Msg, NextMsg] Subscription::map(self : Subscription[Msg], map : (Msg) -> NextMsg) -> Subscription[NextMsg]fn[Msg] Subscription::route_event(key~ : String, start~ : ((Msg) -> Unit) -> () -> Unit?, label? : String) -> Subscription[Msg]fn[Msg] Subscription::run(key~ : String, start~ : ((Msg) -> Unit) -> () -> Unit?, kind? : String, label? : String) -> Subscription[Msg]fn[Msg] Subscription::runtime_sources(self : Subscription[Msg]) -> Array[SubscriptionRuntimeSource[Msg]]fn[Msg] Subscription::runtime_visit(self : Subscription[Msg], none : (Int) -> Unit, batch : (Int, Int) -> Unit, source : (Int, SubscriptionDescriptor) -> Unit) -> Unitfn[Msg] Subscription::service_completion(key~ : String, start~ : ((Msg) -> Unit) -> () -> Unit?, label? : String) -> Subscription[Msg]fn[Msg] Subscription::timer(key~ : String, start~ : ((Msg) -> Unit) -> () -> Unit?, label? : String) -> Subscription[Msg]fn[Msg] Subscription::window_event(key~ : String, start~ : ((Msg) -> Unit) -> () -> Unit?, label? : String) -> Subscription[Msg]pub struct SubscriptionRuntimeSource[Msg] {
// private fields
}fn[Msg] SubscriptionRuntimeSource::descriptor(self : SubscriptionRuntimeSource[Msg]) -> SubscriptionDescriptorfn[Msg] SubscriptionRuntimeSource::start(self : SubscriptionRuntimeSource[Msg], dispatch : (Msg) -> Unit) -> () -> Unit?pub(all) struct SurfaceTheme {
base_padding : Double
raised_padding : Double
overlay_padding : Double
base_radius : Double
raised_radius : Double
overlay_radius : Double
base_shadow : ShadowStyle?
raised_shadow : ShadowStyle?
overlay_shadow : ShadowStyle?
} derive(Eq, ToJson, Debug)pub(all) struct TextControlStateContext {
caret : Int
selection : TextRange?
text_selection_anchor : Int?
composition : String?
composition_cursor : TextRange?
undo_stack : Array[TextHistoryEntryContext]
redo_stack : Array[TextHistoryEntryContext]
} derive(Eq, ToJson, Debug)pub(all) struct TextFieldTheme {
normal : ControlStateTokens
focused : ControlStateTokens
disabled : ControlStateTokens
placeholder : Color
cursor : Color
font : FontSpec
appearance : TextFieldAppearance
} derive(Eq, ToJson, Debug)pub(all) struct TextParagraphLayoutResult {
text : String
size : Size
baseline : Double
lines : Array[TextParagraphLineMetrics]
caret_rects : Array[Rect]
visual_order : TextParagraphVisualOrderMetadata
metadata : TextParagraphLayoutMetadata
} derive(Eq, ToJson, Debug)fn TextParagraphLayoutResult::hit_test(self : TextParagraphLayoutResult, point : Point) -> TextParagraphHitTestResultfn TextParagraphLayoutResult::selection_rects(self : TextParagraphLayoutResult, range : TextRange) -> Array[Rect]pub struct TextSystem {
id : String
measure : (TextLayoutInput) -> TextLayoutResult
paragraph_layout : (TextLayoutInput) -> TextParagraphLayoutResult
register_font_data : (FontFamily, Bytes) -> Unit
}fn TextSystem::layout_paragraph(self : TextSystem, input : TextLayoutInput) -> TextParagraphLayoutResultfn TextSystem::new(id~ : String, measure~ : (TextLayoutInput) -> TextLayoutResult, paragraph_layout? : (TextLayoutInput) -> TextParagraphLayoutResult?, register_font_data? : (FontFamily, Bytes) -> Unit) -> TextSystempub(all) struct Theme {
scheme : ColorScheme
palette : ColorPalette
spacing_scale : SpacingScale
radius_scale : RadiusScale
typography : TypographyScale
shadow_scale : ShadowScale
motion : MotionScale
surfaces : SurfaceScale
components : ComponentThemes
} derive(Eq, ToJson, Debug)pub(all) struct ThemeSpec {
preset : ThemePreset
color_mode : ColorMode
density : ThemeDensity
contrast : AccessibilityContrast
seed : Color?
reduced_motion : Bool
} derive(Eq, ToJson, Debug)pub struct TransitionSample {
progress : Double
style : TransitionStyle
present : Bool
} derive(Eq, ToJson, Debug)pub struct TransitionSpec {
from : TransitionStyle
to : TransitionStyle
duration_ms : Double
easing : Easing
} derive(Eq, ToJson, Debug)fn TransitionSpec::fade(from_opacity? : Double, to_opacity? : Double, duration_ms? : Double, easing? : Easing) -> TransitionSpecfn TransitionSpec::new(from? : TransitionStyle, to? : TransitionStyle, duration_ms? : Double, easing? : Easing) -> TransitionSpecfn TransitionSpec::presence(self : TransitionSpec, present~ : Bool, progress~ : Double, reduced_motion? : Bool) -> TransitionSamplefn TransitionSpec::sample(self : TransitionSpec, progress : Double, reduced_motion? : Bool) -> TransitionSamplefn TransitionSpec::sample_elapsed(self : TransitionSpec, elapsed_ms : Double, reduced_motion? : Bool) -> TransitionSamplefn TransitionSpec::scale(from_scale? : Double, to_scale? : Double, duration_ms? : Double, easing? : Easing) -> TransitionSpecfn TransitionSpec::slide(from_offset~ : Point, to_offset? : Point, duration_ms? : Double, easing? : Easing) -> TransitionSpecfn TransitionStyle::interpolate(self : TransitionStyle, to : TransitionStyle, progress~ : Double, easing? : Easing, reduced_motion? : Bool) -> TransitionStylefn TransitionStyle::new(opacity? : Double, offset? : Point, scale? : Point, foreground? : Color?) -> TransitionStylefn TransitionStyle::with_offset(self : TransitionStyle, dx? : Double, dy? : Double) -> TransitionStylefn TransitionStyle::with_scale(self : TransitionStyle, sx? : Double, sy? : Double) -> TransitionStylepub struct View[Msg] {
// private fields
}fn[Msg] View::node(identity~ : () -> ViewIdentity, revision? : () -> String, paint_revision? : () -> String, children? : () -> Array[View[Msg]], build_child? : (ComponentContext) -> View[Msg]?, child_constraints? : (Constraints) -> Constraints, child_environment? : (Environment) -> Environment, child_style? : (ViewStyle) -> ViewStyle, layout~ : (ViewLayoutContext) -> ViewLayoutResult, paint? : (ViewPaintContext) -> ViewPaintPlan, event? : (ViewEventContext) -> ViewEventResult[Msg], text_input_state? : (ViewPaintContext) -> TextInputState?, text_command? : (ViewEventContext, CommandIntent, String?) -> ViewTextCommandResult[Msg], semantics? : () -> ViewSemanticsInfo, focusable? : () -> Bool, flex_weight? : () -> Double) -> View[Msg]fn[Msg] View::on_drag_with_frame(self : View[Msg], handler : (DragGestureEvent, Rect) -> Msg) -> View[Msg]fn[Msg] View::presence(self : View[Msg], present~ : Bool, spec? : TransitionSpec, progress? : Double, reduced_motion? : Bool) -> View[Msg]fn[Msg] View::text_command(self : View[Msg], context : ViewEventContext, intent : CommandIntent, paste_text? : String?) -> TextCommandResultfn[Msg] View::text_command_result(self : View[Msg], context : ViewEventContext, intent : CommandIntent, paste_text? : String?) -> ViewTextCommandResult[Msg]fn[Msg] View::transition(self : View[Msg], spec? : TransitionSpec, progress? : Double, reduced_motion? : Bool) -> View[Msg]type ViewEnvironmentpub(all) struct ViewEventContext {
frame : Rect
child_frames : Array[Rect]
event : AppEvent
focused : Bool
state : ViewStateContext
text_control : TextControlStateContext
text_system : TextSystem
environment : Environment
style : ViewStyle
now_ms : Double
}pub(all) struct ViewEventResult[Msg] {
changed : Bool
activated : Bool
focused : Bool
captured : Bool
state : ViewStateContext?
text_control : TextControlStateContext?
dirty : ViewDirtyHint
messages : Array[Msg]
} derive(Eq, Debug)pub(all) struct ViewLayoutContext {
constraints : Constraints
child_sizes : Array[Size]
child_flex_weights : Array[Double]
text_system : TextSystem
environment : Environment
style : ViewStyle
}pub(all) struct ViewPaintContext {
frame : Rect
child_frames : Array[Rect]
focused : Bool
state : ViewStateContext
text_control : TextControlStateContext
environment : Environment
style : ViewStyle
text_system : TextSystem
now_ms : Double
}pub(all) struct ViewPaintLayer {
frame : Rect
cache_key : String
content_revision : Int
commands : Array[DrawCommand]
overlay_commands : Array[DrawCommand]
platform_views : Array[PlatformViewPlacement]
} derive(Eq, Debug)fn ViewPaintLayer::new(frame~ : Rect, cache_key~ : String, content_revision~ : Int, commands? : Array[DrawCommand], overlay_commands? : Array[DrawCommand], platform_views? : Array[PlatformViewPlacement]) -> ViewPaintLayerpub(all) struct ViewPaintPlan {
commands : Array[DrawCommand]
child_layers : Array[ViewPaintLayer]
post_commands : Array[DrawCommand]
overlay_commands : Array[DrawCommand]
platform_views : Array[PlatformViewPlacement]
repaint_boundary : Bool
animating : Bool
} derive(Eq, Debug)pub(all) struct ViewSemanticsInfo {
role : SemanticsRole
level : Int?
url : String
label : String
value : String
description : String
actions : Array[SemanticsAction]
disabled : Bool?
selected : Bool?
pressed : Bool?
checked : Bool?
expanded : Bool?
invalid : Bool?
required : Bool?
} derive(Eq, Debug)fn ViewSemanticsInfo::new(role? : SemanticsRole, level? : Int, url? : String, label? : String, value? : String, description? : String, actions? : Array[SemanticsAction], disabled? : Bool, selected? : Bool, pressed? : Bool, checked? : Bool, expanded? : Bool, invalid? : Bool, required? : Bool) -> ViewSemanticsInfopub(all) struct ViewTextCommandResult[Msg] {
result : TextCommandResult
text_control : TextControlStateContext?
messages : Array[Msg]
} derive(Eq, Debug)fn[Msg] ViewTextCommandResult::new(result~ : TextCommandResult, text_control? : TextControlStateContext?, messages? : Array[Msg]) -> ViewTextCommandResult[Msg]pub(all) struct VisualStyle {
background : Brush?
foreground : Color?
border : BorderStyle?
shadow : ShadowStyle?
radius : Double?
opacity : Double?
} derive(Eq, ToJson, Debug)fn animated_value(from~ : Double, to~ : Double, progress~ : Double, easing? : Easing, reduced_motion? : Bool) -> Doublefn cancel_component_effects(effects : Array[ComponentEffect], reason? : ComponentEffectCancelReason) -> Unitfn delete_grapheme_range(boundaries : TextGraphemeBoundaries, caret : Int, before : Int, after : Int) -> TextRangefn move_text_caret(text : String, caret : Int, selection : TextRange?, direction : TextCaretDirection, extend_selection~ : Bool) -> TextCaretMoveResultfn text_input_grapheme_selection(boundaries : TextGraphemeBoundaries, selection : TextRange?) -> TextRange?fn text_next_grapheme_caret_boundary(text : String, caret : Int) -> Intfn text_previous_grapheme_caret_boundary(text : String, caret : Int) -> Int