pub struct Builder<'a> { /* private fields */ }Expand description
Builds one chunk’s commands, turning the layers they are drawn in into property-tree nodes under the chunk’s transform.
Implementations§
Source§impl<'a> Builder<'a>
impl<'a> Builder<'a>
Sourcepub fn new(
trees: &'a mut Trees,
transform: Id,
clip: Id,
effect: Option<Id>,
) -> Builder<'a>
pub fn new( trees: &'a mut Trees, transform: Id, clip: Id, effect: Option<Id>, ) -> Builder<'a>
Commands drawn under transform, inside clip and effect.
Sourcepub fn push_layer(&mut self, blend: Blend, bounds: Option<BezPath>)
pub fn push_layer(&mut self, blend: Blend, bounds: Option<BezPath>)
Opens a layer with blend, bounded by bounds.
pub fn finish(self) -> (Vec<Command>, Made)
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Builder<'a>
impl<'a> !UnwindSafe for Builder<'a>
impl<'a> Freeze for Builder<'a>
impl<'a> Send for Builder<'a>
impl<'a> Sync for Builder<'a>
impl<'a> Unpin for Builder<'a>
impl<'a> UnsafeUnpin for Builder<'a>
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