dioxus_desktop/
lib.rs

1#![doc = include_str!("readme.md")]
2#![doc(html_logo_url = "https://avatars.githubusercontent.com/u/79236386")]
3#![doc(html_favicon_url = "https://avatars.githubusercontent.com/u/79236386")]
4#![deny(missing_docs)]
5#![cfg_attr(docsrs, feature(doc_cfg))]
6
7mod android_sync_lock;
8mod app;
9mod assets;
10mod config;
11mod desktop_context;
12mod document;
13mod edits;
14mod element;
15mod event_handlers;
16mod events;
17mod file_upload;
18mod hooks;
19mod ipc;
20mod menubar;
21mod mobile;
22mod protocol;
23mod query;
24mod shortcut;
25mod waker;
26mod webview;
27
28// mobile shortcut is only supported on mobile platforms
29#[cfg(any(target_os = "ios", target_os = "android"))]
30mod mobile_shortcut;
31
32/// The main entrypoint for this crate
33pub mod launch;
34
35// Reexport tao and wry, might want to re-export other important things
36pub use tao;
37pub use tao::dpi::{LogicalPosition, LogicalSize};
38pub use tao::event::WindowEvent;
39pub use tao::window::WindowBuilder;
40pub use wry;
41// Reexport muda only if we are on desktop platforms that support menus
42#[cfg(not(any(target_os = "ios", target_os = "android")))]
43pub use muda;
44
45// Tray icon
46#[cfg(any(target_os = "windows", target_os = "linux", target_os = "macos"))]
47pub mod trayicon;
48
49// Public exports
50pub use assets::AssetRequest;
51pub use config::{Config, WindowCloseBehaviour};
52pub use desktop_context::{
53    window, DesktopContext, DesktopService, PendingDesktopContext, WeakDesktopContext,
54};
55pub use event_handlers::WryEventHandler;
56pub use hooks::*;
57pub use shortcut::{HotKeyState, ShortcutHandle, ShortcutRegistryError};
58pub use wry::RequestAsyncResponder;