[][src]Struct web_view::DialogBuilder

pub struct DialogBuilder<'a: 'b, 'b, T: 'a> { /* fields omitted */ }
👎 Deprecated:

Please use crates like 'tinyfiledialogs' for dialog handling, see example in examples/dialog.rs

A builder for opening a new dialog window.

Implementations

impl<'a: 'b, 'b, T: 'a> DialogBuilder<'a, 'b, T>[src]

pub fn new(webview: &'b mut WebView<'a, T>) -> DialogBuilder<'a, 'b, T>[src]

Creates a new dialog builder for a WebView.

pub fn open_file<S, P>(
    &mut self,
    title: S,
    default_file: P
) -> WVResult<Option<PathBuf>> where
    S: Into<String>,
    P: Into<PathBuf>, 
[src]

Opens a new open file dialog and returns the chosen file path.

pub fn save_file(&mut self) -> WVResult<Option<PathBuf>>[src]

Opens a new save file dialog and returns the chosen file path.

pub fn choose_directory<S, P>(
    &mut self,
    title: S,
    default_directory: P
) -> WVResult<Option<PathBuf>> where
    S: Into<String>,
    P: Into<PathBuf>, 
[src]

Opens a new choose directory dialog as returns the chosen directory path.

pub fn info<TS, MS>(&mut self, title: TS, message: MS) -> WVResult where
    TS: Into<String>,
    MS: Into<String>, 
[src]

Opens an info alert dialog.

pub fn warning<TS, MS>(&mut self, title: TS, message: MS) -> WVResult where
    TS: Into<String>,
    MS: Into<String>, 
[src]

Opens a warning alert dialog.

pub fn error<TS, MS>(&mut self, title: TS, message: MS) -> WVResult where
    TS: Into<String>,
    MS: Into<String>, 
[src]

Opens an error alert dialog.

Trait Implementations

impl<'a: 'b, 'b, T: Debug + 'a> Debug for DialogBuilder<'a, 'b, T>[src]

Auto Trait Implementations

impl<'a, 'b, T> RefUnwindSafe for DialogBuilder<'a, 'b, T> where
    T: RefUnwindSafe

impl<'a, 'b, T> !Send for DialogBuilder<'a, 'b, T>

impl<'a, 'b, T> !Sync for DialogBuilder<'a, 'b, T>

impl<'a, 'b, T> Unpin for DialogBuilder<'a, 'b, T> where
    'a: 'b, 

impl<'a, 'b, T> !UnwindSafe for DialogBuilder<'a, 'b, T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.