Docs.rs
  • tauri-runtime-2.4.0
    • tauri-runtime 2.4.0
    • Docs.rs crate page
    • Apache-2.0 OR MIT
    • Links
    • Homepage
    • Repository
    • crates.io
    • Source
    • Owners
    • tauri-bot
    • Dependencies
      • dpi ^0.1 normal
      • http ^1 normal
      • raw-window-handle ^0.6 normal
      • serde ^1 normal
      • serde_json ^1 normal
      • tauri-utils ^2.2.0 normal
      • thiserror ^2 normal
      • url ^2 normal
      • gtk ^0.18 normal
      • jni ^0.21 normal
      • url ^2 normal
      • windows ^0.60 normal
    • Versions
    • 76.7% of the crate is documented
  • Go to latest version
  • Platform
    • x86_64-apple-darwin
    • x86_64-apple-ios
    • x86_64-linux-android
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

Crate tauri_runtime

logo

tauri_runtime2.4.0

  • All Items

Crate Items

  • Re-exports
  • Modules
  • Structs
  • Enums
  • Traits
  • Type Aliases

Crates

  • tauri_runtime

Crate tauri_runtime

Source
Expand description

Internal runtime between Tauri and the underlying webview runtime.

None of the exposed API of this crate is stable, and it may break semver compatibility in the future. The major version only signifies the intended Tauri version.

Re-exports§

pub use dpi;

Modules§

monitor
Types useful for interacting with a user’s monitors.
webview
A layer between raw Runtime webviews and Tauri.
window
A layer between raw Runtime windows and Tauri.

Structs§

Icon
Window icon.
ProgressBarState
Progress Bar State
Rect
A rectangular region.
RuntimeInitArgs

Enums§

DeviceEventFilter
Error
ExitRequestedEventAction
Action to take when the event loop is about to exit
ProgressBarStatus
Progress bar status.
ResizeDirection
Defines the orientation that a window resize will be performed.
RunEvent
Event triggered on the event loop run.
UserAttentionType
Type of user attention requested on a window.

Traits§

EventLoopProxy
Runtime
The webview runtime interface.
RuntimeHandle
A Send handle to the runtime.
UserEvent
A type that can be used as an user event.
WebviewDispatch
Webview dispatcher. A thread-safe handle to the webview APIs.
WindowDispatch
Window dispatcher. A thread-safe handle to the window APIs.

Type Aliases§

Result
Result type.
WebviewEventId
WindowEventId

Results

Settings
Help

