Skip to main content

Crate dioxus_native

Crate dioxus_native 

Source
Expand description

A native renderer for Dioxus.

§Feature flags

  • default: Enables the features listed below.
  • accessibility: Enables accesskit accessibility support.
  • hot-reload: Enables hot-reloading of Dioxus RSX.
  • menu: Enables the muda menubar.
  • tracing: Enables tracing support.

Re-exports§

pub use winit;

Modules§

preludeprelude

Structs§

Config
Launch-time configuration for a dioxus-native application.
CustomWidgetAttr
DeviceHandlevello-hybrid or vello
A wgpu Device, it’s associated Queue, and the Adapter and Instance used to create them
DioxusDocument
Integrates BaseDocument from blitz-dom with VirtualDom from dioxus-core
DioxusNativeApplication
DioxusNativeWindowRenderer
DocumentConfig
Options used when constructing a BaseDocument
Featuresvello-hybrid or vello
Features that are not guaranteed to be supported.
FontContext
A font database/cache (wrapper around a Fontique Collection and SourceCache).
Limitsvello-hybrid or vello
Represents the sets of limits an adapter/device supports.
LogicalSize
A size represented in logical pixels.
NodeHandle
PhysicalSize
A size represented in physical pixels.
SubDocumentAttr
WindowAttributes
Attributes used when creating a window.
WinitEventHandlerId
The unique identifier of a window event handler. This can be used to later remove the handler.

Enums§

DioxusNativeEvent
Dioxus-native specific event type

Traits§

Widget

Functions§

build_single_font_ctx
Convenience builder for the one-font case: produces a FontContext with system-font discovery disabled and the supplied font registered as the fallback for every generic family. The standard setup for WASM, where browsers don’t expose system fonts. WOFF/WOFF2 inputs are decoded automatically.
launch
Launch an interactive HTML/CSS renderer driven by the Dioxus virtualdom
launch_cfg
launch_cfg_with_props
synthetic_click_event
use_back_button
Register a handler that runs when the back button is pressed.
use_raw_window_handle
use_window
use_window_event
Register an event handler that runs when a winit event is processed.