Struct pixels_graphics_lib::ui::styles::DialogStyle
source · pub struct DialogStyle {
pub bounds: Rect,
pub background: Option<Color>,
pub text: Color,
pub button: ButtonStyle,
pub text_field: TextFieldStyle,
pub toggle_button: ToggleButtonStyle,
pub border: Option<Color>,
pub shadow: Option<Color>,
pub shade: Option<Color>,
}
Fields§
§bounds: Rect
§background: Option<Color>
§text: Color
§text_field: TextFieldStyle
§border: Option<Color>
§shadow: Option<Color>
§shade: Option<Color>
Implementations§
source§impl DialogStyle
impl DialogStyle
pub fn new_default_size(size: (usize, usize)) -> Self
pub fn new_default(bounds: Rect) -> Self
pub fn new( bounds: Rect, background: Option<Color>, text: Color, button: ButtonStyle, text_field: TextFieldStyle, toggle_button: ToggleButtonStyle, border: Option<Color>, shadow: Option<Color>, shade: Option<Color> ) -> Self
Trait Implementations§
source§impl Clone for DialogStyle
impl Clone for DialogStyle
source§fn clone(&self) -> DialogStyle
fn clone(&self) -> DialogStyle
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 DialogStyle
impl Debug for DialogStyle
source§impl PartialEq<DialogStyle> for DialogStyle
impl PartialEq<DialogStyle> for DialogStyle
source§fn eq(&self, other: &DialogStyle) -> bool
fn eq(&self, other: &DialogStyle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DialogStyle
impl StructuralEq for DialogStyle
impl StructuralPartialEq for DialogStyle
Auto Trait Implementations§
impl RefUnwindSafe for DialogStyle
impl Send for DialogStyle
impl Sync for DialogStyle
impl Unpin for DialogStyle
impl UnwindSafe for DialogStyle
Blanket Implementations§
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.