Type "WindowBuilderBase" not found. Showing results for closest type name "windowbuilder" instead.

    trait
    tauri_runtime::window::WindowBuilderBase
    Do NOT implement this trait except for use in a custom …
    trait method
    tauri_runtime::window::WindowBuilder::center
    WindowBuilder -> WindowBuilder
    Show window in the center of the screen.
    trait method
    tauri_runtime::window::WindowBuilder::owner
    WindowBuilder, HWND -> WindowBuilder
    Set an owner to the window to be created.
    trait method
    tauri_runtime::window::WindowBuilder::parent
    WindowBuilder, HWND -> WindowBuilder
    Sets a parent to the window to be created.
    trait method
    tauri_runtime::window::WindowBuilder::shadow
    WindowBuilder, bool -> WindowBuilder
    Sets whether or not the window has shadow.
    trait method
    tauri_runtime::window::WindowBuilder::focused
    WindowBuilder, bool -> WindowBuilder
    Whether the window will be initially focused or not.
    trait method
    tauri_runtime::window::WindowBuilder::visible
    WindowBuilder, bool -> WindowBuilder
    Whether the window should be immediately visible upon …
    trait method
    tauri_runtime::window::WindowBuilder::closable
    WindowBuilder, bool -> WindowBuilder
    Whether the window’s native close button is enabled or …
    trait method
    tauri_runtime::window::WindowBuilder::has_icon
    &WindowBuilder -> bool
    Whether the icon was set or not.
    trait method
    tauri_runtime::window::WindowBuilder::maximized
    WindowBuilder, bool -> WindowBuilder
    Whether the window should be maximized upon creation.
    trait method
    tauri_runtime::window::WindowBuilder::resizable
    WindowBuilder, bool -> WindowBuilder
    Whether the window is resizable or not. When resizable is …
    trait method
    tauri_runtime::window::WindowBuilder::fullscreen
    WindowBuilder, bool -> WindowBuilder
    Whether to start the window in fullscreen or not.
    trait method
    tauri_runtime::window::WindowBuilder::decorations
    WindowBuilder, bool -> WindowBuilder
    Whether the window should have borders and bars.
    trait method
    tauri_runtime::window::WindowBuilder::maximizable
    WindowBuilder, bool -> WindowBuilder
    Whether the window’s native maximize button is enabled …
    trait method
    tauri_runtime::window::WindowBuilder::minimizable
    WindowBuilder, bool -> WindowBuilder
    Whether the window’s native minimize button is enabled …
    trait method
    tauri_runtime::window::WindowBuilder::transparent
    WindowBuilder, bool -> WindowBuilder
    Whether the window should be transparent. If this is true, …
    trait method
    tauri_runtime::window::WindowBuilder::skip_taskbar
    WindowBuilder, bool -> WindowBuilder
    Sets whether or not the window icon should be added to the …
    trait method
    tauri_runtime::window::WindowBuilder::always_on_top
    WindowBuilder, bool -> WindowBuilder
    Whether the window should always be on top of other …
    trait method
    tauri_runtime::window::WindowBuilder::drag_and_drop
    WindowBuilder, bool -> WindowBuilder
    Enables or disables drag and drop support.
    trait method
    tauri_runtime::window::WindowBuilder::always_on_bottom
    WindowBuilder, bool -> WindowBuilder
    Whether the window should always be below other windows.
    trait method
    tauri_runtime::window::WindowBuilder::background_color
    WindowBuilder, Color -> WindowBuilder
    Set the window background color.
    trait method
    tauri_runtime::window::WindowBuilder::content_protected
    WindowBuilder, bool -> WindowBuilder
    Prevents the window contents from being captured by other …
    trait method
    tauri_runtime::window::WindowBuilder::inner_size_constraints
    WindowBuilder, WindowSizeConstraints -> WindowBuilder
    Window inner size constraints.
    trait method
    tauri_runtime::window::WindowBuilder::visible_on_all_workspaces
    WindowBuilder, bool -> WindowBuilder
    Whether the window should be visible on all workspaces or …
    trait method
    tauri_runtime::window::WindowBuilder::icon
    WindowBuilder, Icon -> Result<WindowBuilder>
    Sets the window icon.
    trait method
    tauri_runtime::window::WindowBuilder::theme
    WindowBuilder, Option<Theme> -> WindowBuilder
    Forces a theme or uses the system settings if None was …
    trait method
    tauri_runtime::window::WindowBuilder::position
    WindowBuilder, f64, f64 -> WindowBuilder
    The initial position of the window’s.
    trait method
    tauri_runtime::window::WindowBuilder::get_theme
    &WindowBuilder -> Option<Theme>
    trait method
    tauri_runtime::window::WindowBuilder::inner_size
    WindowBuilder, f64, f64 -> WindowBuilder
    Window size.
    trait method
    tauri_runtime::window::WindowBuilder::max_inner_size
    WindowBuilder, f64, f64 -> WindowBuilder
    Window max inner size.
    trait method
    tauri_runtime::window::WindowBuilder::min_inner_size
    WindowBuilder, f64, f64 -> WindowBuilder
    Window min inner size.
    trait method
    tauri_runtime::window::WindowBuilder::title
    WindowBuilder, S -> WindowBuilder
    The title of the window in the title bar.
    trait method
    tauri_runtime::window::WindowBuilder::window_classname
    WindowBuilder, S -> WindowBuilder
    Sets custom name for Windows’ window class. Windows only.
    trait method
    tauri_runtime::window::WindowBuilder::new
    -> WindowBuilder
    Initializes a new window attributes builder.
    trait method
    tauri_runtime::window::WindowBuilder::with_config
    &WindowConfig -> WindowBuilder
    Initializes a new window builder from a WindowConfig
    trait method
    tauri_runtime::window::WindowBuilder::center
    WindowBuilder -> WindowBuilder
    Show window in the center of the screen.
    trait method
    tauri_runtime::window::WindowBuilder::owner
    WindowBuilder, HWND -> WindowBuilder
    Set an owner to the window to be created.
    trait method
    tauri_runtime::window::WindowBuilder::parent
    WindowBuilder, HWND -> WindowBuilder
    Sets a parent to the window to be created.
    trait method
    tauri_runtime::window::WindowBuilder::shadow
    WindowBuilder, bool -> WindowBuilder
    Sets whether or not the window has shadow.
    trait method
    tauri_runtime::window::WindowBuilder::focused
    WindowBuilder, bool -> WindowBuilder
    Whether the window will be initially focused or not.
    trait method
    tauri_runtime::window::WindowBuilder::visible
    WindowBuilder, bool -> WindowBuilder
    Whether the window should be immediately visible upon …
    trait method
    tauri_runtime::window::WindowBuilder::closable
    WindowBuilder, bool -> WindowBuilder
    Whether the window’s native close button is enabled or …
    trait method
    tauri_runtime::window::WindowBuilder::maximized
    WindowBuilder, bool -> WindowBuilder
    Whether the window should be maximized upon creation.
    trait method
    tauri_runtime::window::WindowBuilder::resizable
    WindowBuilder, bool -> WindowBuilder
    Whether the window is resizable or not. When resizable is …
    trait method
    tauri_runtime::window::WindowBuilder::fullscreen
    WindowBuilder, bool -> WindowBuilder
    Whether to start the window in fullscreen or not.
    trait method
    tauri_runtime::window::WindowBuilder::decorations
    WindowBuilder, bool -> WindowBuilder
    Whether the window should have borders and bars.
    trait method
    tauri_runtime::window::WindowBuilder::maximizable
    WindowBuilder, bool -> WindowBuilder
    Whether the window’s native maximize button is enabled …
    trait method
    tauri_runtime::window::WindowBuilder::minimizable
    WindowBuilder, bool -> WindowBuilder
    Whether the window’s native minimize button is enabled …
    trait method
    tauri_runtime::window::WindowBuilder::transparent
    WindowBuilder, bool -> WindowBuilder
    Whether the window should be transparent. If this is true, …
    trait method
    tauri_runtime::window::WindowBuilder::skip_taskbar
    WindowBuilder, bool -> WindowBuilder
    Sets whether or not the window icon should be added to the …
    trait method
    tauri_runtime::window::WindowBuilder::always_on_top
    WindowBuilder, bool -> WindowBuilder
    Whether the window should always be on top of other …
    trait method
    tauri_runtime::window::WindowBuilder::drag_and_drop
    WindowBuilder, bool -> WindowBuilder
    Enables or disables drag and drop support.
    trait method
    tauri_runtime::window::WindowBuilder::always_on_bottom
    WindowBuilder, bool -> WindowBuilder
    Whether the window should always be below other windows.
    trait method
    tauri_runtime::window::WindowBuilder::background_color
    WindowBuilder, Color -> WindowBuilder
    Set the window background color.
    trait method
    tauri_runtime::window::WindowBuilder::content_protected
    WindowBuilder, bool -> WindowBuilder
    Prevents the window contents from being captured by other …
    trait method
    tauri_runtime::window::WindowBuilder::inner_size_constraints
    WindowBuilder, WindowSizeConstraints -> WindowBuilder
    Window inner size constraints.
    trait method
    tauri_runtime::window::WindowBuilder::visible_on_all_workspaces
    WindowBuilder, bool -> WindowBuilder
    Whether the window should be visible on all workspaces or …
    trait method
    tauri_runtime::window::WindowBuilder::theme
    WindowBuilder, Option<Theme> -> WindowBuilder
    Forces a theme or uses the system settings if None was …
    trait method
    tauri_runtime::window::WindowBuilder::position
    WindowBuilder, f64, f64 -> WindowBuilder
    The initial position of the window’s.
    trait method
    tauri_runtime::window::WindowBuilder::inner_size
    WindowBuilder, f64, f64 -> WindowBuilder
    Window size.
    trait method
    tauri_runtime::window::WindowBuilder::max_inner_size
    WindowBuilder, f64, f64 -> WindowBuilder
    Window max inner size.
    trait method
    tauri_runtime::window::WindowBuilder::min_inner_size
    WindowBuilder, f64, f64 -> WindowBuilder
    Window min inner size.
    trait method
    tauri_runtime::window::WindowBuilder::title
    WindowBuilder, S -> WindowBuilder
    The title of the window in the title bar.
    trait method
    tauri_runtime::window::WindowBuilder::window_classname
    WindowBuilder, S -> WindowBuilder
    Sets custom name for Windows’ window class. Windows only.