Struct pixels_graphics_lib::ui::styles::ButtonStyle
source · pub struct ButtonStyle {
pub text: ColorSet,
pub text_size: TextSize,
pub border: ColorSet,
pub shadow: ColorSet,
pub rounding: usize,
}
Fields§
§text: ColorSet
§text_size: TextSize
§border: ColorSet
§shadow: ColorSet
§rounding: usize
Trait Implementations§
source§impl Clone for ButtonStyle
impl Clone for ButtonStyle
source§fn clone(&self) -> ButtonStyle
fn clone(&self) -> ButtonStyle
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 ButtonStyle
impl Debug for ButtonStyle
source§impl Default for ButtonStyle
impl Default for ButtonStyle
source§impl PartialEq<ButtonStyle> for ButtonStyle
impl PartialEq<ButtonStyle> for ButtonStyle
source§fn eq(&self, other: &ButtonStyle) -> bool
fn eq(&self, other: &ButtonStyle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ButtonStyle
impl StructuralEq for ButtonStyle
impl StructuralPartialEq for ButtonStyle
Auto Trait Implementations§
impl RefUnwindSafe for ButtonStyle
impl Send for ButtonStyle
impl Sync for ButtonStyle
impl Unpin for ButtonStyle
impl UnwindSafe for ButtonStyle
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()
.