Trait tauri::WindowBuilder[][src]

pub trait WindowBuilder: WindowBuilderBase {
Show methods fn new() -> Self;
fn with_config(config: WindowConfig) -> Self;
fn menu<I>(self, menu: Vec<Menu<I>, Global>) -> Self
    where
        I: MenuId
;
fn position(self, x: f64, y: f64) -> Self;
fn inner_size(self, min_width: f64, min_height: f64) -> Self;
fn min_inner_size(self, min_width: f64, min_height: f64) -> Self;
fn max_inner_size(self, min_width: f64, min_height: f64) -> Self;
fn resizable(self, resizable: bool) -> Self;
fn title<S>(self, title: S) -> Self
    where
        S: Into<String>
;
fn fullscreen(self, fullscreen: bool) -> Self;
fn maximized(self, maximized: bool) -> Self;
fn visible(self, visible: bool) -> Self;
fn transparent(self, transparent: bool) -> Self;
fn decorations(self, decorations: bool) -> Self;
fn always_on_top(self, always_on_top: bool) -> Self;
fn icon(self, icon: Icon) -> Result<Self, Error>;
fn has_icon(&self) -> bool;
fn has_menu(&self) -> bool;
}
Expand description

A builder for all attributes related to a single webview.

This trait is only meant to be implemented by a custom Runtime and not by applications.

Required methods

fn new() -> Self[src]

Expand description

Initializes a new window attributes builder.

fn with_config(config: WindowConfig) -> Self[src]

Expand description

Initializes a new webview builder from a WindowConfig

fn menu<I>(self, menu: Vec<Menu<I>, Global>) -> Self where
    I: MenuId
[src]

Expand description

Sets the menu for the window.

fn position(self, x: f64, y: f64) -> Self[src]

Expand description

The initial position of the window’s.

fn inner_size(self, min_width: f64, min_height: f64) -> Self[src]

Expand description

Window size.

fn min_inner_size(self, min_width: f64, min_height: f64) -> Self[src]

Expand description

Window min inner size.

fn max_inner_size(self, min_width: f64, min_height: f64) -> Self[src]

Expand description

Window max inner size.

fn resizable(self, resizable: bool) -> Self[src]

Expand description

Whether the window is resizable or not.

fn title<S>(self, title: S) -> Self where
    S: Into<String>, 
[src]

Expand description

The title of the window in the title bar.

fn fullscreen(self, fullscreen: bool) -> Self[src]

Expand description

Whether to start the window in fullscreen or not.

fn maximized(self, maximized: bool) -> Self[src]

Expand description

Whether the window should be maximized upon creation.

fn visible(self, visible: bool) -> Self[src]

Expand description

Whether the window should be immediately visible upon creation.

fn transparent(self, transparent: bool) -> Self[src]

Expand description

Whether the the window should be transparent. If this is true, writing colors with alpha values different than 1.0 will produce a transparent window.

fn decorations(self, decorations: bool) -> Self[src]

Expand description

Whether the window should have borders and bars.

fn always_on_top(self, always_on_top: bool) -> Self[src]

Expand description

Whether the window should always be on top of other windows.

fn icon(self, icon: Icon) -> Result<Self, Error>[src]

Expand description

Sets the window icon.

fn has_icon(&self) -> bool[src]

Expand description

Whether the icon was set or not.

fn has_menu(&self) -> bool[src]

Expand description

Whether the menu was set or not.

Loading content...

Implementations on Foreign Types

impl WindowBuilder for WindowBuilderWrapper[src]

pub fn new() -> WindowBuilderWrapper[src]

pub fn with_config(config: WindowConfig) -> WindowBuilderWrapper[src]

pub fn menu<I>(self, menu: Vec<Menu<I>, Global>) -> WindowBuilderWrapper where
    I: MenuId
[src]

pub fn position(self, x: f64, y: f64) -> WindowBuilderWrapper[src]

pub fn inner_size(self, width: f64, height: f64) -> WindowBuilderWrapper[src]

pub fn min_inner_size(
    self,
    min_width: f64,
    min_height: f64
) -> WindowBuilderWrapper
[src]

pub fn max_inner_size(
    self,
    max_width: f64,
    max_height: f64
) -> WindowBuilderWrapper
[src]

pub fn resizable(self, resizable: bool) -> WindowBuilderWrapper[src]

pub fn title<S>(self, title: S) -> WindowBuilderWrapper where
    S: Into<String>, 
[src]

pub fn fullscreen(self, fullscreen: bool) -> WindowBuilderWrapper[src]

pub fn maximized(self, maximized: bool) -> WindowBuilderWrapper[src]

pub fn visible(self, visible: bool) -> WindowBuilderWrapper[src]

pub fn transparent(self, transparent: bool) -> WindowBuilderWrapper[src]

pub fn decorations(self, decorations: bool) -> WindowBuilderWrapper[src]

pub fn always_on_top(self, always_on_top: bool) -> WindowBuilderWrapper[src]

pub fn icon(self, icon: Icon) -> Result<WindowBuilderWrapper, Error>[src]

pub fn has_icon(&self) -> bool[src]

pub fn has_menu(&self) -> bool[src]

Loading content...

Implementors

Loading content...