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§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