wzzc-dev/moui/backend/common/input does not have a README file
fn InputState::focus_event(self : InputState, focused~ : Bool, pointer_cancel_position? : Point?) -> Event?fn InputState::keyboard_event(self : InputState, key~ : String, text? : String?, pressed? : Bool, repeat? : Bool) -> Event?fn InputState::new(focused? : Bool, modifiers? : KeyModifiers, contract? : HostInputContract) -> InputStatefn PlatformSurfaceLifecycle::not_equal(x : PlatformSurfaceLifecycle, y : PlatformSurfaceLifecycle) -> Boolfn SurfaceState::new(metrics~ : SurfaceMetrics, owns_surface? : Bool, can_reconfigure? : Bool) -> SurfaceStatepub(all) struct TextInputImeRequestDiagnostics {
focused : Bool
text_length : Int
text_utf8_length : Int
cursor : Int
anchor : Int
cursor_utf8 : Int
anchor_utf8 : Int
cursor_is_grapheme_boundary : Bool
anchor_is_grapheme_boundary : Bool
candidate_anchor : Rect
has_surrounding_text : Bool
surrounding_text_utf8_length : Int
surrounding_text : String?
} derive(Eq, ToJson, Debug)fn TextInputImeRequestDiagnostics::not_equal(x : TextInputImeRequestDiagnostics, y : TextInputImeRequestDiagnostics) -> Boolpub(all) struct TextInputSession {
enabled : Bool
last_request : ImeRequestData?
last_capabilities : ImeCapabilities?
last_diagnostics : TextInputImeRequestDiagnostics?
last_state : TextInputImeStateKey?
}fn TextInputSession::sync(self : TextInputSession, state : TextInputState) -> TextInputSessionActionpub(all) enum TextInputSessionAction {
NoImeChange
EnableIme(ImeRequest)
UpdateIme(ImeRequest)
DisableIme(ImeRequest)
} derive(Eq, Debug)fn TextInputSessionAction::not_equal(x : TextInputSessionAction, y : TextInputSessionAction) -> Boolpub(all) enum TransformedWindowEvent {
DispatchHostEvent(Event)
WindowRedrawRequired
CloseRequested
PlatformSpecific
}pub struct WindowInputState {
// private fields
}fn WindowInputState::publish(self : WindowInputState, window_id : WindowId, event : Event) -> HostPlatformEventPublishResult?fn WindowInputState::sync(self : WindowInputState, state : TextInputState) -> TextInputSessionActionfn transform_cross_platform_event(event : WindowEvent, scale_factor~ : Double, surface_size? : PhysicalSize?) -> TransformedWindowEventfn window_event_to_host_with_modifiers(event : WindowEvent, last_pointer : Point, modifiers : KeyModifiers, scale_factor? : Double, blur_to_cancel? : Bool) -> Event?Install
Download zipMoUI is a multi-platform MoonBit GUI framework
Dependencies