wzzc-dev/moui/backend does not have a README file
pub(all) enum Event {
Resized(SurfaceMetrics)
Pointer(PointerEvent)
Scroll(HostScrollEvent)
Focus(HostFocusEvent)
Keyboard(KeyboardEvent)
TextInput(TextInputEvent)
DragDrop(DragDropEvent)
ThemeChanged(ColorScheme)
Command(CommandIntent)
RedrawRequested
CloseRequested
} derive(Eq, ToJson, Debug)pub(all) struct HostAppInfo {
backend : HostBackendKind
uses_shared_event_model : Bool
uses_shared_surface_model : Bool
uses_shared_input_model : Bool
description : String
} derive(Eq, ToJson, Debug)fn HostAppInfo::new(backend~ : HostBackendKind, description? : String, uses_shared_event_model? : Bool, uses_shared_surface_model? : Bool, uses_shared_input_model? : Bool) -> HostAppInfopub(all) struct HostApplicationMenu {
title : String
items : Array[HostApplicationMenuItem]
placement : HostApplicationMenuPlacement
} derive(Eq, ToJson, Debug)fn HostApplicationMenu::new(title~ : String, items~ : Array[HostApplicationMenuItem], placement? : HostApplicationMenuPlacement) -> HostApplicationMenufn HostApplicationMenuItem::new(title~ : String, action_id~ : Int, key_equivalent? : String, key_modifier_mask? : Int, separator? : Bool, enabled? : Bool) -> HostApplicationMenuItemfn HostApplicationMenuItem::not_equal(x : HostApplicationMenuItem, y : HostApplicationMenuItem) -> Boolfn HostApplicationMenuPlacement::equal(HostApplicationMenuPlacement, HostApplicationMenuPlacement) -> Boolfn HostApplicationMenuPlacement::not_equal(x : HostApplicationMenuPlacement, y : HostApplicationMenuPlacement) -> Boolfn HostBinaryFileDiagnostic::not_equal(x : HostBinaryFileDiagnostic, y : HostBinaryFileDiagnostic) -> Boolpub(all) struct HostCapabilitySummary {
backend : HostBackendKind
label : String
services : HostServiceCapabilities
input : HostInputCapabilities
window_lifecycle : Bool
multi_window : Bool
text_input_available : Bool
ime_available : Bool
drag_drop_available : Bool
async_services : Bool
native_accessibility_available : Bool
web_view_available : Bool
host_modal_available : Bool
web_view_description : String
description : String
} derive(Eq, ToJson, Debug)fn HostCapabilitySummary::from_contracts(info~ : HostAppInfo, services~ : HostServiceCapabilities, input~ : HostInputCapabilities, label? : String, window_lifecycle? : Bool, multi_window? : Bool, text_input_available? : Bool, ime_available? : Bool, drag_drop_available? : Bool, async_services? : Bool, native_accessibility_available? : Bool, web_view_available? : Bool, host_modal_available? : Bool, web_view_description? : String, description? : String) -> HostCapabilitySummaryfn HostCapabilitySummary::new(backend~ : HostBackendKind, label? : String, services? : HostServiceCapabilities, input? : HostInputCapabilities, window_lifecycle? : Bool, multi_window? : Bool, text_input_available? : Bool, ime_available? : Bool, drag_drop_available? : Bool, async_services? : Bool, native_accessibility_available? : Bool, web_view_available? : Bool, host_modal_available? : Bool, web_view_description? : String, description? : String) -> HostCapabilitySummaryfn HostCapabilitySummary::unavailable(label? : String, description? : String) -> HostCapabilitySummarypub(all) struct HostCompletedServiceResponse {
id : HostServiceRequestId
request : HostServiceRequest
response : HostServiceResponse
} derive(Eq, ToJson, Debug)fn HostCompletedServiceResponse::equal(HostCompletedServiceResponse, HostCompletedServiceResponse) -> Boolfn HostCompletedServiceResponse::not_equal(x : HostCompletedServiceResponse, y : HostCompletedServiceResponse) -> Boolpub(all) struct HostCoordinatePolicy {
input_space : HostCoordinateSpace
surface_space : HostCoordinateSpace
scale_factor_applied : Bool
description : String
} derive(Eq, ToJson, Debug)fn HostDirectoryEntry::new(name~ : String, path~ : String, is_directory? : Bool) -> HostDirectoryEntrypub(all) struct HostFileDialogOptions {
kind : HostFileDialogKind
title : String
filters : Array[String]
default_name : String?
} derive(Eq, ToJson, Debug)fn HostFileDialogOptions::new(kind~ : HostFileDialogKind, title? : String, filters? : Array[String], default_name? : String?) -> HostFileDialogOptionsfn HostInputCapabilities::new(pointer? : Bool, scroll? : Bool, keyboard? : Bool, focus? : Bool, text_input? : Bool, ime? : Bool, clipboard? : Bool, drag_drop? : Bool) -> HostInputCapabilitiespub(all) struct HostInputContract {
capabilities : HostInputCapabilities
coordinates : HostCoordinatePolicy
} derive(Eq, ToJson, Debug)fn HostInputContract::new(capabilities? : HostInputCapabilities, coordinates? : HostCoordinatePolicy) -> HostInputContractpub(all) enum HostModalEvent {
Pending(Int, String, Int)
Accepted(Int, String, Int)
Rejected(Int, String, Int, String)
Closed(Int, String, Int)
SurfaceAttached(Int, String, Int, String)
SurfaceDetached(Int, String, Int, String)
Input(Int, String, Int, PointerEvent)
} derive(Eq, ToJson, Debug)pub(all) struct HostModalRequest {
request_id : Int
presentation_id : String
generation : Int
bounds : Rect
modality : HostModalModality
semantics_generation : Int
} derive(Eq, ToJson, Debug)fn HostModalRequest::new(request_id~ : Int, presentation_id~ : String, generation~ : Int, bounds~ : Rect, modality? : HostModalModality, semantics_generation? : Int) -> HostModalRequestpub(all) struct HostPendingServiceRequest {
id : HostServiceRequestId
request : HostServiceRequest
} derive(Eq, ToJson, Debug)fn HostPendingServiceRequest::not_equal(x : HostPendingServiceRequest, y : HostPendingServiceRequest) -> Boolpub(all) struct HostScrollEvent {
position : Point
delta : HostScrollDelta
phase : HostScrollPhase
} derive(Eq, ToJson, Debug)fn HostScrollEvent::new(position~ : Point, delta~ : HostScrollDelta, phase? : HostScrollPhase) -> HostScrollEventpub struct HostServiceBridge {
// private fields
}fn HostServiceBridge::dispatch(self : HostServiceBridge, request : HostServiceRequest) -> HostServiceResponsefn HostServiceBridge::environment_with_system_theme(self : HostServiceBridge, environment : Environment) -> Environmentfn HostServiceBridge::new(capabilities~ : HostServiceCapabilities, handle~ : (HostServiceRequest) -> HostServiceResponse) -> HostServiceBridgefn HostServiceCapabilities::new(clipboard? : Bool, menus? : Bool, file_dialogs? : Bool, file_access? : Bool, open_url? : Bool, system_theme? : Bool, settings? : Bool) -> HostServiceCapabilitiesfn HostServiceCapabilities::not_equal(x : HostServiceCapabilities, y : HostServiceCapabilities) -> Boolpub(all) enum HostServiceRequest {
Clipboard(HostClipboardRequest)
ShowMenu(Array[ActionCommand])
SetApplicationMenu(Array[HostApplicationMenu])
FileDialog(HostFileDialogOptions)
TextFile(HostTextFileRequest)
BinaryFile(HostBinaryFileRequest)
OpenUrl(String)
QuerySystemTheme
Settings(HostSettingsRequest)
ListDirectory(String)
DeleteFile(String)
PlatformChannel(PlatformChannelRequest)
} derive(Eq, ToJson, Debug)pub(all) enum HostServiceResponse {
Unavailable(String)
Pending(HostServiceRequestId)
ClipboardText(String)
ClipboardWritten
ClipboardImage(Bytes)
MenuAction(ActionCommand)
MenuCommand(CommandIntent)
ApplicationMenuInstalled
FileDialogSelection(Array[String])
TextFileContent(String, String)
TextFileWritten(String)
BinaryFileContent(String, Bytes)
BinaryFileWritten(String)
UrlOpened
SystemTheme(ColorScheme)
SettingValue(String?)
SettingWritten
SettingRemoved
DirectoryListing(String, Array[HostDirectoryEntry])
FileDeleted(String)
PlatformChannel(PlatformChannelResponse)
} derive(Eq, ToJson, Debug)fn HostServiceResponse::binary_file_diagnostic(self : HostServiceResponse) -> HostBinaryFileDiagnostic?fn PlatformChannelRequest::new(channel~ : String, operation~ : String, payload? : String) -> PlatformChannelRequestfn PlatformChannelRequest::not_equal(x : PlatformChannelRequest, y : PlatformChannelRequest) -> Boolfn PlatformChannelResponse::not_equal(x : PlatformChannelResponse, y : PlatformChannelResponse) -> Boolpub struct PlatformViewPlugin {
kind : String
capabilities_summary : String
install_event_dispatcher : ((UInt64, String, PlatformViewEvent) -> Unit) -> Unit
sync_platform_views : (UInt64, DrawFrame, Double) -> Unit
drain_commands : (UInt64) -> Unit
dispose_platform_views : (UInt64) -> Unit
setup_platform_view_draw : (UInt64, DrawFrame, Double, ((PlatformViewPixelSink) -> Unit) -> Unit) -> Unit?
poll_native : () -> Int64??
}fn PlatformViewPlugin::new(kind~ : String, capabilities_summary~ : String, install_event_dispatcher~ : ((UInt64, String, PlatformViewEvent) -> Unit) -> Unit, sync_platform_views~ : (UInt64, DrawFrame, Double) -> Unit, drain_commands~ : (UInt64) -> Unit, dispose_platform_views~ : (UInt64) -> Unit, setup_platform_view_draw? : (UInt64, DrawFrame, Double, ((PlatformViewPixelSink) -> Unit) -> Unit) -> Unit?, poll_native? : () -> Int64??) -> PlatformViewPluginpub(all) struct WindowOpenRequest {
title : String
scene : WindowScene
metrics : SurfaceMetrics
primary : Bool
} derive(Eq, ToJson, Debug)fn WindowOpenRequest::new(title~ : String, scene? : WindowScene, metrics~ : SurfaceMetrics, primary? : Bool) -> WindowOpenRequestpub(all) struct WindowRecord {
id : WindowId
title : String
scene : WindowScene
metrics : SurfaceMetrics
phase : WindowLifecyclePhase
primary : Bool
} derive(Eq, ToJson, Debug)fn WindowRecord::new(id~ : WindowId, title~ : String, scene? : WindowScene, metrics~ : SurfaceMetrics, phase? : WindowLifecyclePhase, primary? : Bool) -> WindowRecordpub(all) struct WindowRequestCompletion {
request : WindowRequest
result : WindowRequestResult
} derive(Eq, ToJson, Debug)fn WindowRequestCompletion::not_equal(x : WindowRequestCompletion, y : WindowRequestCompletion) -> Boolpub struct WindowRequests {
push_fn : (WindowRequest) -> Unit
pending_count_fn : () -> Int
completed_count_fn : () -> Int
drain_fn : () -> Array[WindowRequest]
record_result_fn : (WindowRequest, WindowRequestResult) -> Unit
subscribe_completed_fn : ((WindowRequestCompletion) -> Unit) -> (() -> Unit)
}fn WindowRequests::drain_with_handler(self : WindowRequests, handle : (WindowRequest) -> WindowRequestResult) -> Array[WindowRequestCompletion]fn WindowRequests::new(push? : (WindowRequest) -> Unit, pending_count? : () -> Int, completed_count? : () -> Int, drain? : () -> Array[WindowRequest], record_result? : (WindowRequest, WindowRequestResult) -> Unit, subscribe_completed? : ((WindowRequestCompletion) -> Unit) -> (() -> Unit)) -> WindowRequestsfn WindowRequests::record_result(self : WindowRequests, request : WindowRequest, result : WindowRequestResult) -> Unitfn WindowRequests::subscribe_completed(self : WindowRequests, handle : (WindowRequestCompletion) -> Unit) -> (() -> Unit)Install
Download zipMoUI is a multi-platform MoonBit GUI framework
Dependencies