Struct web_view::DialogBuilder
source · pub struct DialogBuilder<'a: 'b, 'b, T: 'a> { /* private fields */ }
Expand description
A builder for opening a new dialog window.
Implementations
sourceimpl<'a: 'b, 'b, T: 'a> DialogBuilder<'a, 'b, T>
impl<'a: 'b, 'b, T: 'a> DialogBuilder<'a, 'b, T>
sourcepub fn new(webview: &'b mut WebView<'a, T>) -> DialogBuilder<'a, 'b, T>
pub fn new(webview: &'b mut WebView<'a, T>) -> DialogBuilder<'a, 'b, T>
Creates a new dialog builder for a WebView.
sourcepub fn open_file<S, P>(
&mut self,
title: S,
default_file: P
) -> WVResult<Option<PathBuf>>where
S: Into<String>,
P: Into<PathBuf>,
pub fn open_file<S, P>(
&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.
sourcepub fn choose_directory<S, P>(
&mut self,
title: S,
default_directory: P
) -> WVResult<Option<PathBuf>>where
S: Into<String>,
P: Into<PathBuf>,
pub fn choose_directory<S, P>(
&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.
sourcepub fn info<TS, MS>(&mut self, title: TS, message: MS) -> WVResultwhere
TS: Into<String>,
MS: Into<String>,
pub fn info<TS, MS>(&mut self, title: TS, message: MS) -> WVResultwhere
TS: Into<String>,
MS: Into<String>,
Opens an info alert dialog.
Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more