pub struct LineDecorationData {
pub style: LineStyle,
pub orientation: LineOrientation,
pub wavy_line_thickness: Au,
pub color: ColorF,
}Fields§
§style: LineStyle§orientation: LineOrientation§wavy_line_thickness: Au§color: ColorFImplementations§
Source§impl LineDecorationData
impl LineDecorationData
Sourcepub fn prepare(
&self,
prim_size: LayoutSize,
prim_spatial_node_index: SpatialNodeIndex,
frame_context: &FrameBuildingContext<'_>,
frame_state: &mut FrameBuildingState<'_>,
) -> (RenderTaskId, GpuBufferAddress)
pub fn prepare( &self, prim_size: LayoutSize, prim_spatial_node_index: SpatialNodeIndex, frame_context: &FrameBuildingContext<'_>, frame_state: &mut FrameBuildingState<'_>, ) -> (RenderTaskId, GpuBufferAddress)
Per-frame preparation: derive the mask tile size from the prim’s
current local size, write the GPU block, and (for non-solid styles)
allocate a cached render task. Returns the task id and the per-
instance GPU buffer address consumed by batch.rs.
fn allocate_render_task( &self, cache_key: LineDecorationCacheKey, prim_spatial_node_index: SpatialNodeIndex, frame_context: &FrameBuildingContext<'_>, frame_state: &mut FrameBuildingState<'_>, ) -> RenderTaskId
Trait Implementations§
Source§impl MallocSizeOf for LineDecorationData
impl MallocSizeOf for LineDecorationData
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
Auto Trait Implementations§
impl Freeze for LineDecorationData
impl RefUnwindSafe for LineDecorationData
impl Send for LineDecorationData
impl Sync for LineDecorationData
impl Unpin for LineDecorationData
impl UnsafeUnpin for LineDecorationData
impl UnwindSafe for LineDecorationData
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more