[][src]Struct polyhorn_android::styles::Border

pub struct Border {
    pub width: Dimension<f32>,
    pub style: BorderStyle,
    pub color: Color,
}

Controls the appearance of a border shown around the dimensions of a view.

Fields

width: Dimension<f32>

Controls the thickness of a border rendered around a view. If the dimension resolves to either undefined or auto, no border will be shown. If the dimension is a percentage, it will be resolved relative to the width of the view's bounding box. Note: even if this is a vertical border, it will still be resolved relative to the width.

style: BorderStyle

This is the style that is used to draw the border.

color: Color

This is the color that is used to draw the border. If the color is translucent (i.e. the alpha channel is not 1.0), the border color will be composited over the background color of the view (if present) using gamma-correct color blending. If the view itself is translucent or transparent, the platform's own display compositor might use non-gamma-correct color blending when compositing this view on top of any underlying views.

Trait Implementations

impl Clone for Border[src]

impl Copy for Border[src]

impl Debug for Border[src]

impl Default for Border[src]

impl PartialEq<Border> for Border[src]

impl StructuralPartialEq for Border[src]

impl ToTokens 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<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

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

impl<T> AsAny for T where
    T: Any
[src]

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

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

impl<T, U> ConvertInto<U> for T where
    U: ConvertFrom<T>, 
[src]

impl<'a, T> Desc<'a, T> for T[src]

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

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

impl<T> IsDefault for T where
    T: PartialEq<T> + Default + Copy
[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.