Struct azul_webrender_api::LineDisplayItem[][src]

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Deserialize from the buffer pointed to by bytes. Read more

Return the maximum number of bytes that the serialized version of Self will occupy. Read more

Serialize into the buffer pointed to by bytes. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.