pub struct CornerRadius {
pub nw: f32,
pub ne: f32,
pub sw: f32,
pub se: f32,
}Expand description
Per-corner radius of a rounded rectangle, in logical pixels.
Backends that only support a single radius use the maximum of the
four corners (or nw if they’re all expected equal).
Fields§
§nw: f32North-west (top-left).
ne: f32North-east (top-right).
sw: f32South-west (bottom-left).
se: f32South-east (bottom-right).
Implementations§
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 moreSource§impl Debug for CornerRadius
impl Debug for CornerRadius
Source§impl Default for CornerRadius
impl Default for CornerRadius
Source§fn default() -> CornerRadius
fn default() -> CornerRadius
Returns the “default value” for a type. Read more
Source§impl PartialEq for CornerRadius
impl PartialEq for CornerRadius
Source§fn eq(&self, other: &CornerRadius) -> bool
fn eq(&self, other: &CornerRadius) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy 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> AppLifecycle for Twhere
T: ?Sized,
impl<T> AppLifecycle for Twhere
T: ?Sized,
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