Struct webrender_api::display_item::LineDisplayItem
source · 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§
source§impl Clone for LineDisplayItem
impl Clone for LineDisplayItem
source§fn clone(&self) -> LineDisplayItem
fn clone(&self) -> LineDisplayItem
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LineDisplayItem
impl Debug for LineDisplayItem
source§impl Default for LineDisplayItem
impl Default for LineDisplayItem
source§fn default() -> LineDisplayItem
fn default() -> LineDisplayItem
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for LineDisplayItem
impl<'de> Deserialize<'de> for LineDisplayItem
source§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
source§impl PartialEq for LineDisplayItem
impl PartialEq for LineDisplayItem
source§fn eq(&self, other: &LineDisplayItem) -> bool
fn eq(&self, other: &LineDisplayItem) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Peek for LineDisplayItem
impl Peek for LineDisplayItem
source§impl Poke for LineDisplayItem
impl Poke for LineDisplayItem
source§impl Serialize for LineDisplayItem
impl Serialize for LineDisplayItem
impl Copy for LineDisplayItem
impl StructuralPartialEq for LineDisplayItem
Auto Trait Implementations§
impl Freeze for LineDisplayItem
impl RefUnwindSafe for LineDisplayItem
impl Send for LineDisplayItem
impl Sync for LineDisplayItem
impl Unpin for LineDisplayItem
impl UnwindSafe for LineDisplayItem
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more