pub struct FrameRectangle {
pub background: FrameFill,
pub border_fill: FrameFill,
pub border_width: f32,
pub radius: BorderRadius,
pub opacity: f32,
}Expand description
rectangle appearance retained in the frame
Fields§
§background: FrameFill§border_fill: FrameFill§border_width: f32§radius: BorderRadius§opacity: f32Implementations§
Source§impl FrameRectangle
impl FrameRectangle
Sourcepub fn new() -> Self
pub fn new() -> Self
creates a new FrameRectangle
Sourcepub fn background(self, value: impl Into<FrameFill>) -> Self
pub fn background(self, value: impl Into<FrameFill>) -> Self
sets Self::background
Sourcepub fn border_fill(self, value: impl Into<FrameFill>) -> Self
pub fn border_fill(self, value: impl Into<FrameFill>) -> Self
sets Self::border_fill
Sourcepub fn border_width(self, value: f32) -> Self
pub fn border_width(self, value: f32) -> Self
sets Self::border_width
Sourcepub fn radius(self, value: BorderRadius) -> Self
pub fn radius(self, value: BorderRadius) -> Self
sets Self::radius
Sourcepub fn opacity(self, value: f32) -> Self
pub fn opacity(self, value: f32) -> Self
sets Self::opacity
Source§impl FrameRectangle
impl FrameRectangle
pub fn view<'a>(&self, list: &'a DisplayList) -> Rectangle<'a>
Trait Implementations§
Source§impl Clone for FrameRectangle
impl Clone for FrameRectangle
Source§impl Compare for FrameRectangle
impl Compare for FrameRectangle
fn equal(a: &Self, left: &DisplayList, b: &Self, right: &DisplayList) -> bool
fn hash(value: &Self, list: &DisplayList, state: &mut impl Hasher)
impl Copy for FrameRectangle
Source§impl Debug for FrameRectangle
impl Debug for FrameRectangle
Source§impl Default for FrameRectangle
impl Default for FrameRectangle
Source§impl PartialEq for FrameRectangle
impl PartialEq for FrameRectangle
impl StructuralPartialEq for FrameRectangle
Auto Trait Implementations§
impl Forget for FrameRectangle
impl Freeze for FrameRectangle
impl Move for FrameRectangle
impl RefUnwindSafe for FrameRectangle
impl Send for FrameRectangle
impl Sync for FrameRectangle
impl Unpin for FrameRectangle
impl UnsafeUnpin for FrameRectangle
impl UnwindSafe for FrameRectangle
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