pub struct CornerTrait {
pub corner_radius: Option<f64>,
pub corner_smoothing: Option<f64>,
pub rectangle_corner_radii: Option<Vec<f64>>,
}
Fields§
§corner_radius: Option<f64>
Radius of each corner if a single radius is set for all corners
corner_smoothing: Option<f64>
A value that lets you control how "smooth" the corners are. Ranges from 0 to 1. 0 is the default and means that the corner is perfectly circular. A value of 0.6 means the corner matches the iOS 7 "squircle" icon shape. Other values produce various other curves.
rectangle_corner_radii: Option<Vec<f64>>
Array of length 4 of the radius of each corner of the frame, starting in the top left and proceeding clockwise. Values are given in the order top-left, top-right, bottom-right, bottom-left.
Implementations§
Source§impl CornerTrait
impl CornerTrait
pub fn new() -> CornerTrait
Trait Implementations§
Source§impl Clone for CornerTrait
impl Clone for CornerTrait
Source§fn clone(&self) -> CornerTrait
fn clone(&self) -> CornerTrait
Returns a duplicate of the value. Read more
1.0.0 · 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 CornerTrait
impl Debug for CornerTrait
Source§impl Default for CornerTrait
impl Default for CornerTrait
Source§fn default() -> CornerTrait
fn default() -> CornerTrait
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CornerTrait
impl<'de> Deserialize<'de> for CornerTrait
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CornerTrait
impl PartialEq for CornerTrait
Source§impl Serialize for CornerTrait
impl Serialize for CornerTrait
impl StructuralPartialEq for CornerTrait
Auto Trait Implementations§
impl Freeze for CornerTrait
impl RefUnwindSafe for CornerTrait
impl Send for CornerTrait
impl Sync for CornerTrait
impl Unpin for CornerTrait
impl UnwindSafe for CornerTrait
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