pub struct DialogStyle {
pub background: Option<Color>,
pub border: Option<Color>,
pub border_width: Option<f32>,
pub radius: Option<f32>,
pub backdrop: Option<Backdrop>,
pub title_size: Option<f32>,
pub danger: Option<Color>,
}Fields§
§background: Option<Color>§border: Option<Color>§border_width: Option<f32>§radius: Option<f32>§backdrop: Option<Backdrop>§title_size: Option<f32>§danger: Option<Color>Implementations§
Source§impl DialogStyle
impl DialogStyle
pub const fn new() -> DialogStyle
pub const fn background(self, color: Color) -> DialogStyle
pub const fn border(self, color: Color) -> DialogStyle
pub const fn border_width(self, width: f32) -> DialogStyle
pub const fn radius(self, radius: f32) -> DialogStyle
pub const fn backdrop(self, backdrop: Backdrop) -> DialogStyle
pub const fn title_size(self, size: f32) -> DialogStyle
pub const fn danger(self, color: Color) -> DialogStyle
Trait Implementations§
Source§impl Clone for DialogStyle
impl Clone for DialogStyle
Source§fn clone(&self) -> DialogStyle
fn clone(&self) -> DialogStyle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DialogStyle
Source§impl Debug for DialogStyle
impl Debug for DialogStyle
Source§impl Default for DialogStyle
impl Default for DialogStyle
Source§fn default() -> DialogStyle
fn default() -> DialogStyle
Returns the “default value” for a type. Read more
Source§impl PartialEq for DialogStyle
impl PartialEq for DialogStyle
impl StructuralPartialEq for DialogStyle
Auto Trait Implementations§
impl Freeze for DialogStyle
impl RefUnwindSafe for DialogStyle
impl Send for DialogStyle
impl Sync for DialogStyle
impl Unpin for DialogStyle
impl UnsafeUnpin for DialogStyle
impl UnwindSafe for DialogStyle
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