[−][src]Struct better_web_view::DialogBuilder
A builder for opening a new dialog window.
Methods
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 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> !Send for DialogBuilder<'a, 'b, T>
impl<'a, 'b, T> !Sync for DialogBuilder<'a, 'b, T>
Blanket Implementations
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,