pub struct RoundedCornerShape { /* private fields */ }Implementations§
Source§impl RoundedCornerShape
impl RoundedCornerShape
pub fn new( top_left: f32, top_right: f32, bottom_right: f32, bottom_left: f32, ) -> RoundedCornerShape
pub fn uniform(radius: f32) -> RoundedCornerShape
pub fn with_radii(radii: CornerRadii) -> RoundedCornerShape
pub fn resolve(&self, width: f32, height: f32) -> CornerRadii
pub fn radii(&self) -> CornerRadii
Trait Implementations§
Source§impl Clone for RoundedCornerShape
impl Clone for RoundedCornerShape
Source§fn clone(&self) -> RoundedCornerShape
fn clone(&self) -> RoundedCornerShape
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 RoundedCornerShape
impl Debug for RoundedCornerShape
Source§impl PartialEq for RoundedCornerShape
impl PartialEq for RoundedCornerShape
impl Copy for RoundedCornerShape
impl StructuralPartialEq for RoundedCornerShape
Auto Trait Implementations§
impl Freeze for RoundedCornerShape
impl RefUnwindSafe for RoundedCornerShape
impl Send for RoundedCornerShape
impl Sync for RoundedCornerShape
impl Unpin for RoundedCornerShape
impl UnwindSafe for RoundedCornerShape
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