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: CommonItemProperties
area: 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: ColorF
style: LineStyle
Trait Implementations
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
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 !=
.
Auto Trait Implementations
impl RefUnwindSafe for LineDisplayItem
impl Send for LineDisplayItem
impl Sync for LineDisplayItem
impl Unpin for LineDisplayItem
impl UnwindSafe for LineDisplayItem
Blanket Implementations
Mutably borrows from an owned value. Read more