Struct andiskaz::ui::info::InfoDialog
source · pub struct InfoDialog {
pub title: TermString,
pub message: TermString,
pub ok_label: TermString,
pub style: Style,
pub title_colors: Color2,
pub selected_colors: Color2,
pub title_y: Coord,
pub bg: Color,
}
Expand description
An info dialog, with just an Ok option.
Fields§
§title: TermString
Title to be shown.
message: TermString
Long text message to be shown.
ok_label: TermString
Label showed by the “OK” button (default “OK”).
style: Style
Settings such as margin and alignment.
title_colors: Color2
Colors shown with the title.
selected_colors: Color2
Colors shown with the selected option.
title_y: Coord
Position of the title in height.
bg: Color
Color of the background.
Implementations§
source§impl InfoDialog
impl InfoDialog
sourcepub fn new(title: TermString, message: TermString) -> Self
pub fn new(title: TermString, message: TermString) -> Self
Creates a dialog with default style settings.
Trait Implementations§
source§impl Clone for InfoDialog
impl Clone for InfoDialog
source§fn clone(&self) -> InfoDialog
fn clone(&self) -> InfoDialog
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for InfoDialog
impl Debug for InfoDialog
source§impl Hash for InfoDialog
impl Hash for InfoDialog
source§impl PartialEq<InfoDialog> for InfoDialog
impl PartialEq<InfoDialog> for InfoDialog
source§fn eq(&self, other: &InfoDialog) -> bool
fn eq(&self, other: &InfoDialog) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for InfoDialog
impl StructuralEq for InfoDialog
impl StructuralPartialEq for InfoDialog
Auto Trait Implementations§
impl RefUnwindSafe for InfoDialog
impl Send for InfoDialog
impl Sync for InfoDialog
impl Unpin for InfoDialog
impl UnwindSafe for InfoDialog
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
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
source§fn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>
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, Global>) -> Rc<dyn Any, Global>
fn into_any_rc(self: Rc<T, Global>) -> Rc<dyn Any, Global>
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.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.