pub struct DialogBuilder<'a: 'b, 'b, T: 'a> { /* private fields */ }
Expand description
A builder for opening a new dialog window.
Implementations§
Source§impl<'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>>
pub fn open_file<S, P>( &mut self, title: S, default_file: P, ) -> WVResult<Option<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>>
pub fn choose_directory<S, P>( &mut self, title: S, default_directory: P, ) -> WVResult<Option<PathBuf>>
Opens a new choose directory dialog as returns the chosen directory path.
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'b, T> Freeze for DialogBuilder<'a, 'b, T>
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>
impl<'a, 'b, T> !UnwindSafe for DialogBuilder<'a, 'b, T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more