wzzc-dev/moui/backend/common/lifecycle does not have a README file
fn EmbeddedHostLifecyclePhase::equal(EmbeddedHostLifecyclePhase, EmbeddedHostLifecyclePhase) -> Boolfn EmbeddedHostLifecyclePhase::not_equal(x : EmbeddedHostLifecyclePhase, y : EmbeddedHostLifecyclePhase) -> Boolpub struct EmbeddedHostSurface {
handle : UInt64
metrics : SurfaceMetrics
generation : Int
} derive(Eq, Debug)pub struct EmbeddedLifecycle {
phase : EmbeddedHostLifecyclePhase
generation : Int
surface : EmbeddedHostSurface?
primary_window : WindowId?
exit_intent : Int?
}fn EmbeddedLifecycle::attach_surface(self : EmbeddedLifecycle, handle : UInt64, metrics : SurfaceMetrics) -> Array[EmbeddedWindowHostAction]fn EmbeddedLifecycle::request_exit(self : EmbeddedLifecycle, code : Int) -> EmbeddedWindowHostActionfn EmbeddedLifecycle::resize_surface(self : EmbeddedLifecycle, metrics : SurfaceMetrics) -> EmbeddedWindowHostAction?pub enum EmbeddedWindowHostAction {
Resumed
CanCreateSurfaces
SurfaceAttached(EmbeddedHostSurface)
SurfaceDetached(Int)
DestroySurfaces
Suspended
Exit(Int)
} derive(Eq, Debug)fn EmbeddedWindowHostAction::not_equal(x : EmbeddedWindowHostAction, y : EmbeddedWindowHostAction) -> Boolfn PlatformWindowMap::bind(self : PlatformWindowMap, platform_id~ : WindowId, host_id~ : WindowId) -> Boolfn PlatformWindowMap::remove_platform(self : PlatformWindowMap, platform_id : WindowId) -> WindowId?fn WindowActions::open(self : WindowActions, title~ : String, scene? : WindowScene, metrics~ : SurfaceMetrics, primary? : Bool) -> Unitfn WindowCommands::drain_to_registry(self : WindowCommands, registry : WindowRegistry) -> Array[WindowRequestCompletion]fn WindowCommands::drain_with_handler(self : WindowCommands, handle : (WindowRequest) -> WindowRequestResult) -> Array[WindowRequestCompletion]fn WindowCommands::open(self : WindowCommands, title~ : String, scene? : WindowScene, metrics~ : SurfaceMetrics, primary? : Bool) -> Unitfn WindowCommands::record_result(self : WindowCommands, request : WindowRequest, result : WindowRequestResult) -> Unitpub struct WindowLifecycle {
// private fields
}fn WindowLifecycle::apply_request_state(self : WindowLifecycle, request : WindowRequest) -> WindowRequestResultfn WindowLifecycle::attach_surface(self : WindowLifecycle, id : WindowId, actions : WindowSurfaceActions) -> Boolfn WindowLifecycle::bind_platform_window(self : WindowLifecycle, platform_id~ : WindowId, window_id~ : WindowId) -> Boolfn WindowLifecycle::drain_window_requests(self : WindowLifecycle, apply : (WindowRequest) -> WindowRequestResult) -> Unitfn WindowLifecycle::new(requests~ : WindowRequests, scene_resolver~ : WindowSceneResolver) -> WindowLifecyclefn WindowLifecycle::open_resolution(self : WindowLifecycle, request : WindowOpenRequest) -> WindowOpenResolutionfn WindowLifecycle::register_primary_runtime_slot(self : WindowLifecycle, id : WindowId, driver : HostRuntimeDriver) -> Unitfn WindowLifecycle::runtime_slot_lookup(self : WindowLifecycle, id : WindowId) -> WindowRuntimeSlot?fn WindowLifecycle::unbind_platform_window(self : WindowLifecycle, window_id : WindowId) -> WindowId?fn WindowRegistry::apply_request(self : WindowRegistry, request : WindowRequest) -> WindowRequestResultfn WindowRegistry::open(self : WindowRegistry, title~ : String, scene? : WindowScene, metrics~ : SurfaceMetrics, primary? : Bool) -> WindowIdpub struct WindowRequestQueue {
requests : Array[WindowRequest]
completed : Array[WindowRequestCompletion]
// private fields
}fn WindowRequestQueue::drain_with_handler(self : WindowRequestQueue, handle : (WindowRequest) -> WindowRequestResult) -> Array[WindowRequestCompletion]fn WindowRequestQueue::open_window(self : WindowRequestQueue, title~ : String, scene? : WindowScene, metrics~ : SurfaceMetrics, primary? : Bool) -> Unitfn WindowRequestQueue::record_result(self : WindowRequestQueue, request : WindowRequest, result : WindowRequestResult) -> Unitfn WindowRequestQueue::resize_window(self : WindowRequestQueue, id : WindowId, metrics : SurfaceMetrics) -> Unitfn WindowRequestQueue::subscribe_completed(self : WindowRequestQueue, handle : (WindowRequestCompletion) -> Unit) -> (() -> Unit)pub(all) struct WindowResolvedOpen {
id : WindowId
record : WindowRecord
instance : WindowSceneInstance
}fn WindowResolvedOpen::new(id~ : WindowId, record~ : WindowRecord, instance~ : WindowSceneInstance) -> WindowResolvedOpenfn WindowRuntimeSlot::from_driver(record~ : WindowRecord, driver~ : HostRuntimeDriver) -> WindowRuntimeSlotfn WindowRuntimeSlot::from_resolved_open(resolved : WindowResolvedOpen, schedule_redraw~ : () -> Unit) -> WindowRuntimeSlotfn WindowRuntimeSlot::new(record~ : WindowRecord, runtime~ : AppRuntime, schedule_redraw~ : () -> Unit) -> WindowRuntimeSlotfn WindowRuntimeSlots::apply_host_event(self : WindowRuntimeSlots, registry : WindowRegistry, id : WindowId, event : Event) -> Boolfn WindowRuntimeSlots::apply_request(self : WindowRuntimeSlots, registry : WindowRegistry, request : WindowRequest) -> WindowRequestResultfn WindowRuntimeSlots::insert_from_registry(self : WindowRuntimeSlots, registry : WindowRegistry, id : WindowId, driver~ : HostRuntimeDriver) -> Boolfn WindowRuntimeSlots::sync_from_registry(self : WindowRuntimeSlots, registry : WindowRegistry, id : WindowId) -> Boolfn WindowRuntimeSlots::sync_open_from_registry(self : WindowRuntimeSlots, registry : WindowRegistry) -> Intfn WindowSceneInstance::new(request~ : WindowOpenRequest, runtime~ : AppRuntime) -> WindowSceneInstancefn WindowSceneResolver::new(resolve~ : (WindowOpenRequest) -> WindowSceneResolution) -> WindowSceneResolverfn WindowSceneResolver::resolve(self : WindowSceneResolver, request : WindowOpenRequest) -> WindowSceneResolutionfn[W, X] WindowSlotMap::lookup_host(self : WindowSlotMap[W, X], host_id : WindowId) -> WindowSlot[W, X]?fn[W, X] WindowSlotMap::remove_host(self : WindowSlotMap[W, X], host_id : WindowId) -> WindowSlot[W, X]?pub(all) struct WindowSurfaceActions {
focus : () -> Unit
request_resize : (SurfaceMetrics) -> SurfaceMetrics
sync_observed_resize : (SurfaceMetrics) -> SurfaceMetrics
set_minimized : (Bool) -> Unit
set_visible : (Bool) -> Unit
request_redraw : () -> Unit
request_ime_update : (TextInputSessionAction) -> Unit
set_drag_region : (Rect?) -> Unit
drop : () -> Unit
native_view_handle : () -> UInt64?
dispose_platform_views : () -> Unit
}fn WindowSurfaceActions::new(focus~ : () -> Unit, request_resize~ : (SurfaceMetrics) -> SurfaceMetrics, sync_observed_resize~ : (SurfaceMetrics) -> SurfaceMetrics, set_minimized~ : (Bool) -> Unit, set_visible~ : (Bool) -> Unit, request_redraw~ : () -> Unit, request_ime_update~ : (TextInputSessionAction) -> Unit, set_drag_region? : (Rect?) -> Unit, drop~ : () -> Unit, native_view_handle~ : () -> UInt64?, dispose_platform_views~ : () -> Unit) -> WindowSurfaceActionsfn drain_to_runtime_slots(commands : WindowCommands, registry : WindowRegistry, slots : WindowRuntimeSlots) -> Array[WindowRequestCompletion]fn resolve_open_request(registry : WindowRegistry, request : WindowOpenRequest, resolver : WindowSceneResolver) -> WindowOpenResolutionInstall
Download zipMoUI is a multi-platform MoonBit GUI framework
Dependencies