pub struct Rectangle {
pub color: Color,
pub corner_radii: CornerRadii,
}Expand description
Represents a rectangle with a specified color and corner radii.
Fields§
§color: ColorThe fill color of the rectangle.
corner_radii: CornerRadiiThe corner radii for rounded edges.
Trait Implementations§
Source§impl From<Clay_RectangleRenderData> for Rectangle
impl From<Clay_RectangleRenderData> for Rectangle
Source§fn from(value: Clay_RectangleRenderData) -> Self
fn from(value: Clay_RectangleRenderData) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Rectangle
impl RefUnwindSafe for Rectangle
impl Send for Rectangle
impl Sync for Rectangle
impl Unpin for Rectangle
impl UnwindSafe for Rectangle
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