Struct pixels_graphics_lib::ui::styles::AlertStyle
source · pub struct AlertStyle {
pub background: Option<Color>,
pub text: Color,
pub warning_text: Color,
pub text_size: TextSize,
pub button: ButtonStyle,
pub border: Option<Color>,
pub shadow: Option<Color>,
pub shade: Option<Color>,
}
Fields§
§background: Option<Color>
§text: Color
§warning_text: Color
§text_size: TextSize
§border: Option<Color>
§shadow: Option<Color>
§shade: Option<Color>
Trait Implementations§
source§impl Clone for AlertStyle
impl Clone for AlertStyle
source§fn clone(&self) -> AlertStyle
fn clone(&self) -> AlertStyle
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 AlertStyle
impl Debug for AlertStyle
source§impl Default for AlertStyle
impl Default for AlertStyle
source§impl PartialEq<AlertStyle> for AlertStyle
impl PartialEq<AlertStyle> for AlertStyle
source§fn eq(&self, other: &AlertStyle) -> bool
fn eq(&self, other: &AlertStyle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for AlertStyle
impl StructuralEq for AlertStyle
impl StructuralPartialEq for AlertStyle
Auto Trait Implementations§
impl RefUnwindSafe for AlertStyle
impl Send for AlertStyle
impl Sync for AlertStyle
impl Unpin for AlertStyle
impl UnwindSafe for AlertStyle
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<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.§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for Pwhere R: Read + ReadEndian<P>, P: Default,
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.