LING71671/moon-egui/src/composite does not have a README file
fn CommandItem::new(id : String, title : String, category? : String, shortcut? : String) -> CommandItempub struct ContextMenuItem {
id : String
label : String
shortcut : String
disabled : Bool
is_separator : Bool
children : Array[ContextMenuItem]
} derive(Eq, Debug)fn ContextMenuItem::new(id : String, label : String, shortcut? : String, disabled? : Bool, children? : Array[ContextMenuItem]) -> ContextMenuItemfn ContextMenuItem::submenu(id : String, label : String, children : Array[ContextMenuItem], disabled? : Bool) -> ContextMenuItemfn NodeConnection::new(from_node : String, from_port : String, to_node : String, to_port : String) -> NodeConnectionpub struct NodeEditor {
id_salt : String
size : Vec2
nodes : Array[NodeItem]
connections : Array[NodeConnection]
custom_style : NodeEditorStyle?
selected_node : String?
} derive(Eq, Debug)fn NodeEditor::new(id_salt : String, size : Vec2, nodes : Array[NodeItem], connections : Array[NodeConnection]) -> NodeEditorpub struct NodeEditorResponse {
rect : Rect
nodes : Array[NodeItem]
connections : Array[NodeConnection]
selected_node : String?
dragged_node : String?
new_connection : NodeConnection?
changed : Bool
} derive(Eq, Debug)pub struct NodePort {
id : String
name : String
kind : NodePortKind
color : Color?
} derive(Eq, Debug)pub struct Plot {
id_salt : String
series : Array[PlotSeries]
size : Vec2?
show_grid : Bool
show_crosshair : Bool
show_legend : Bool
}pub struct Table {
id_salt : String
size : Vec2
columns : Array[TableColumn]
row_count : Int
render_cell : (UIContext, Int, Int, Rect) -> Unit
row_height : Double
header_height : Double
selected_row : Int
sort_column : String
sort_direction : TableSortDirection
}fn TableColumn::new(id : String, title : String, width : Double, min_width? : Double, sortable? : Bool) -> TableColumnpub struct TableResponse {
sort_changed : Bool
sort_column : String
sort_direction : TableSortDirection
hovered_row : Int?
clicked_row : Int?
} derive(Eq, Debug)fn command_palette(ctx : UIContext, open : Bool, query : String, commands : Array[CommandItem], selected_index? : Int, viewport_size? : Vec2) -> CommandPaletteResponsefn context_menu(ctx : UIContext, id_salt : String, open : Bool, pos : Vec2, content : (UIContext) -> Unit, menu_width? : Double, viewport_size? : Vec2) -> ContextMenuResponsefn context_menu_items(ctx : UIContext, id_salt : String, open : Bool, pos : Vec2, items : Array[ContextMenuItem], menu_width? : Double, viewport_size? : Vec2) -> ContextMenuResponsefn hsv_to_rgb(h : Double, s : Double, v : Double) -> (Int, Int, Int)fn node_editor(ctx : UIContext, id_salt : String, size : Vec2, nodes : Array[NodeItem], connections : Array[NodeConnection], custom_style? : NodeEditorStyle?, selected_node? : String?) -> NodeEditorResponsefn rgb_to_hsv(r : Int, g : Int, b : Int) -> (Double, Double, Double)fn rich_text(ctx : UIContext, id_salt : String, spans : Array[TextSpan], wrap_width? : Double) -> RichTextResponsefn table(ctx : UIContext, id_salt : String, size : Vec2, columns : Array[TableColumn], row_count : Int, render_cell : (UIContext, Int, Int, Rect) -> Unit, row_height? : Double, header_height? : Double, selected_row? : Int, sort_column? : String, sort_direction? : TableSortDirection) -> TableResponseInstall
Download zipHigh-performance, pure MoonBit Immediate-Mode GUI library for WebAssembly, Canvas, and Games.