pub struct RenderPage {
pub page_number: usize,
pub commands: Vec<DrawCommand>,
pub content_commands: Vec<DrawCommand>,
pub chrome_commands: Vec<DrawCommand>,
pub overlay_commands: Vec<DrawCommand>,
pub overlay_items: Vec<OverlayItem>,
pub annotations: Vec<PageAnnotation>,
pub metrics: PageMetrics,
}Expand description
Page represented as backend-agnostic draw commands.
Fields§
§page_number: usize1-based page number.
commands: Vec<DrawCommand>Legacy merged command stream.
This remains for compatibility and is kept in sync with
content_commands, chrome_commands, and overlay_commands.
content_commands: Vec<DrawCommand>Content-layer draw commands (deterministic pagination output).
chrome_commands: Vec<DrawCommand>Chrome-layer draw commands (header/footer/progress and similar).
overlay_commands: Vec<DrawCommand>Overlay draw commands attached after content/chrome layout.
overlay_items: Vec<OverlayItem>Structured overlay items attached by composer APIs.
annotations: Vec<PageAnnotation>Structured non-draw annotations associated with this page.
metrics: PageMetricsPer-page metrics for navigation/progress consumers.
Implementations§
Source§impl RenderPage
impl RenderPage
Sourcepub fn push_content_command(&mut self, cmd: DrawCommand)
pub fn push_content_command(&mut self, cmd: DrawCommand)
Push a content-layer command.
Sourcepub fn push_chrome_command(&mut self, cmd: DrawCommand)
pub fn push_chrome_command(&mut self, cmd: DrawCommand)
Push a chrome-layer command.
Sourcepub fn push_overlay_command(&mut self, cmd: DrawCommand)
pub fn push_overlay_command(&mut self, cmd: DrawCommand)
Push an overlay-layer command.
Sourcepub fn sync_commands(&mut self)
pub fn sync_commands(&mut self)
Rebuild legacy merged commands from split layers.
Trait Implementations§
Source§impl Clone for RenderPage
impl Clone for RenderPage
Source§fn clone(&self) -> RenderPage
fn clone(&self) -> RenderPage
Returns a duplicate 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 RenderPage
impl Debug for RenderPage
Source§impl Default for RenderPage
impl Default for RenderPage
Source§fn default() -> RenderPage
fn default() -> RenderPage
Returns the “default value” for a type. Read more
Source§impl PartialEq for RenderPage
impl PartialEq for RenderPage
impl StructuralPartialEq for RenderPage
Auto Trait Implementations§
impl Freeze for RenderPage
impl RefUnwindSafe for RenderPage
impl Send for RenderPage
impl Sync for RenderPage
impl Unpin for RenderPage
impl UnsafeUnpin for RenderPage
impl UnwindSafe for RenderPage
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