LING71671/moon-egui/src/core does not have a README file
pub struct InputState {
mouse_pos : Vec2
mouse_prev_pos : Vec2
mouse_delta : Vec2
mouse_initialized : Bool
mouse_down : Bool
mouse_pressed : Bool
mouse_released : Bool
mouse_secondary_down : Bool
mouse_secondary_pressed : Bool
mouse_secondary_released : Bool
scroll_delta : Vec2
dt : Double
keys_down : Array[Key]
keys_pressed : Array[Key]
keys_released : Array[Key]
consumed_keys : Array[Key]
text_input : String
modifiers : Modifiers
events : Array[Event]
} derive(Default, Eq, Debug)pub struct LayoutScope {
dir : LayoutDirection
start_x : Double
start_y : Double
max_cross_size : Double
current_row_h : Double
wrap_width : Double
} derive(Eq, Debug)pub struct Theme {
name : String
bg_app : Color
bg_window : Color
bg_surface : Color
bg_subtle : Color
bg_hover : Color
bg_active : Color
bg_inverse : Color
border_muted : Color
border_default : Color
border_strong : Color
border_focus : Color
text_primary : Color
text_strong : Color
text_body : Color
text_secondary : Color
text_muted : Color
text_disabled : Color
text_inverse : Color
accent_primary : Color
accent_hover : Color
accent_pressed : Color
accent_deep : Color
accent_soft : Color
accent_light : Color
danger : Color
warning : Color
success : Color
shadow : Color
} derive(Eq, Debug)pub struct UIContext {
input : InputState
id_stack : IdStack
layout : LayoutEngine
focus : FocusManager
layers : LayerManager
windows : WindowManager
memory : Memory
style : WidgetStyle
theme : Theme
cursor_icon : String
time : Double
frame_counter : Int
last_caret_activity : Double
text_measure_cache : HashMap[(String, Int), Double]
} derive(Eq, Debug)pub struct WidgetStyle {
scale : Double
elevation : Double
control_h_sm : Double
control_h_md : Double
control_h_lg : Double
font_xs : Double
font_sm : Double
font_small : Double
font_normal : Double
font_large : Double
font_xl : Double
spacing_xs : Double
spacing_sm : Double
spacing_md : Double
spacing_lg : Double
spacing_xl : Double
item_spacing : Vec2
radius_xs : Double
radius_sm : Double
radius_md : Double
radius_lg : Double
radius_xl : Double
caret_blink_interval : Double
} derive(Eq, Debug)fn delete_next_char(text : String, pos : Int) -> Stringfn delete_prev_char(text : String, pos : Int) -> (String, Int)fn is_cjk_char(code : Int) -> Boolfn is_cjk_closing_punct(code : Int) -> Boolfn is_leading_surrogate(code : Int) -> Boolfn is_trailing_surrogate(code : Int) -> Boolfn next_char_boundary(text : String, pos : Int) -> Intfn prev_char_boundary(text : String, pos : Int) -> Intfn string_slice(s : String, start : Int, end : Int) -> StringInstall
Download zipHigh-performance, pure MoonBit Immediate-Mode GUI library for WebAssembly, Canvas, and Games.