pub struct DisplayList {
pub output_size: PixelSize,
pub background: Option<Color>,
pub commands: Vec<DrawCommand>,
}Expand description
Flat drawing commands with composed local-to-device transforms.
Fields remain inspectable/editable; consumers must preflight edited lists. This is not a PreparedCpuFrame or a renderer and allocates no output pixels.
Fields§
§output_size: PixelSizeInteger output size, independent of logical design dimensions.
background: Option<Color>Optional floating background color; None leaves the output transparent.
commands: Vec<DrawCommand>Ordered fills and balanced isolated-layer boundaries.
Implementations§
Source§impl DisplayList
impl DisplayList
Sourcepub fn validate(
self,
limits: ValidationLimits,
) -> Result<ValidatedDisplayList, ValidationError>
pub fn validate( self, limits: ValidationLimits, ) -> Result<ValidatedDisplayList, ValidationError>
Consumes an editable list into a shared immutable validated snapshot.
Sourcepub fn preflight(
&self,
limits: ValidationLimits,
) -> Result<SceneStats, ValidationError>
pub fn preflight( &self, limits: ValidationLimits, ) -> Result<SceneStats, ValidationError>
Validates all commands, including transparent/offscreen geometry.
Limits count commands and every path verb, and layer nesting determines output depth. This is not a pixel/allocation budget or backend probe.
Trait Implementations§
Source§impl Clone for DisplayList
impl Clone for DisplayList
Source§impl Debug for DisplayList
impl Debug for DisplayList
Source§impl PartialEq for DisplayList
impl PartialEq for DisplayList
impl StructuralPartialEq for DisplayList
Auto Trait Implementations§
impl !RefUnwindSafe for DisplayList
impl !UnwindSafe for DisplayList
impl Forget for DisplayList
impl Freeze for DisplayList
impl Move for DisplayList
impl Send for DisplayList
impl Sync for DisplayList
impl Unpin for DisplayList
impl UnsafeUnpin for DisplayList
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