wzzc-dev/moui/core does not have a README file
pub(all) struct ActionCommand {
intent : CommandIntent
shortcut : KeyboardShortcut?
label : String
enabled : Bool
} derive(Eq, ToJson, Debug)fn ActionCommand::new(intent~ : CommandIntent, label? : String, shortcut? : KeyboardShortcut?, enabled? : Bool) -> ActionCommandfn ActionCommandMap::dispatch_shortcut(self : ActionCommandMap, event : KeyboardEvent) -> CommandIntent?fn ActionCommandMap::find_shortcut(self : ActionCommandMap, event : KeyboardEvent) -> ActionCommand?fn AnimatedColor::new(from~ : Color, to~ : Color, duration_ms? : Double, easing? : Easing) -> AnimatedColorfn AnimatedDouble::new(from~ : Double, to~ : Double, duration_ms? : Double, easing? : Easing) -> AnimatedDoublefn AnimatedPoint::new(from~ : Point, to~ : Point, duration_ms? : Double, easing? : Easing) -> AnimatedPointpub(all) struct AnimationController {
duration_ms : Double
elapsed_ms : Double
status : AnimationStatus
} derive(Eq, ToJson, Debug)pub(all) enum AppEvent {
FrameTick(Frame)
Pointer(PointerEvent)
Keyboard(KeyboardEvent)
TextInput(TextInputEvent)
DragDrop(DragDropEvent)
Resize(Size)
Redraw(RedrawReason)
CloseRequested
} derive(Eq, ToJson, Debug)fn AppRuntime::dispatch_focused_text_command(self : AppRuntime, intent : CommandIntent, paste_text? : String?) -> TextCommandResultfn[Msg] AppRuntime::new_component_view(root~ : (BuildContext) -> View[Msg], size~ : Size, environment? : Environment, on_message? : (Msg) -> Unit?) -> AppRuntimefn[Model, Msg] AppRuntime::new_program(program~ : Program[Model, Msg], size~ : Size, environment? : Environment) -> AppRuntimefn[Msg] AppRuntime::new_view(root~ : View[Msg], size~ : Size, environment? : Environment, on_message? : (Msg) -> Unit?) -> AppRuntimepub(all) struct Binding[T] {
get_value : () -> T
set_value : (T) -> Unit
}pub struct BuildContext {
runtime : RuntimeState
component_id : ElementId
subscriptions : Array[StateSubscription]
effects : Array[ComponentEffect]
old_effects : Array[ComponentEffect]
environment : Environment
}fn BuildContext::on_unmount_with_reason(self : BuildContext, key~ : String, cleanup : (ComponentEffectCancelReason) -> Unit) -> Unitfn BuildContext::on_update(self : BuildContext, key~ : String, deps~ : Array[String], effect : () -> () -> Unit?) -> Unitfn BuildContext::on_update_with_reason(self : BuildContext, key~ : String, deps~ : Array[String], effect : () -> (ComponentEffectCancelReason) -> Unit?) -> Unitfn BuildContext::run_effect_with_reason(self : BuildContext, key~ : String, effect : () -> (ComponentEffectCancelReason) -> Unit?) -> Unitfn[T] BuildContext::save(self : BuildContext, key~ : String, value : T, codec : SaveableCodec[T]) -> Unitfn[T] BuildContext::saveable(self : BuildContext, key~ : String, initial : T, codec : SaveableCodec[T]) -> State[T]fn BuildContext::saveable_string(self : BuildContext, key~ : String, initial : String) -> State[String]pub(all) struct ButtonStyle {
normal : ControlStateStyle
hovered : ControlStateStyle
pressed : ControlStateStyle
disabled : ControlStateStyle
} derive(Eq, ToJson, Debug)pub(all) struct ComponentEffect {
key : String
cleanup : () -> Unit?
cleanup_with_reason : (ComponentEffectCancelReason) -> Unit?
status : ComponentEffectStatus
cancel_reason : ComponentEffectCancelReason?
reused : Bool
}fn ComponentEffect::cancel_with_reason(self : ComponentEffect, reason : ComponentEffectCancelReason) -> Unitfn ComponentEffect::new(key~ : String, cleanup? : () -> Unit?, cleanup_with_reason? : (ComponentEffectCancelReason) -> Unit?) -> ComponentEffectpub(all) struct ControlStateStyle {
foreground : Color
background : Brush
border : BorderStyle?
radius : Double
shadow : ShadowStyle?
} derive(Eq, ToJson, Debug)pub(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(all) struct DerivedState[T] {
get_value : () -> T
subscribe_value : (() -> Unit) -> Array[StateSubscription]
}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?) -> DragDropEventpub(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
PushFilter(FilterEffect)
PopFilter
DrawPath(PathSpec)
DrawShaderEffect(ShaderEffectSpec)
} derive(Eq, ToJson, Debug)pub(all) struct Environment {
theme : Theme
color_scheme : ColorScheme
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 FontSpec {
families : FontFamilyStack
size : Double
weight : Int
style : FontStyle
} derive(Eq, ToJson, Debug)pub(all) struct FormFieldState {
name : String
value : State[String]
validator : (String) -> String?
}fn FormFieldState::new(name~ : String, initial? : String, validator? : (String) -> String?) -> FormFieldStatepub(all) struct FormValidationResult {
valid : Bool
errors : Array[FormFieldError]
} derive(Eq, ToJson, Debug)pub(all) struct GestureArenaMember {
element_id : ElementId
kind : GestureKind
priority : Int
disposition : GestureArenaDisposition
} derive(Eq, ToJson, Debug)fn GestureArenaMember::new(element_id~ : ElementId, kind~ : GestureKind, priority? : Int) -> GestureArenaMemberpub(all) struct GestureArenaResult {
winner : GestureArenaMember?
members : Array[GestureArenaMember]
} 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 PointerEvent::new(position~ : Point, phase~ : PointerPhase, button? : Int, wheel_delta? : Point) -> PointerEventpub(all) struct Program[Model, Msg] {
init : () -> (Model, Effect[Msg])
update : (Model, Msg) -> (Model, Effect[Msg])
view : (Model, ViewEnvironment) -> View[Msg]
}fn[Model, Msg] Program::simple_with_environment(init~ : Model, update~ : (Model, Msg) -> Model, view~ : (Model, ViewEnvironment) -> View[Msg]) -> Program[Model, Msg]pub(all) struct RenderInspectorSnapshot {
command_count : Int
text_count : Int
image_count : Int
clip_depth : Int
open_clip_depth : Int
layer_depth : Int
open_layer_depth : Int
filter_depth : Int
open_filter_depth : Int
path_count : Int
shader_count : Int
unbalanced_pop_count : Int
} derive(Eq, ToJson, Debug)pub(all) struct RichTextBlock {
runs : Array[RichTextRun]
table : RichTextTable?
prefix : String
font : FontSpec?
color : Color?
background : Brush?
border_left : BorderStyle?
inset : Insets
line_height : Double?
corner_radius : Double
rule : Bool
source_range : RichTextSourceRange?
content_range : RichTextSourceRange?
} derive(Eq, ToJson, Debug)fn RichTextBlock::new(runs~ : Array[RichTextRun], table? : RichTextTable?, prefix? : String, font? : FontSpec?, color? : Color?, background? : Brush?, border_left? : BorderStyle?, inset? : Insets, line_height? : Double?, corner_radius? : Double, rule? : Bool, source_range? : RichTextSourceRange?, content_range? : RichTextSourceRange?) -> RichTextBlockfn RichTextInputTransform::new(text~ : String, caret~ : Int, selection? : TextRange?) -> RichTextInputTransformpub(all) struct RichTextRun {
text : String
visual_text : String?
image_source : String?
image_size : Size?
image_fit : ImageFit
font : FontSpec?
color : Color?
background : Brush?
background_radius : Double
decoration : RichTextDecoration?
source_range : RichTextSourceRange?
} derive(Eq, ToJson, Debug)fn RichTextRun::new(text~ : String, visual_text? : String?, image_source? : String?, image_size? : Size?, image_fit? : ImageFit, font? : FontSpec?, color? : Color?, background? : Brush?, background_radius? : Double, decoration? : RichTextDecoration?, source_range? : RichTextSourceRange?) -> RichTextRunpub(all) struct RichTextTableCell {
text : String
header : Bool
align : TextAlign?
source_range : RichTextSourceRange?
} derive(Eq, ToJson, Debug)pub(all) struct RouteLocation {
path : String
query : Array[RouteQueryParam]
} derive(Eq, ToJson, Debug)pub(all) struct RuntimeInspectorSnapshot {
size : Size
dirty_count : Int
needs_rebuild : Bool
needs_layout : Bool
needs_paint : Bool
needs_redraw : Bool
draw_command_count : Int
}type RuntimeStatefn RuntimeState::dispatch_focused_text_command(self : RuntimeState, intent : CommandIntent, paste_text? : String?) -> TextCommandResultpub struct SaveableCodec[T] {
encode : (T) -> String
decode : (String) -> T?
}fn[T] SaveableStateStore::get(self : SaveableStateStore, key : String, codec : SaveableCodec[T]) -> T?fn[T] SaveableStateStore::set(self : SaveableStateStore, key : String, value : T, codec : SaveableCodec[T]) -> Unitpub(all) struct SemanticsInspectorSnapshot {
root_role : SemanticsRole
node_count : Int
focusable_count : Int
action_count : Int
max_depth : Int
} derive(Eq, ToJson, Debug)pub(all) struct SemanticsNode {
element_id : ElementId
role : SemanticsRole
label : String
value : 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(all) struct StateListener {
active : Bool
callback : () -> Unit
}pub(all) struct SurfaceStyle {
brush : Brush
border : BorderStyle?
radius : Double
shadow : ShadowStyle?
padding : Insets
level : SurfaceLevel
} derive(Eq, ToJson, Debug)pub(all) struct TapGestureResult {
next_state : ButtonState
activated : Bool
} derive(Eq, ToJson, Debug)pub(all) struct TextFieldStyle {
normal : ControlStateStyle
focused : ControlStateStyle
disabled : ControlStateStyle
placeholder_color : Color
cursor_color : Color
font : FontSpec
} derive(Eq, ToJson, Debug)pub(all) enum TextInputEvent {
InsertText(String)
CompositionStart
CompositionUpdate(CompositionUpdate)
CompositionEnd(String)
DeleteRange(TextRange)
DeleteSurrounding(Int, Int)
} derive(Eq, ToJson, Debug)pub struct TextSystem {
id : String
measure : (TextLayoutInput) -> TextLayoutResult
register_font_data : (FontFamily, Bytes) -> Unit
}fn TextSystem::new(id~ : String, measure~ : (TextLayoutInput) -> TextLayoutResult, 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
font : FontSpec
foreground : Color
background : Color
accent : Color
spacing : Double
corner_radius : Double
} derive(Eq, ToJson, Debug)pub struct View[Msg] {
// private fields
}fn[Msg] View::button(text~ : String, size~ : Size, font~ : FontSpec, foreground~ : Color, background~ : Brush, hovered_background~ : Brush, pressed_background~ : Brush, border? : BorderStyle?, shadow? : ShadowStyle?, corner_radius? : Double, on_click? : Msg?) -> View[Msg]fn[Msg] View::container(child? : View[Msg]?, size? : Size?, background? : Brush?, border? : BorderStyle?, corner_radius? : Double, shadow? : ShadowStyle?) -> View[Msg]fn[Msg] View::controlled_rich_text_editor(value~ : String, on_input~ : (String) -> Msg, placeholder~ : String, size~ : Size, format~ : (String) -> RichTextDocument, font~ : FontSpec, foreground~ : Color, placeholder_color~ : Color, background~ : Brush, border? : BorderStyle?, focused_border? : BorderStyle?, cursor_color~ : Color, corner_radius? : Double, on_selection_change? : (Int, TextRange?) -> Msg?, on_prefix_click? : (Int) -> Msg?, input_transform? : (String, Int, TextRange?, String) -> RichTextInputTransform??, accepts_tab_input? : Bool) -> View[Msg]fn[Msg] View::controlled_search_bar(query~ : String, on_input~ : (String) -> Msg, placeholder~ : String, font~ : FontSpec, foreground~ : Color, placeholder_color~ : Color, background~ : Brush, border? : BorderStyle?, focused_border? : BorderStyle?, cursor_color~ : Color, corner_radius~ : Double, on_submit? : Msg?, on_clear? : Msg?) -> View[Msg]fn[Msg] View::controlled_text_field(value~ : String, on_input~ : (String) -> Msg, placeholder~ : String, size~ : Size, font~ : FontSpec, foreground~ : Color, placeholder_color~ : Color, background~ : Brush, border? : BorderStyle?, focused_border? : BorderStyle?, cursor_color~ : Color, corner_radius? : Double, on_submit? : Msg?) -> View[Msg]fn[Msg] View::custom_children_layout(children~ : Array[View[Msg]], measure~ : (CustomLayoutContext) -> Size, place~ : (CustomPlacementContext) -> Array[Rect], paint? : (Rect) -> Array[DrawCommand], semantics_role? : SemanticsRole, semantics_label? : String) -> View[Msg]fn[Msg] View::custom_view(measure~ : (Constraints) -> Size, paint~ : (Rect) -> Array[DrawCommand], semantics_role? : SemanticsRole, semantics_label? : String) -> View[Msg]fn[Msg] View::flex(children~ : Array[View[Msg]], axis~ : Axis, spacing? : Double, main_axis_alignment? : MainAxisAlignment, cross_axis_alignment? : CrossAxisAlignment) -> View[Msg]fn[Msg] View::rich_text_editor(value~ : Binding[String], placeholder~ : String, size~ : Size, format~ : (String) -> RichTextDocument, font~ : FontSpec, foreground~ : Color, placeholder_color~ : Color, background~ : Brush, border? : BorderStyle?, focused_border? : BorderStyle?, cursor_color~ : Color, corner_radius? : Double, on_selection_change? : (Int, TextRange?) -> Msg?, on_prefix_click? : (Int) -> Msg?, input_transform? : (String, Int, TextRange?, String) -> RichTextInputTransform??, accepts_tab_input? : Bool) -> View[Msg]fn[Msg] View::search_bar(query~ : Binding[String], placeholder~ : String, font~ : FontSpec, foreground~ : Color, placeholder_color~ : Color, background~ : Brush, border? : BorderStyle?, focused_border? : BorderStyle?, cursor_color~ : Color, corner_radius~ : Double, on_submit? : Msg?, on_clear? : Msg?) -> View[Msg]fn[Msg] View::sheet(content~ : View[Msg], presentation_mode~ : SheetPresentationMode, background~ : Brush, corner_radius~ : Double, shadow? : ShadowStyle?, on_dismiss? : Msg?) -> View[Msg]fn[Msg] View::text_field(value~ : Binding[String], placeholder~ : String, size~ : Size, font~ : FontSpec, foreground~ : Color, placeholder_color~ : Color, background~ : Brush, border? : BorderStyle?, focused_border? : BorderStyle?, cursor_color~ : Color, corner_radius? : Double, on_submit? : Msg?) -> View[Msg]pub(all) struct VisualStyle {
background : Brush?
foreground : Color?
border : BorderStyle?
shadow : ShadowStyle?
radius : Double?
opacity : Double?
} derive(Eq, ToJson, Debug)fn recognize_button_tap(current : ButtonState, inside : Bool, phase : PointerPhase) -> TapGestureResultfn rich_text_document_caret_rect_at_source(document : RichTextDocument, source_caret : Int, content : Rect, base_font : FontSpec, text_system? : TextSystem) -> Rect?