pub struct AboutDialog<Msg = Callback> { /* private fields */ }Expand description
The box that says what this application is, with a way through to the licences.
A name, a version, an icon, a legal line, and two buttons: one to the licences, one to
close. It is an crate::AlertDialog underneath, so everything an alert dialog can be
told, this can be told too.
Implementations§
Source§impl<Msg> AboutDialog<Msg>where
Msg: Clone + 'static,
impl<Msg> AboutDialog<Msg>where
Msg: Clone + 'static,
Sourcepub fn new(open: bool) -> AboutDialog<Msg>
pub fn new(open: bool) -> AboutDialog<Msg>
A dialog, shown when open.
Sourcepub fn application(self, name: impl Into<String>) -> AboutDialog<Msg>
pub fn application(self, name: impl Into<String>) -> AboutDialog<Msg>
The application’s name.
Sourcepub fn version(self, version: impl Into<String>) -> AboutDialog<Msg>
pub fn version(self, version: impl Into<String>) -> AboutDialog<Msg>
Its version.
Sourcepub fn legalese(self, legalese: impl Into<String>) -> AboutDialog<Msg>
pub fn legalese(self, legalese: impl Into<String>) -> AboutDialog<Msg>
The legal line — a copyright, a notice of the application’s own.
Sourcepub fn icon(self, icon: impl Widget<Msg> + 'static) -> AboutDialog<Msg>
pub fn icon(self, icon: impl Widget<Msg> + 'static) -> AboutDialog<Msg>
Its mark, beside the name.
Sourcepub fn on_licences(self, message: impl Into<Msg>) -> AboutDialog<Msg>
pub fn on_licences(self, message: impl Into<Msg>) -> AboutDialog<Msg>
The button through to the licences, and what it says.
Sourcepub fn licences_label(self, label: impl Into<String>) -> AboutDialog<Msg>
pub fn licences_label(self, label: impl Into<String>) -> AboutDialog<Msg>
Its label, for an application in another language.
Sourcepub fn on_close(self, message: impl Into<Msg>) -> AboutDialog<Msg>
pub fn on_close(self, message: impl Into<Msg>) -> AboutDialog<Msg>
The button that closes it — which is also what a tap outside sends.
Sourcepub fn close_label(self, label: impl Into<String>) -> AboutDialog<Msg>
pub fn close_label(self, label: impl Into<String>) -> AboutDialog<Msg>
Its label.
Auto Trait Implementations§
impl<Msg = Callback> !RefUnwindSafe for AboutDialog<Msg>
impl<Msg = Callback> !Send for AboutDialog<Msg>
impl<Msg = Callback> !Sync for AboutDialog<Msg>
impl<Msg = Callback> !UnwindSafe for AboutDialog<Msg>
impl<Msg> Freeze for AboutDialog<Msg>
impl<Msg> Unpin for AboutDialog<Msg>
impl<Msg> UnsafeUnpin for AboutDialog<Msg>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.