Skip to main content

Module native_view

Module native_view 

Expand description

Retained host for a platform/native child view.

Unlike WebView, which paints an offscreen engine frame, NativeView gives a backend the live parent winit::window::Window. A Win32 child HWND, Cocoa NSView, GTK widget, media surface, or another platform component can therefore remain native while participating in the toolkit’s layout, focus, platform conventions, visibility, accessibility, and teardown lifecycle.

Structs§

NativeView
Retained widget adapter around a NativeViewBackend.
NativeViewGeometry
Parent-relative geometry in both toolkit-logical and native physical pixels. Backends should use physical_* for child-window APIs.
NativeViewHost
Live parent-window context supplied before a native view is shown.
NativeViewInput
Event coordinates and modifiers already normalized by the toolkit host.

Enums§

NativeViewAccessibility
Whether AccessKit or the native child owns this view’s semantic subtree.

Traits§

NativeViewBackend
App/platform implementation of one native child view.