pub struct Dialog<'a> {Show 22 fields
pub title: &'a str,
pub message: &'a str,
pub dialog_type: DialogType,
pub buttons: Vec<&'a str>,
pub selected_button: usize,
pub width_percent: f32,
pub height_percent: f32,
pub footer: Option<&'a str>,
pub footer_style: Style,
pub title_inside: bool,
pub overlay: bool,
pub overlay_style: Style,
pub border_color: Option<Color>,
pub style: Style,
pub button_selected_style: Style,
pub button_style: Style,
pub button_areas: Vec<Rect>,
pub theme_info_color: Option<Color>,
pub theme_success_color: Option<Color>,
pub theme_warning_color: Option<Color>,
pub theme_error_color: Option<Color>,
pub theme_confirm_color: Option<Color>,
}Fields§
§title: &'a str§message: &'a str§dialog_type: DialogType§width_percent: f32§height_percent: f32§title_inside: bool§overlay: bool§overlay_style: Style§border_color: Option<Color>§style: Style§theme_info_color: Option<Color>§theme_success_color: Option<Color>§theme_warning_color: Option<Color>§theme_error_color: Option<Color>§theme_confirm_color: Option<Color>Implementations§
Source§impl<'a> Dialog<'a>
impl<'a> Dialog<'a>
pub fn new(title: &'a str, message: &'a str) -> Dialog<'a>
Available on crate feature
dialog only.pub fn info(title: &'a str, message: &'a str) -> Dialog<'a>
Available on crate feature
dialog only.pub fn warning(title: &'a str, message: &'a str) -> Dialog<'a>
Available on crate feature
dialog only.pub fn error(title: &'a str, message: &'a str) -> Dialog<'a>
Available on crate feature
dialog only.pub fn success(title: &'a str, message: &'a str) -> Dialog<'a>
Available on crate feature
dialog only.pub fn confirm(title: &'a str, message: &'a str) -> Dialog<'a>
Available on crate feature
dialog only.pub fn dialog_type(self, dialog_type: DialogType) -> Dialog<'a>
Available on crate feature
dialog only.Available on crate feature
dialog only.pub fn style(self, style: Style) -> Dialog<'a>
Available on crate feature
dialog only.pub fn border_color(self, border_color: Color) -> Dialog<'a>
Available on crate feature
dialog only.pub fn width_percent(self, width_percent: f32) -> Dialog<'a>
Available on crate feature
dialog only.pub fn height_percent(self, height_percent: f32) -> Dialog<'a>
Available on crate feature
dialog only.Available on crate feature
dialog only.Available on crate feature
dialog only.pub fn title_inside(self, title_inside: bool) -> Dialog<'a>
Available on crate feature
dialog only.pub fn overlay(self, overlay: bool) -> Dialog<'a>
Available on crate feature
dialog only.pub fn overlay_style(self, overlay_style: Style) -> Dialog<'a>
Available on crate feature
dialog only.Available on crate feature
dialog only.Available on crate feature
dialog only.Source§impl<'a> Dialog<'a>
impl<'a> Dialog<'a>
Available on crate feature
dialog only.Available on crate feature
dialog only.pub fn get_border_color(&self) -> Color
Available on crate feature
dialog only.Available on crate feature
dialog only.Available on crate feature
dialog only.pub fn handle_click(&self, column: u16, row: u16) -> Option<usize>
Available on crate feature
dialog only.Auto Trait Implementations§
impl<'a> Freeze for Dialog<'a>
impl<'a> RefUnwindSafe for Dialog<'a>
impl<'a> Send for Dialog<'a>
impl<'a> Sync for Dialog<'a>
impl<'a> Unpin for Dialog<'a>
impl<'a> UnsafeUnpin for Dialog<'a>
impl<'a> UnwindSafe for Dialog<'a>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more