[][src]Struct azul_webrender_api::BorderRadius

#[repr(C)]pub struct BorderRadius {
    pub top_left: LayoutSize,
    pub top_right: LayoutSize,
    pub bottom_left: LayoutSize,
    pub bottom_right: LayoutSize,
}

Fields

top_left: LayoutSizetop_right: LayoutSizebottom_left: LayoutSizebottom_right: LayoutSize

Implementations

impl BorderRadius[src]

pub fn zero() -> BorderRadius[src]

pub fn uniform(radius: f32) -> BorderRadius[src]

pub fn uniform_size(radius: LayoutSize) -> BorderRadius[src]

pub fn is_uniform(&self) -> Option<f32>[src]

pub fn is_uniform_size(&self) -> Option<LayoutSize>[src]

pub fn is_zero(&self) -> bool[src]

Return whether, in each corner, the radius in either direction is zero. This means that none of the corners are rounded.

Trait Implementations

impl Clone for BorderRadius[src]

impl Copy for BorderRadius[src]

impl Debug for BorderRadius[src]

impl Default for BorderRadius[src]

impl<'de> Deserialize<'de> for BorderRadius[src]

impl MallocSizeOf for BorderRadius[src]

impl PartialEq<BorderRadius> for BorderRadius[src]

impl Peek for BorderRadius[src]

impl Poke for BorderRadius[src]

impl Serialize for BorderRadius[src]

impl StructuralPartialEq for BorderRadius[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.