pub struct Page {
pub size: Size,
pub scene: Scene,
pub placement: Affine,
pub clip: Rect,
pub area: GlyphArea,
}Expand description
One page: its sheet, what is painted on it, and where.
Fields§
§size: SizeThe sheet, in PDF points.
scene: SceneWhat the page shows, in the renderer’s coordinates.
placement: AffineScene coordinates to the page’s (PDF points, y up, origin at the sheet’s lower left): a renderer’s y-down pixels on a sheet with margins are a scale, a flip and a move.
clip: RectThe part of the scene the page shows, in scene coordinates; anything outside is clipped.
area: GlyphAreaWhich glyphs the page keeps, in scene coordinates.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Page
impl !UnwindSafe for Page
impl Freeze for Page
impl Send for Page
impl Sync for Page
impl Unpin for Page
impl UnsafeUnpin for Page
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.