pub struct Dialog<'a, Message, Theme = Theme, Renderer = Renderer>where
Renderer: 'a + Renderer,
Theme: 'a + Catalog,{ /* private fields */ }
Expand description
Implementations§
Source§impl<'a, Message, Theme, Renderer> Dialog<'a, Message, Theme, Renderer>
impl<'a, Message, Theme, Renderer> Dialog<'a, Message, Theme, Renderer>
Sourcepub fn new(
is_open: bool,
base: impl Into<Element<'a, Message, Theme, Renderer>>,
content: impl Into<Element<'a, Message, Theme, Renderer>>,
) -> Self
pub fn new( is_open: bool, base: impl Into<Element<'a, Message, Theme, Renderer>>, content: impl Into<Element<'a, Message, Theme, Renderer>>, ) -> Self
Creates a new Dialog
with the given base and dialog content.
Creates a new Dialog
with the given base, dialog content and buttons.
Sets the vertical alignment of the Dialog
’s buttons.
Adds a button to the Dialog
.
Adds a button to the Dialog
, if Some
.
Extends the Dialog
with the given buttons.
Sourcepub fn title_style(self, style: impl Fn(&Theme) -> Style + 'a) -> Selfwhere
<Theme as Catalog>::Class<'a>: From<StyleFn<'a, Theme>>,
pub fn title_style(self, style: impl Fn(&Theme) -> Style + 'a) -> Selfwhere
<Theme as Catalog>::Class<'a>: From<StyleFn<'a, Theme>>,
Sets the style of the Dialog
’s title.
Sourcepub fn container_style(self, style: impl Fn(&Theme) -> Style + 'a) -> Selfwhere
<Theme as Catalog>::Class<'a>: From<StyleFn<'a, Theme>>,
pub fn container_style(self, style: impl Fn(&Theme) -> Style + 'a) -> Selfwhere
<Theme as Catalog>::Class<'a>: From<StyleFn<'a, Theme>>,
Sets the style of the Dialog
’s container.
Sourcepub fn class(self, class: impl Into<<Theme as Catalog>::Class<'a>>) -> Self
pub fn class(self, class: impl Into<<Theme as Catalog>::Class<'a>>) -> Self
Sets the style class of the Dialog
.
Sourcepub fn title_class(
self,
class: impl Into<<Theme as Catalog>::Class<'a>>,
) -> Self
pub fn title_class( self, class: impl Into<<Theme as Catalog>::Class<'a>>, ) -> Self
Sets the style class of the Dialog
’s title.
Sourcepub fn container_class(
self,
class: impl Into<<Theme as Catalog>::Class<'a>>,
) -> Self
pub fn container_class( self, class: impl Into<<Theme as Catalog>::Class<'a>>, ) -> Self
Sets the style class of the Dialog
’s container.
Trait Implementations§
Auto Trait Implementations§
impl<'a, Message, Theme, Renderer> Freeze for Dialog<'a, Message, Theme, Renderer>
impl<'a, Message, Theme = Theme, Renderer = ()> !RefUnwindSafe for Dialog<'a, Message, Theme, Renderer>
impl<'a, Message, Theme = Theme, Renderer = ()> !Send for Dialog<'a, Message, Theme, Renderer>
impl<'a, Message, Theme = Theme, Renderer = ()> !Sync for Dialog<'a, Message, Theme, Renderer>
impl<'a, Message, Theme, Renderer> Unpin for Dialog<'a, Message, Theme, Renderer>
impl<'a, Message, Theme = Theme, Renderer = ()> !UnwindSafe for Dialog<'a, Message, Theme, Renderer>
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