pub struct CornerRadius {
pub x: Coord,
pub y: Coord,
}Expand description
How far one corner of a box is rounded, as the cascade computed it.
x runs along the top or bottom edge and y along the left or
right edge. A percentage is a percentage of the width of the box
for x and of its height for y, so it stays one until layout
knows the box.
Fields§
§x: CoordAlong the top or bottom edge.
y: CoordAlong the left or right edge.
Implementations§
Source§impl CornerRadius
impl CornerRadius
Sourcepub const SQUARE: CornerRadius
pub const SQUARE: CornerRadius
A corner that is not rounded.
Trait Implementations§
Source§impl Clone for CornerRadius
impl Clone for CornerRadius
Source§fn clone(&self) -> CornerRadius
fn clone(&self) -> CornerRadius
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CornerRadius
Source§impl Debug for CornerRadius
impl Debug for CornerRadius
Source§impl PartialEq for CornerRadius
impl PartialEq for CornerRadius
Source§impl Serialize for CornerRadius
impl Serialize for CornerRadius
impl StructuralPartialEq for CornerRadius
Auto Trait Implementations§
impl Freeze for CornerRadius
impl RefUnwindSafe for CornerRadius
impl Send for CornerRadius
impl Sync for CornerRadius
impl Unpin for CornerRadius
impl UnsafeUnpin for CornerRadius
impl UnwindSafe for CornerRadius
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,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.