[][src]Struct orbtk_utils::Border

pub struct Border { /* fields omitted */ }

Describes a border of a shape with border brush, thickness and radius.

Implementations

impl Border[src]

pub fn create() -> BorderBuilder[src]

Creates a new BorderBuilder with default values.

pub fn brush(&self) -> &Brush[src]

Gets the border brush.

pub fn set_brush<B: Into<Brush>>(&mut self, brush: B)[src]

Sets the border brush.

pub fn thickness(&self) -> Thickness[src]

Gets the thickness.

pub fn set_thickness(&mut self, thickness: Thickness)[src]

Sets the thickness.

pub fn radius(&self) -> f64[src]

Gets the radius.

pub fn set_radius(&mut self, radius: f64)[src]

Sets the radius.

Trait Implementations

impl Clone for Border[src]

impl Debug for Border[src]

impl Default for Border[src]

impl PartialEq<Border> for Border[src]

impl StructuralPartialEq for Border[src]

Auto Trait Implementations

impl RefUnwindSafe for Border

impl Send for Border

impl Sync for Border

impl Unpin for Border

impl UnwindSafe for Border

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> 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.