tycho_ui

    Tycho UI — Flutter-inspired pure-MoonBit declarative UI framework (three trees, Signals, single-pass BoxConstraints, GestureArena, virtualized ListView) over tycho_2d & tycho

    ui
    gui
    flutter
    widgets
    tycho
    Download zip
    Version
    0.11.0
    License
    Apache-2.0
    Last updated
    2 hours ago
    Downloads
    36

    #laplaceliu/tycho_ui

    Part of the Tycho graphics stack — mounted there as the ui/ submodule.

    Flutter-inspired pure-MoonBit declarative UI framework built on laplaceliu/tycho_2d, laplaceliu/tycho, and laplaceliu/tycho_math.

    #Highlights

    • Three Trees + Layer Compositing: Widget → ElementNode (keyed Diff reconciliation) → RenderNode (single-pass BoxConstraints + RepaintBoundary DisplayList cache) → Layer.
    • Fine-Grained Reactivity: Signal[T] / Computed[T] automatically subscribe only the Elements that read them; subscriptions are released when a rebuild stops reading a signal or when an element unmounts, and dirty tracking is scoped to one UiTree (no process-global state).
    • Optional Parameters: widget constructors take native MoonBit optional parameters (width? : Float), so call sites read sized_box(width=390.0, child=card) instead of wrapping every argument in Some(...).
    • Grouped Decoration: container takes decoration : DecoratedProps (fill, shader, border_color/border_width, radius + per-corner tl/tr/br/bl, shadow_dx/shadow_dy/shadow_blur/shadow_color) instead of 13 separate arguments, so a bordered, rounded, shadowed surface is one constructor call: container(decoration=DecoratedProps::new(fill=bg, radius=8.0, border_width=1.5, border_color=line), child=body).
    • Rich Layout & Controls: Row/Column (gap, Expanded, Flexible), Stack/Positioned, Wrap, ThemeData (Dark/Light), filled_button, outlined_button, checkbox, switch_toggle, slider, progress_bar, text_field, frosted_dialog, and virtualized list_view_builder (constant node count for 100,000+ rows).
    • Desktop Input & Testing: GestureArena (tap vs drag disambiguation), MouseRegion hover tracking, AppRunner window loop, and headless WidgetTester.

    Alignment

    pub(all) struct Alignment {
    x : Float
    y : Float
    } derive(Eq,
    Debug
    )

    Alignment::bottom_center

    fn Alignment::bottom_center() -> Alignment

    Alignment::bottom_left

    fn Alignment::bottom_left() -> Alignment

    Alignment::bottom_right

    fn Alignment::bottom_right() -> Alignment

    Alignment::center

    fn Alignment::center() -> Alignment

    Alignment::center_left

    fn Alignment::center_left() -> Alignment

    Alignment::center_right

    fn Alignment::center_right() -> Alignment

    Alignment::new

    fn Alignment::new(x : Float, y : Float) -> Alignment

    Alignment::top_center

    fn Alignment::top_center() -> Alignment

    Alignment::top_left

    fn Alignment::top_left() -> Alignment

    Alignment::top_right

    fn Alignment::top_right() -> Alignment

    AnimationController

    pub struct AnimationController {
    value : Signal[Float]
    // private fields
    }

    AnimationController::animate_to

    fn AnimationController::animate_to(self : AnimationController, target : Float) -> Unit

    AnimationController::is_animating

    fn AnimationController::is_animating(self : AnimationController) -> Bool

    AnimationController::new

    fn AnimationController::new(initial? : Float, duration_sec? : Double, curve? : Curve) -> AnimationController

    AnimationController::tick

    fn AnimationController::tick(self : AnimationController, dt_sec : Double) -> Bool

    AppRunner

    pub struct AppRunner {
    dev :
    Device

    renderer :
    Renderer2D

    tree : UiTree
    arena : GestureArena
    controllers : Array[AnimationController]
    inspector_enabled : Bool
    // private fields
    }

    AppRunner::add_animation

    fn AppRunner::add_animation(self : AppRunner, ctrl : AnimationController) -> Unit

    AppRunner::destroy

    fn AppRunner::destroy(self : AppRunner) -> Unit

    AppRunner::has_active_animations

    fn AppRunner::has_active_animations(self : AppRunner) -> Bool

    AppRunner::pump_frame

    fn AppRunner::pump_frame(self : AppRunner, width : Float, height : Float, dt_sec? : Double) ->
    DisplayList

    AppRunner::run_window

    fn AppRunner::run_window(self : AppRunner, title : String, width : Int, height : Int, dirty_driven? : Bool) -> Unit raise
    RhiError

    AppRunner::set_inspector

    fn AppRunner::set_inspector(self : AppRunner, enabled : Bool) -> Unit

    AppRunner::stats

    fn AppRunner::stats(self : AppRunner) -> FrameStats

    ArenaWinner

    pub(all) enum ArenaWinner {
    Undecided
    Tap
    Drag
    Cancelled
    } derive(Eq,
    Debug
    )

    Axis

    pub(all) enum Axis {
    Horizontal
    Vertical
    } derive(Eq,
    Debug
    )

    BoxConstraints

    pub(all) struct BoxConstraints {
    min_width : Float
    max_width : Float
    min_height : Float
    max_height : Float
    } derive(Eq,
    Debug
    )

    BoxConstraints::constrain

    BoxConstraints::constrain_height

    fn BoxConstraints::constrain_height(self : BoxConstraints, h : Float) -> Float

    BoxConstraints::constrain_width

    fn BoxConstraints::constrain_width(self : BoxConstraints, w : Float) -> Float

    BoxConstraints::deflate

    fn BoxConstraints::deflate(self : BoxConstraints, insets : EdgeInsets) -> BoxConstraints

    BoxConstraints::enforce

    BoxConstraints::expand

    BoxConstraints::has_bounded_height

    fn BoxConstraints::has_bounded_height(self : BoxConstraints) -> Bool

    BoxConstraints::has_bounded_width

    fn BoxConstraints::has_bounded_width(self : BoxConstraints) -> Bool

    BoxConstraints::is_tight

    fn BoxConstraints::is_tight(self : BoxConstraints) -> Bool

    BoxConstraints::loose

    BoxConstraints::loosen

    BoxConstraints::new

    fn BoxConstraints::new(min_width? : Float, max_width? : Float, min_height? : Float, max_height? : Float) -> BoxConstraints

    BoxConstraints::tight

    BoxConstraints::unbounded

    fn BoxConstraints::unbounded() -> BoxConstraints

    BuildContext

    pub struct BuildContext {
    // private fields
    }

    BuildContext::colors

    fn BuildContext::colors(self : BuildContext) -> ColorScheme

    BuildContext::element_id

    fn BuildContext::element_id(self : BuildContext) -> Int

    BuildContext::theme

    fn BuildContext::theme(self : BuildContext) -> ThemeData

    BuildContext::track

    fn[T] BuildContext::track(self : BuildContext, sig : Signal[T]) -> Unit

    ColorScheme

    ColorScheme::dark

    fn ColorScheme::dark() -> ColorScheme

    ColorScheme::light

    fn ColorScheme::light() -> ColorScheme

    Computed

    pub struct Computed[T] {
    // private fields
    }

    Computed::get

    fn[T] Computed::get(self : Computed[T], ctx : BuildContext) -> T

    Computed::new

    fn[T] Computed::new(compute : (BuildContext) -> T) -> Computed[T]

    CrossAxisAlignment

    pub(all) enum CrossAxisAlignment {
    Start
    Center
    End
    Stretch
    } derive(Eq,
    Debug
    )

    Curve

    pub(all) enum Curve {
    Linear
    EaseIn
    EaseOut
    EaseInOut
    CubicBezier(Float, Float, Float, Float)
    Spring(Float, Float, Float)
    }

    Curve::eval

    fn Curve::eval(self : Curve, t : Float) -> Float

    DecoratedProps

    pub(all) struct DecoratedProps {
    fill :
    Color
    ?
    shader :
    Shader2D
    ?
    border_color :
    Color
    ?
    border_width : Float
    tl : Float
    tr : Float
    br : Float
    bl : Float
    shadow_blur : Float
    shadow_dx : Float
    shadow_dy : Float
    shadow_color :
    Color
    ?
    }

    DecoratedProps::new

    fn DecoratedProps::new(fill? :
    Color
    , shader? :
    Shader2D
    , border_color? :
    Color
    , border_width? : Float, radius? : Float, tl? : Float, tr? : Float, br? : Float, bl? : Float, shadow_blur? : Float, shadow_dx? : Float, shadow_dy? : Float, shadow_color? :
    Color
    ) -> DecoratedProps

    EdgeInsets

    pub(all) struct EdgeInsets {
    left : Float
    top : Float
    right : Float
    bottom : Float
    } derive(Eq,
    Debug
    )

    EdgeInsets::all

    fn EdgeInsets::all(v : Float) -> EdgeInsets

    EdgeInsets::horizontal

    fn EdgeInsets::horizontal(self : EdgeInsets) -> Float

    EdgeInsets::only

    fn EdgeInsets::only(left? : Float, top? : Float, right? : Float, bottom? : Float) -> EdgeInsets

    EdgeInsets::symmetric

    fn EdgeInsets::symmetric(horizontal? : Float, vertical? : Float) -> EdgeInsets

    EdgeInsets::vertical

    fn EdgeInsets::vertical(self : EdgeInsets) -> Float

    EdgeInsets::zero

    fn EdgeInsets::zero() -> EdgeInsets

    ElementId

    pub(all) struct ElementId {
    id : Int
    }

    ElementNode

    pub struct ElementNode {
    // private fields
    }

    FlexFit

    pub(all) enum FlexFit {
    Tight
    Loose
    } derive(Eq,
    Debug
    )

    FocusManager

    pub struct FocusManager {
    // private fields
    }

    FocusManager::bind_shortcut

    fn FocusManager::bind_shortcut(self : FocusManager, key : Int, mods : Int, action : () -> Unit) -> Unit

    FocusManager::clear_all

    fn FocusManager::clear_all(self : FocusManager) -> Unit

    FocusManager::dispatch_key

    fn FocusManager::dispatch_key(self : FocusManager, key : Int, mods : Int) -> Bool

    FocusManager::focused_node

    fn FocusManager::focused_node(self : FocusManager) -> FocusNode?

    FocusManager::new

    FocusManager::next_focus

    fn FocusManager::next_focus(self : FocusManager) -> Unit

    FocusManager::prev_focus

    fn FocusManager::prev_focus(self : FocusManager) -> Unit

    FocusManager::register

    fn FocusManager::register(self : FocusManager, node : FocusNode) -> Unit

    FocusManager::request_focus

    fn FocusManager::request_focus(self : FocusManager, node : FocusNode) -> Unit

    FocusManager::unfocus

    fn FocusManager::unfocus(self : FocusManager) -> Unit

    FocusManager::unregister

    fn FocusManager::unregister(self : FocusManager, id : Int) -> Unit

    FocusNode

    pub struct FocusNode {
    id : Int
    focused : Signal[Bool]
    can_request_focus : Bool
    on_key : (Int, Int) -> Bool?
    }

    FocusNode::is_focused

    fn FocusNode::is_focused(self : FocusNode, ctx : BuildContext) -> Bool

    FocusNode::new

    fn FocusNode::new(can_request_focus? : Bool, on_key? : (Int, Int) -> Bool) -> FocusNode

    FrameStats

    pub(all) struct FrameStats {
    build_ms : Double
    layout_ms : Double
    paint_ms : Double
    gpu_ms : Double
    element_count : Int
    render_count : Int
    }

    GestureArena

    pub struct GestureArena {
    // private fields
    }

    GestureArena::desired_cursor

    GestureArena::handle_down

    fn GestureArena::handle_down(self : GestureArena, pointer : Int, pos :
    Point
    , hits : Array[HitTestEntry]) -> Unit

    GestureArena::handle_move

    fn GestureArena::handle_move(self : GestureArena, pointer : Int, pos :
    Point
    ) -> Unit

    GestureArena::handle_scroll

    fn GestureArena::handle_scroll(_self : GestureArena, hits : Array[HitTestEntry], dx : Float, dy : Float) -> Unit

    GestureArena::handle_up

    fn GestureArena::handle_up(self : GestureArena, pointer : Int, _pos :
    Point
    , still_inside_tap : Bool) -> Unit

    GestureArena::new

    GestureArena::update_hover

    fn GestureArena::update_hover(self : GestureArena, hits : Array[HitTestEntry]) -> Unit

    GestureArena::winner

    fn GestureArena::winner(self : GestureArena) -> ArenaWinner

    GestureCallbacks

    pub(all) struct GestureCallbacks {
    on_tap : () -> Unit?
    on_drag_start : (
    Point
    ) -> Unit?
    on_drag_update : (
    Point
    ,
    Point
    ) -> Unit?
    on_drag_end : () -> Unit?
    on_scroll : (Float, Float) -> Unit?
    on_mouse_enter : () -> Unit?
    on_mouse_exit : () -> Unit?
    on_hover : (
    Point
    ) -> Unit?
    cursor :
    CursorShape
    ?
    }

    GestureCallbacks::empty

    HitTestEntry

    pub(all) struct HitTestEntry {
    node_id : Int
    local_pos :
    Point

    callbacks : GestureCallbacks
    }

    IconKind

    pub(all) enum IconKind {
    Check
    Close
    Add
    Search
    Menu
    ArrowBack
    ArrowForward
    ChevronDown
    Star
    Settings
    Info
    Warning
    }

    Key

    pub(all) enum Key {
    IntKey(Int)
    StrKey(String)
    } derive(Eq,
    Debug
    )

    KeyEvent

    pub(all) struct KeyEvent {
    key : Int
    mods : Int
    pressed : Bool
    }

    Layer

    Layer::emit_to_canvas

    fn Layer::emit_to_canvas(self : Layer, canvas :
    Canvas
    ) -> Unit

    Layer::to_display_list

    MainAxisAlignment

    pub(all) enum MainAxisAlignment {
    Start
    Center
    End
    SpaceBetween
    SpaceAround
    SpaceEvenly
    } derive(Eq,
    Debug
    )

    MainAxisSize

    pub(all) enum MainAxisSize {
    Min
    Max
    } derive(Eq,
    Debug
    )

    pub(all) struct MenuItem {
    label : String
    icon : IconKind?
    on_selected : () -> Unit
    }

    fn MenuItem::new(label : String, on_selected : () -> Unit, icon? : IconKind) -> MenuItem

    pub struct NavigatorController {
    stack : Signal[Array[RouteEntry]]
    transition : AnimationController
    }

    fn NavigatorController::can_pop(self : NavigatorController) -> Bool

    fn NavigatorController::current_name(self : NavigatorController) -> String

    fn NavigatorController::new(initial_name : String, initial_builder : (BuildContext) -> Widget) -> NavigatorController

    fn NavigatorController::push(self : NavigatorController, name : String, route_builder : (BuildContext) -> Widget) -> Unit

    fn NavigatorController::replace(self : NavigatorController, name : String, route_builder : (BuildContext) -> Widget) -> Unit

    OverlayController

    pub struct OverlayController {
    entries : Signal[Array[OverlayEntry]]
    // private fields
    }

    OverlayController::clear

    fn OverlayController::clear(self : OverlayController) -> Unit

    OverlayController::insert

    fn OverlayController::insert(self : OverlayController, entry_builder : (BuildContext) -> Widget) -> Int

    OverlayController::new

    OverlayController::remove

    fn OverlayController::remove(self : OverlayController, id : Int) -> Unit

    OverlayEntry

    pub(all) struct OverlayEntry {
    id : Int
    builder : (BuildContext) -> Widget
    }

    PointerEvent

    pub(all) enum PointerEvent {
    Down(Int,
    Point
    , Int)
    Move(Int,
    Point
    )
    Up(Int,
    Point
    , Int)
    Scroll(
    Point
    , Float, Float)
    }

    RenderNode

    pub struct RenderNode {
    // private fields
    }

    RenderNode::build_layer

    fn RenderNode::build_layer(self : RenderNode) -> Layer

    RenderNode::build_semantics

    fn RenderNode::build_semantics(self : RenderNode, origin? :
    Point
    ) -> SemanticsNode

    RenderNode::count_nodes

    fn RenderNode::count_nodes(self : RenderNode) -> Int

    RenderNode::debug_draw_bounds

    fn RenderNode::debug_draw_bounds(self : RenderNode, canvas :
    Canvas
    , origin? :
    Point
    , depth? : Int) -> Unit

    RenderNode::hit_test

    fn RenderNode::hit_test(self : RenderNode, local_pos :
    Point
    , out : Array[HitTestEntry]) -> Bool

    RenderNode::layout

    RichSpan

    pub(all) struct RichSpan {
    text : String
    size : Float?
    color :
    Color
    ?
    bold : Bool
    italic : Bool
    underline : Bool
    }

    RichSpan::new

    fn RichSpan::new(text : String, size? : Float, color? :
    Color
    , bold? : Bool, italic? : Bool, underline? : Bool) -> RichSpan

    RouteEntry

    pub(all) struct RouteEntry {
    name : String
    builder : (BuildContext) -> Widget
    }

    ScrollController

    pub struct ScrollController {
    offset : Signal[Float]
    // private fields
    }

    ScrollController::jump_to

    fn ScrollController::jump_to(self : ScrollController, offset : Float) -> Unit

    ScrollController::new

    fn ScrollController::new(initial_offset? : Float) -> ScrollController

    ScrollController::scroll_by

    fn ScrollController::scroll_by(self : ScrollController, delta : Float) -> Unit

    SemanticsNode

    pub(all) struct SemanticsNode {
    id : Int
    role : SemanticsRole
    label : String
    bounds :
    Rect

    focused : Bool
    children : Array[SemanticsNode]
    }

    SemanticsRole

    pub(all) enum SemanticsRole {
    Generic
    Button
    TextField
    Text
    Image
    List
    } derive(Eq,
    Debug
    )

    ShortcutBinding

    pub(all) struct ShortcutBinding {
    key : Int
    mods : Int
    action : () -> Unit
    }

    Signal

    pub struct Signal[T] {
    // private fields
    }

    Signal::get

    fn[T] Signal::get(self : Signal[T], ctx : BuildContext) -> T

    Reads the value and registers a dependency on the element described by ctx. The subscription is tracked by the owning UiTree, which releases it when the element is rebuilt without reading the signal or when the element unmounts.

    Signal::id

    fn[T] Signal::id(self : Signal[T]) -> Int

    Signal::new

    fn[T] Signal::new(initial : T) -> Signal[T]

    Signal::on_change

    fn[T] Signal::on_change(self : Signal[T], f : () -> Unit) -> Unit

    Signal::peek

    fn[T] Signal::peek(self : Signal[T]) -> T

    Signal::set

    fn[T] Signal::set(self : Signal[T], value : T) -> Unit

    Signal::subscribe_element

    fn[T] Signal::subscribe_element(self : Signal[T], elem_id : Int, notify : (Int) -> Unit) -> Unit

    Signal::subscriber_count

    fn[T] Signal::subscriber_count(self : Signal[T]) -> Int

    Signal::unsubscribe_element

    fn[T] Signal::unsubscribe_element(self : Signal[T], elem_id : Int) -> Unit

    Signal::update

    fn[T] Signal::update(self : Signal[T], f : (T) -> T) -> Unit

    SignalAttachment

    pub struct SignalAttachment {
    // private fields
    }

    A cleanup handle owned by an ElementNode. Running drop removes the element from the signal's subscriber list; signal_id lets the element diff rebuilds without keeping duplicate subscriptions.

    SignalAttachment::signal_id

    fn SignalAttachment::signal_id(self : SignalAttachment) -> Int

    TextController

    pub struct TextController {
    text : Signal[String]
    cursor : Signal[Int]
    sel_anchor : Signal[Int]
    focused : Signal[Bool]
    preedit : Signal[String]
    multiline : Bool
    max_lines : Int
    blink_phase : Double
    // private fields
    }

    TextController::backspace

    fn TextController::backspace(self : TextController) -> Unit

    TextController::clear_preedit

    fn TextController::clear_preedit(self : TextController) -> Unit

    TextController::commit_preedit

    fn TextController::commit_preedit(self : TextController) -> Unit

    TextController::delete_forward

    fn TextController::delete_forward(self : TextController) -> Unit

    TextController::delete_selection

    fn TextController::delete_selection(self : TextController) -> Bool

    TextController::display_text

    fn TextController::display_text(self : TextController) -> String

    TextController::insert_char

    fn TextController::insert_char(self : TextController, ch : Char) -> Unit

    TextController::insert_text

    fn TextController::insert_text(self : TextController, txt : String) -> Unit

    TextController::move_end

    fn TextController::move_end(self : TextController, select? : Bool) -> Unit

    TextController::move_home

    fn TextController::move_home(self : TextController, select? : Bool) -> Unit

    TextController::move_left

    fn TextController::move_left(self : TextController, select? : Bool) -> Unit

    TextController::move_right

    fn TextController::move_right(self : TextController, select? : Bool) -> Unit

    TextController::new

    fn TextController::new(initial? : String, multiline? : Bool, max_lines? : Int) -> TextController

    TextController::redo

    fn TextController::redo(self : TextController) -> Unit

    TextController::select_all

    fn TextController::select_all(self : TextController) -> Unit

    TextController::select_word_at

    fn TextController::select_word_at(self : TextController, pos : Int) -> Unit

    TextController::selected_text

    fn TextController::selected_text(self : TextController) -> String

    TextController::selection_range

    fn TextController::selection_range(self : TextController) -> (Int, Int)

    TextController::set_preedit

    fn TextController::set_preedit(self : TextController, txt : String) -> Unit

    TextController::undo

    fn TextController::undo(self : TextController) -> Unit

    ThemeData

    pub(all) struct ThemeData {
    colors : ColorScheme
    font :
    FontFace

    radius_sm : Float
    radius_md : Float
    radius_lg : Float
    }

    UiTree

    pub struct UiTree {
    focus : FocusManager
    // private fields
    }

    UiTree::build_display_list

    UiTree::build_semantics_tree

    fn UiTree::build_semantics_tree(self : UiTree) -> SemanticsNode?

    UiTree::clear_text_focus_except

    fn UiTree::clear_text_focus_except(self : UiTree, keep : TextController?) -> Unit

    UiTree::cycle_text_focus

    fn UiTree::cycle_text_focus(self : UiTree, reverse : Bool) -> Unit

    UiTree::debug_paint_inspector

    fn UiTree::debug_paint_inspector(self : UiTree, canvas :
    Canvas
    ) -> Unit

    UiTree::element_count

    fn UiTree::element_count(self : UiTree) -> Int

    UiTree::flush_builds

    fn UiTree::flush_builds(self : UiTree) -> Unit

    UiTree::focused_text_controller

    fn UiTree::focused_text_controller(self : UiTree) -> TextController?

    UiTree::has_dirty

    fn UiTree::has_dirty(self : UiTree) -> Bool

    UiTree::has_pending_dirty

    fn UiTree::has_pending_dirty(self : UiTree) -> Bool

    UiTree::hit_test

    UiTree::layout_root

    fn UiTree::layout_root(self : UiTree, width : Float, height : Float) -> Unit

    UiTree::mark_dirty

    fn UiTree::mark_dirty(self : UiTree, elem_id : Int) -> Unit

    UiTree::mount_root

    fn UiTree::mount_root(self : UiTree, w : Widget) -> Unit

    UiTree::new

    fn UiTree::new(theme? : ThemeData) -> UiTree

    UiTree::render_count

    fn UiTree::render_count(self : UiTree) -> Int

    UiTree::render_root

    fn UiTree::render_root(self : UiTree) -> RenderNode?

    UiTree::sync_list_viewports

    fn UiTree::sync_list_viewports(self : UiTree) -> Bool

    Widget

    pub struct Widget {
    // private fields
    }

    WidgetTester

    pub struct WidgetTester {
    tree : UiTree
    arena : GestureArena
    width : Float
    height : Float
    }

    WidgetTester::element_count

    fn WidgetTester::element_count(self : WidgetTester) -> Int

    WidgetTester::move_mouse

    fn WidgetTester::move_mouse(self : WidgetTester, x : Float, y : Float) -> Unit

    WidgetTester::new

    fn WidgetTester::new(root : Widget, width? : Float, height? : Float, theme? : ThemeData) -> WidgetTester

    WidgetTester::pump_frame

    WidgetTester::render_to_texture

    WidgetTester::scroll

    fn WidgetTester::scroll(self : WidgetTester, x : Float, y : Float, dx : Float, dy : Float) -> Unit

    WidgetTester::send_key

    fn WidgetTester::send_key(self : WidgetTester, key :
    KeyCode
    , shift? : Bool, ctrl? : Bool) -> Unit

    WidgetTester::send_text

    fn WidgetTester::send_text(self : WidgetTester, text : String) -> Unit

    WidgetTester::tap

    fn WidgetTester::tap(self : WidgetTester, x : Float, y : Float) -> Unit

    INF

    let INF : Float

    align

    fn align(key? : Key, alignment : Alignment, child : Widget) -> Widget

    animated_container

    fn animated_container(key? : Key, width? : Float, height? : Float, color? :
    Color
    , radius? : Float, pad? : EdgeInsets, duration_sec? : Double, curve? : Curve, child? : Widget) -> Widget

    animated_opacity

    fn animated_opacity(key? : Key, target : Float, duration_sec? : Double, curve? : Curve, child : Widget) -> Widget

    animated_padding

    fn animated_padding(key? : Key, pad : EdgeInsets, duration_sec? : Double, curve? : Curve, child : Widget) -> Widget

    backdrop_filter

    fn backdrop_filter(key? : Key, blur_sigma? : Float, radius? : Float, tint? :
    Color
    , child : Widget) -> Widget

    badge

    fn badge(key? : Key, label? : String, color? :
    Color
    , child : Widget) -> Widget

    builder

    fn builder(key? : Key, tag? : Int, build : (BuildContext) -> Widget) -> Widget

    card

    fn card(key? : Key, pad? : EdgeInsets, radius? : Float, color? :
    Color
    , border_color? :
    Color
    , shadow_blur? : Float, child : Widget) -> Widget

    center

    fn center(key? : Key, child : Widget) -> Widget

    checkbox

    fn checkbox(key? : Key, checked : Signal[Bool], label? : String, on_changed? : (Bool) -> Unit) -> Widget

    clip_rect

    fn clip_rect(key? : Key, child : Widget) -> Widget

    clip_rrect

    fn clip_rrect(key? : Key, radius : Float, child : Widget) -> Widget

    column

    fn column(key? : Key, main_axis? : MainAxisAlignment, cross_axis? : CrossAxisAlignment, main_size? : MainAxisSize, gap? : Float, children : Array[Widget]) -> Widget

    constrained_box

    fn constrained_box(key? : Key, constraints : BoxConstraints, child : Widget) -> Widget

    container

    fn container(key? : Key, width? : Float, height? : Float, pad? : EdgeInsets, decoration? : DecoratedProps, alignment? : Alignment, child? : Widget) -> Widget

    context_menu

    fn context_menu(key? : Key, is_open : Signal[Bool], pos : Signal[
    Point
    ], items : Array[MenuItem], child : Widget) -> Widget

    custom_paint

    decorated_box

    fn decorated_box(key? : Key, decoration : DecoratedProps, child? : Widget) -> Widget

    divider

    fn divider(key? : Key, height? : Float, color? :
    Color
    ) -> Widget

    expanded

    fn expanded(key? : Key, flex? : Int, child : Widget) -> Widget

    filled_button

    fn filled_button(key? : Key, label : String, on_pressed : () -> Unit, color? :
    Color
    , pad? : EdgeInsets) -> Widget

    flexible

    fn flexible(key? : Key, flex? : Int, fit? : FlexFit, child : Widget) -> Widget

    frosted_dialog

    fn frosted_dialog(key? : Key, title : String, body : Widget, on_close : () -> Unit, width? : Float) -> Widget

    gesture_detector

    fn gesture_detector(key? : Key, on_tap? : () -> Unit, on_drag_start? : (
    Point
    ) -> Unit, on_drag_update? : (
    Point
    ,
    Point
    ) -> Unit, on_drag_end? : () -> Unit, on_scroll? : (Float, Float) -> Unit, child : Widget) -> Widget

    has_active_implicit_animations

    fn has_active_implicit_animations() -> Bool

    icon

    fn icon(key? : Key, kind : IconKind, size? : Float, color? :
    Color
    ) -> Widget

    icon_button

    fn icon_button(key? : Key, kind : IconKind, on_pressed : () -> Unit, size? : Float, color? :
    Color
    ) -> Widget

    image_widget

    fn image_widget(key? : Key, img :
    Image2D
    , width : Float, height : Float) -> Widget

    layout_inspector

    fn layout_inspector(key? : Key, enabled : Signal[Bool], child : Widget) -> Widget

    lerp_edge_insets

    fn lerp_edge_insets(a : EdgeInsets, b : EdgeInsets, t : Float) -> EdgeInsets

    lerp_float

    fn lerp_float(a : Float, b : Float, t : Float) -> Float

    list_view_builder

    fn list_view_builder(key? : Key, item_count : Int, item_extent : Float, controller : ScrollController, item_builder : (BuildContext, Int) -> Widget) -> Widget

    mouse_region

    fn mouse_region(key? : Key, on_enter? : () -> Unit, on_exit? : () -> Unit, on_hover? : (
    Point
    ) -> Unit, cursor? :
    CursorShape
    , child : Widget) -> Widget

    fn navigator(key? : Key, controller : NavigatorController) -> Widget

    opacity

    fn opacity(key? : Key, value : Float, child : Widget) -> Widget

    outlined_button

    fn outlined_button(key? : Key, label : String, on_pressed : () -> Unit, pad? : EdgeInsets) -> Widget

    overlay

    fn overlay(key? : Key, controller : OverlayController, child : Widget) -> Widget

    padding

    fn padding(key? : Key, insets : EdgeInsets, child : Widget) -> Widget

    performance_overlay

    fn performance_overlay(stats : FrameStats) -> Widget

    fn popup_menu(key? : Key, is_open : Signal[Bool], items : Array[MenuItem], anchor : Widget) -> Widget

    positioned

    fn positioned(key? : Key, left? : Float, top? : Float, right? : Float, bottom? : Float, width? : Float, height? : Float, child : Widget) -> Widget

    progress_bar

    fn progress_bar(key? : Key, value : Float, width? : Float, height? : Float, color? :
    Color
    ) -> Widget

    radio

    fn[T : Eq] radio(key? : Key, value : T, group_value : Signal[T], label? : String, on_changed? : (T) -> Unit) -> Widget

    register_implicit_controller

    fn register_implicit_controller(ctrl : AnimationController) -> Unit

    repaint_boundary

    fn repaint_boundary(key? : Key, child : Widget) -> Widget

    rich_text

    fn rich_text(key? : Key, spans : Array[RichSpan], align? :
    TextAlign
    , max_lines? : Int, ellipsis? : String, max_width? : Float) -> Widget

    row

    fn row(key? : Key, main_axis? : MainAxisAlignment, cross_axis? : CrossAxisAlignment, main_size? : MainAxisSize, gap? : Float, children : Array[Widget]) -> Widget

    scrollbar

    fn scrollbar(key? : Key, controller : ScrollController, thickness? : Float, child : Widget) -> Widget

    single_child_scroll_view

    fn single_child_scroll_view(key? : Key, controller? : ScrollController, direction? : Axis, child : Widget) -> Widget

    sized_box

    fn sized_box(key? : Key, width? : Float, height? : Float, child? : Widget) -> Widget

    slider

    fn slider(key? : Key, value : Signal[Float], width? : Float) -> Widget

    stack

    fn stack(key? : Key, alignment? : Alignment, children : Array[Widget]) -> Widget

    switch_toggle

    fn switch_toggle(key? : Key, value : Signal[Bool], label? : String, on_changed? : (Bool) -> Unit) -> Widget

    text

    fn text(key? : Key, content : String, size? : Float, color? :
    Color
    , font? :
    FontFace
    , align? :
    TextAlign
    , max_lines? : Int, ellipsis? : String) -> Widget

    text_button

    fn text_button(key? : Key, label : String, on_pressed : () -> Unit, color? :
    Color
    , pad? : EdgeInsets) -> Widget

    text_field

    fn text_field(key? : Key, controller : TextController, placeholder? : String, width? : Float, font_size? : Float) -> Widget

    theme_provider

    fn theme_provider(key? : Key, theme : ThemeData, child : Widget) -> Widget

    tick_implicit_animations

    fn tick_implicit_animations(dt_sec : Double) -> Bool

    tooltip

    fn tooltip(key? : Key, message : String, child : Widget) -> Widget

    transform

    fn transform(key? : Key, matrix :
    Matrix3
    , child : Widget) -> Widget

    wrap

    fn wrap(key? : Key, spacing? : Float, run_spacing? : Float, children : Array[Widget]) -> Widget