wzzc-dev/moui_skia/native does not have a README file
pub(all) struct Bitmap {
// private fields
}pub(all) struct Canvas {
// private fields
}fn Canvas::replay_frame(self : Canvas, frame : RenderFrameDescriptor, font? : Font?) -> CanvasReplayStatsfn Canvas::replay_frame_with_resources(self : Canvas, frame : RenderFrameDescriptor, resources : NativeReplayResources, font? : Font?) -> CanvasReplayStatsfn Canvas::replay_with_image_cache(self : Canvas, commands : RenderCommandList, image_cache : ResourceCache[RendererResourceKey, Image], font? : Font?) -> CanvasReplayStatsfn Canvas::replay_with_resources(self : Canvas, commands : RenderCommandList, resources : NativeReplayResources, font? : Font?) -> CanvasReplayStatsfn Canvas::save_layer(self : Canvas, bounds? : Rect?, paint? : Paint, color_filter? : ColorFilter?, image_filter? : ImageFilter?, mask_filter? : MaskFilter?) -> Intpub(all) struct CanvasReplayStats {
command_count : Int
replayed_count : Int
skipped_count : Int
draw_count : Int
state_count : Int
transform_count : Int
clip_count : Int
clear_count : Int
text_count : Int
present_count : Int
resource_declaration_count : Int
image_resource_count : Int
shader_resource_count : Int
filter_resource_count : Int
path_resource_count : Int
text_resource_count : Int
} derive(Eq, Debug)pub(all) struct Codec {
// private fields
}pub(all) struct ColorFilter {
// private fields
}pub(all) struct Data {
// private fields
}pub(all) struct Font {
// private fields
}fn Font::shape_text_run_utf8(self : Font, text : Bytes, shaping : TextShapingDescriptor) -> ShapedGlyphRunDescriptor?fn Font::shape_text_utf8(self : Font, text : Bytes, width? : Float, left_to_right? : Bool) -> ShapedTextRun?pub(all) struct FontMetrics {
top : Float
ascent : Float
descent : Float
bottom : Float
leading : Float
average_char_width : Float
max_char_width : Float
x_min : Float
x_max : Float
x_height : Float
cap_height : Float
underline_thickness : Float?
underline_position : Float?
strikeout_thickness : Float?
strikeout_position : Float?
has_bounds : Bool
} derive(Eq, Debug)pub(all) struct FontMgr {
// private fields
}fn FontMgr::match_family_style_character(self : FontMgr, family_name : Bytes, bcp47 : Array[Bytes], character : Int, style? : FontStyleRequest) -> Typeface?fn FontMgr::match_family_style_request(self : FontMgr, family_name : Bytes, style : FontStyleRequest) -> Typeface?fn FontMgr::resolve_fallback_request(self : FontMgr, request : FontFallbackRequest) -> ResolvedTypeface?pub(all) struct GpuRenderCompletion {
sequence : Int
surface_generation : Int
image_resource_revision : Int64
submitted_at_ms : Double
gpu_completed_at_ms : Double
presented_at_ms : Double
status : GpuRenderCompletionStatus
context_generation : Int
} derive(Eq, Debug)pub struct GpuRenderWorker {
state : GpuRenderWorkerState
next_sequence : Int
surface_generation : Int
context_generation : Int
in_flight : GpuRenderPictureFrame?
pending : GpuRenderPictureFrame?
controls : Array[GpuRenderWorkerControl]
completions : Array[GpuRenderCompletion]
submitted : Int
started : Int
completed : Int
dropped : Int
replaced_pending : Int
rejected_generation : Int
recovery_count : Int
recovery_failures : Int
fail_next_recovery : Bool
resource_cache_bytes : Int64
worker_thread_id : Int64
}fn GpuRenderWorker::poll(self : GpuRenderWorker, gpu_completed_at_ms? : Double, presented_at_ms? : Double) -> Unitfn GpuRenderWorker::submit(self : GpuRenderWorker, picture : Picture?, image_resource_revision? : Int64, submitted_at_ms? : Double) -> Intpub(all) struct GpuRenderWorkerDiagnostics {
state : GpuRenderWorkerState
submitted : Int
started : Int
completed : Int
dropped : Int
replaced_pending : Int
rejected_generation : Int
surface_generation : Int
context_generation : Int
recovery_count : Int
recovery_failures : Int
readback_count : Int
resource_cache_bytes : Int64
control_pending : Int
in_flight : Bool
pending : Bool
worker_thread_id : Int64
} derive(Eq, Debug)pub(all) struct Image {
// private fields
}pub(all) struct ImageFilter {
// private fields
}pub(all) struct MaskFilter {
// private fields
}pub struct NativeGpuRenderWorker {
}fn NativeGpuRenderWorker::drain_completions(self : NativeGpuRenderWorker) -> Array[NativeGpuWorkerCompletion]fn NativeGpuRenderWorker::submit_control(self : NativeGpuRenderWorker, control : GpuRenderWorkerControl) -> Int64fn NativeGpuRenderWorker::submit_empty_picture(self : NativeGpuRenderWorker, image_resource_revision? : Int64, submitted_at_ms? : Double) -> Int64fn NativeGpuRenderWorker::submit_picture(self : NativeGpuRenderWorker, picture : Picture, image_resource_revision? : Int64, submitted_at_ms? : Double) -> Int64pub(all) struct NativeGpuWorkerCompletion {
sequence : Int64
control_token : Int64
surface_generation : Int
context_generation : Int
image_resource_revision : Int64
submitted_at_ms : Double
processed_at_ms : Double
presented_at_ms : Double
status : NativeGpuWorkerCompletionStatus
} derive(Eq, Debug)pub(all) struct NativeGpuWorkerDiagnostics {
worker_thread_id : Int64
submitted : Int64
completed : Int64
dropped : Int64
replaced_pending : Int64
readback_count : Int64
surface_generation : Int
context_generation : Int
recovery_count : Int64
resource_cache_bytes : Int64
control_pending : Int
completion_pending : Int
} derive(Eq, Debug)pub(all) struct NativeReplayResources {
image_cache : ResourceCache[RendererResourceKey, Image]
shader_cache : ResourceCache[RendererResourceKey, Shader]
path_cache : ResourceCache[RendererResourceKey, Path]
text_run_cache : ResourceCache[RendererResourceKey, NativeReplayTextRun]
font_cache : ResourceCache[RendererResourceKey, Font]
typeface_cache : ResourceCache[RendererResourceKey, Typeface]
color_filter_cache : ResourceCache[RendererResourceKey, ColorFilter]
image_filter_cache : ResourceCache[RendererResourceKey, ImageFilter]
mask_filter_cache : ResourceCache[RendererResourceKey, MaskFilter]
}fn NativeReplayResources::new(image_max_bytes? : Int64, shader_max_bytes? : Int64, path_max_bytes? : Int64, text_run_max_bytes? : Int64, font_max_bytes? : Int64, typeface_max_bytes? : Int64, color_filter_max_bytes? : Int64, image_filter_max_bytes? : Int64, mask_filter_max_bytes? : Int64) -> NativeReplayResourcespub(all) enum NativeReplayTextRun {
DirectTextRun(TextRunDescriptor)
ShapedTextRun(ShapedGlyphRunDescriptor)
}pub(all) struct Paragraph {
// private fields
}pub(all) struct Path {
// private fields
}fn Path::add_circle(self : Path, center : Point, radius : Float, direction? : PathDirection) -> Unitfn Path::add_path_value_matrix(self : Path, path : Path, matrix : Matrix, mode? : AddPathMode) -> Unitfn Path::add_path_value_offset(self : Path, path : Path, offset : Point, mode? : AddPathMode) -> Unitfn Path::add_round_rect(self : Path, rect : Rect, rx : Float, ry : Float, direction? : PathDirection) -> Unitpub(all) struct Picture {
// private fields
}pub(all) struct PictureRecorder {
// private fields
}pub(all) struct ResolvedTypeface {
typeface : Typeface
resolution : FontFallbackResolutionDescriptor
}fn ResolvedTypeface::font_descriptor(self : ResolvedTypeface, size? : Float, scale_x? : Float, skew_x? : Float) -> FontDescriptorfn ResolvedTypeface::resource_plan(self : ResolvedTypeface, size? : Float, scale_x? : Float, skew_x? : Float, request_byte_size? : Int64, resolution_byte_size? : Int64, match_byte_size? : Int64, font_byte_size? : Int64) -> RendererResourcePlanpub(all) struct Shader {
// private fields
}pub(all) struct ShapedTextRun {
// private fields
}pub(all) enum SkiaGpuContextSupportStatus {
SkiaGpuContextAvailable
SkiaGpuContextSkiaUnavailable
SkiaGpuContextAnonymous
SkiaGpuContextMockUnsupported
SkiaGpuContextBackendUnsupported
SkiaGpuContextMetalOptInDisabled
SkiaGpuContextMetalHeadersUnavailable
SkiaGpuContextMetalRuntimeUnavailable
SkiaGpuContextDirect3DOptInDisabled
SkiaGpuContextDirect3DHeadersUnavailable
SkiaGpuContextDirect3DRuntimeUnavailable
SkiaGpuContextVulkanOptInDisabled
SkiaGpuContextVulkanHeadersUnavailable
SkiaGpuContextVulkanRuntimeUnavailable
SkiaGpuContextEglOptInDisabled
SkiaGpuContextEglHeadersUnavailable
SkiaGpuContextEglRuntimeUnavailable
} derive(Eq, Debug)fn Surface::direct3d_present_and_acquire_next(surface : Surface, context : GpuContext, hwnd_ptr : UInt64) -> Surface?fn Surface::direct3d_window_surface(context : GpuContext, hwnd_ptr : UInt64, descriptor : SurfaceDescriptor) -> Surface?fn Surface::egl_present_and_acquire_next(surface : Surface, context : GpuContext, native_window_ptr : UInt64) -> Surface?fn Surface::egl_window_surface(context : GpuContext, native_window_ptr : UInt64, descriptor : SurfaceDescriptor) -> Surface?fn Surface::for_target_with_gpu_context(target : SurfaceTargetDescriptor, context : GpuContext) -> Surface?fn Surface::gpu_context_support_status(context : GpuContextDescriptor) -> SkiaGpuContextSupportStatusfn Surface::metal_present_and_acquire_next(surface : Surface, context : GpuContext, layer_ptr : UInt64) -> Surface?fn Surface::metal_window_surface(context : GpuContext, layer_ptr : UInt64, descriptor : SurfaceDescriptor) -> Surface?fn Surface::render_frame(self : Surface, frame : RenderFrameDescriptor, font? : Font?, frame_index? : Int) -> SurfaceFrameReplayStatsfn Surface::render_frame_with_resources(self : Surface, frame : RenderFrameDescriptor, resources : NativeReplayResources, font? : Font?, frame_index? : Int) -> SurfaceFrameReplayStatsfn Surface::target_support_status_with_gpu_context(target : SurfaceTargetDescriptor, context : GpuContext) -> SurfaceTargetSupportStatusfn Surface::vulkan_present_and_acquire_next(surface : Surface, context : GpuContext, anw_ptr : UInt64) -> Surface?fn Surface::vulkan_wayland_surface(context : GpuContext, display_ptr : UInt64, surface_ptr : UInt64, descriptor : SurfaceDescriptor) -> Surface?fn Surface::vulkan_window_surface(context : GpuContext, anw_ptr : UInt64, descriptor : SurfaceDescriptor) -> Surface?pub(all) struct SurfaceFrameReplayStats {
replay : CanvasReplayStats
validation_status : RenderFrameValidationStatus
surface_matches : Bool
finalization : RenderFrameFinalizationDescriptor
finalized : Bool
} derive(Eq, Debug)fn SurfaceFrameReplayStats::finalization_resource_plan(self : SurfaceFrameReplayStats) -> RendererResourcePlanpub(all) enum SurfaceFrameReplayStatus {
SurfaceFrameReplayComplete
SurfaceFrameReplayValidationFailed(RenderFrameValidationStatus)
SurfaceFrameReplaySurfaceMismatch
SurfaceFrameReplaySkippedCommands
SurfaceFrameReplayFinalizationFailed
} derive(Eq, Debug)pub(all) struct Typeface {
// private fields
}fn skia_available() -> Boolfn skia_paragraph_available() -> Boolfn skia_shaper_available() -> BoolInstall
Download zipMoonBit bindings for the Skia Graphics Library
Dependencies