pub struct ResolvedBackground { /* private fields */ }Expand description
A background fill: its color and, when the corners are rounded, their shape.
Implementations§
Source§impl ResolvedBackground
impl ResolvedBackground
Sourcepub fn new(color: Color, shape: Option<RoundedCornerShape>) -> Self
pub fn new(color: Color, shape: Option<RoundedCornerShape>) -> Self
Creates a background of color with the corner shape, or square corners when shape is
None.
Sourcepub fn shape(&self) -> Option<RoundedCornerShape>
pub fn shape(&self) -> Option<RoundedCornerShape>
Returns the corner shape, or None for square corners.
Sourcepub fn set_shape(&mut self, shape: Option<RoundedCornerShape>)
pub fn set_shape(&mut self, shape: Option<RoundedCornerShape>)
Replaces the corner shape. None gives square corners.
Trait Implementations§
Source§impl Clone for ResolvedBackground
impl Clone for ResolvedBackground
impl Copy for ResolvedBackground
Source§impl Debug for ResolvedBackground
impl Debug for ResolvedBackground
Source§impl PartialEq for ResolvedBackground
impl PartialEq for ResolvedBackground
impl StructuralPartialEq for ResolvedBackground
Auto Trait Implementations§
impl Freeze for ResolvedBackground
impl RefUnwindSafe for ResolvedBackground
impl Send for ResolvedBackground
impl Sync for ResolvedBackground
impl Unpin for ResolvedBackground
impl UnsafeUnpin for ResolvedBackground
impl UnwindSafe for ResolvedBackground
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more