struct PictureChainBuilder {
    current: PictureSource,
    spatial_node_index: SpatialNodeIndex,
    flags: PrimitiveFlags,
    raster_space: RasterSpace,
    set_resolve_target: bool,
    establishes_sub_graph: bool,
}
Expand description

Helper struct to build picture chains during scene building from a flattened stacking context struct.

Fields§

§current: PictureSource

The current input source for the next picture

§spatial_node_index: SpatialNodeIndex

Positioning node for this picture chain

§flags: PrimitiveFlags

Prim flags for any pictures in this chain

§raster_space: RasterSpace

Requested raster space for enclosing stacking context

§set_resolve_target: bool

If true, set first picture as a resolve target

§establishes_sub_graph: bool

If true, mark the last picture as a sub-graph

Implementations§

source§

impl PictureChainBuilder

source

fn from_prim_list( prim_list: PrimitiveList, flags: PrimitiveFlags, spatial_node_index: SpatialNodeIndex, raster_space: RasterSpace, is_sub_graph: bool ) -> Self

Create a new picture chain builder, from a primitive list

source

fn from_instance( instance: PrimitiveInstance, flags: PrimitiveFlags, spatial_node_index: SpatialNodeIndex, raster_space: RasterSpace ) -> Self

Create a new picture chain builder, from a picture wrapper instance

source

fn add_picture( self, composite_mode: PictureCompositeMode, clip_node_id: ClipNodeId, context_3d: Picture3DContext<OrderedPictureChild>, interners: &mut Interners, prim_store: &mut PrimitiveStore, prim_instances: &mut Vec<PrimitiveInstance>, clip_tree_builder: &mut ClipTreeBuilder ) -> PictureChainBuilder

Wrap the existing content with a new picture with the given parameters

source

fn finalize( self, clip_node_id: ClipNodeId, interners: &mut Interners, prim_store: &mut PrimitiveStore, clip_tree_builder: &mut ClipTreeBuilder ) -> PrimitiveInstance

Finish building this picture chain. Set the clip chain on the outermost picture

source

fn has_picture(&self) -> bool

Returns true if this builder wraps a picture

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where F: FnOnce(&Self) -> bool,

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

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.