[][src]Struct azul_webrender_api::LineDisplayItem

pub struct LineDisplayItem {
    pub common: CommonItemProperties,
    pub area: LayoutRect,
    pub orientation: LineOrientation,
    pub wavy_line_thickness: f32,
    pub color: ColorF,
    pub style: LineStyle,
}

Fields

common: CommonItemPropertiesarea: LayoutRect

We need a separate rect from common.clip_rect to encode cute tricks that firefox does to make a series of text-decorations seamlessly line up -- snapping the decorations to a multiple of their period, and then clipping them to their "proper" area. This rect is that "logical" snapped area that may be clipped to the right size by the clip_rect.

orientation: LineOrientation

Whether the rect is interpretted as vertical or horizontal

wavy_line_thickness: f32

This could potentially be implied from area, but we currently prefer that this is the responsibility of the layout engine. Value irrelevant for non-wavy lines.

color: ColorFstyle: LineStyle

Trait Implementations

impl Clone for LineDisplayItem[src]

impl Copy for LineDisplayItem[src]

impl Debug for LineDisplayItem[src]

impl Default for LineDisplayItem[src]

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

impl PartialEq<LineDisplayItem> for LineDisplayItem[src]

impl Peek for LineDisplayItem[src]

impl Poke for LineDisplayItem[src]

impl Serialize for LineDisplayItem[src]

impl StructuralPartialEq for LineDisplayItem[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.