mizchi/tui/core does not have a README file
pub(all) struct BorderChars {
top_left : Char
top_right : Char
bottom_left : Char
bottom_right : Char
horizontal : Char
vertical : Char
}pub(all) struct ClickHandler(() -> Unit)pub(all) struct Color {
r : Int
g : Int
b : Int
a : Double
}pub struct Component {
node : Node
styles : RenderStyleMap
texts : TextContentMap
click_handlers : ClickHandlers
roles : RoleMap
}pub(all) struct RenderStyle {
fg : Color
bg : Color
bold : Bool
underline : Bool
border : BorderChars?
border_fg : Color
}pub(all) enum Role {
Button
Checkbox
Link
Menuitem
Option
Radio
Slider
Switch
Tab
Textbox
Listbox
Menu
Menubar
Radiogroup
Tablist
Tree
Treegrid
Article
Cell
Columnheader
Definition
Directory
Document
Group
Heading
Img
List
Listitem
Row
Rowgroup
Rowheader
Separator
Table
Term
Banner
Complementary
Contentinfo
Form
Main
Navigation
Region
Search
Alert
Log
Marquee
Status
Timer
Alertdialog
Dialog
Custom(String)
} derive(Eq, Debug)fn box(children : Array[Component], id? : String, width? : Dimension, height? : Dimension, min_width? : Dimension, min_height? : Dimension, max_width? : Dimension, max_height? : Dimension, flex_grow? : Double, flex_shrink? : Double, flex_basis? : Dimension, flex_direction? : FlexDirection, flex_wrap? : FlexWrap, justify_content? : Alignment, align_items? : Alignment, align_content? : Alignment, gap? : Double, padding? : Double, padding_x? : Double, padding_y? : Double, margin? : Double, margin_x? : Double, margin_y? : Double, position? : Position, inset_top? : Dimension, inset_right? : Dimension, inset_bottom? : Dimension, inset_left? : Dimension, border? : BorderChars?, border_color? : Color, bg? : Color, fg? : Color, on_click? : () -> Unit?, role? : Role?) -> Componentfn char_display_width(c : Char) -> Intfn normalize_grid_rect_with_inset(abs_x : Double, abs_y : Double, width : Double, height : Double, inset_left : Double, inset_top : Double, inset_right : Double, inset_bottom : Double) -> GridRectfn snap_to_grid(value : Double) -> Intfn string_display_width(s : String) -> Intfn text_box(content : String, id? : String, width? : Dimension, height? : Dimension, min_width? : Dimension, min_height? : Dimension, max_width? : Dimension, max_height? : Dimension, flex_grow? : Double, flex_shrink? : Double, flex_basis? : Dimension, padding? : Double, padding_x? : Double, padding_y? : Double, margin? : Double, margin_x? : Double, margin_y? : Double, border? : BorderChars?, border_color? : Color, bg? : Color, fg? : Color, bold? : Bool, underline? : Bool) -> ComponentTerminal UI library for MoonBit with reactive signals
Dependencies