Struct DialogBuilder

Source
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>

Source

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

Creates a new dialog builder for a WebView.

Source

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.

Source

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.

Source

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

Opens an info alert dialog.

Source

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

Opens a warning alert dialog.

Source

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

Opens an error alert dialog.

Trait Implementations§

Source§

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

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
OSZAR »