[−][src]Struct web_view::DialogBuilder
👎 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]
&mut self,
title: S,
default_file: P
) -> WVResult<Option<PathBuf>> where
S: Into<String>,
P: Into<PathBuf>,
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]
&mut self,
title: S,
default_directory: P
) -> WVResult<Option<PathBuf>> where
S: Into<String>,
P: Into<PathBuf>,
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]
TS: Into<String>,
MS: Into<String>,
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]
TS: Into<String>,
MS: Into<String>,
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]
TS: Into<String>,
MS: Into<String>,
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,
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,
'a: 'b,
impl<'a, 'b, T> !UnwindSafe for DialogBuilder<'a, 'b, T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,