pub enum PositionFrame {
Sheet,
Display,
}Expand description
Coordinate frame positioned items are reported in and region rects are read in.
Variants§
Sheet
The visible page box (CropBox ∩ MediaBox, else the MediaBox) as laid
out in the content stream, /Rotate not applied. Items use the box’s
lower-left corner as origin with y growing upward; regions use its
top-left corner with y growing downward. A page whose text is
predominantly rotated is turned so that text reads left-to-right (see
PageRotation), and its items live in that turned frame.
Display
The rendered page: the visible page box turned clockwise by the
page’s inheritable /Rotate, with the same origin conventions as
PositionFrame::Sheet. The turn of a predominantly rotated page is
undone first, so every item sits where a renderer draws it and a
region rect taken from a rendered page image selects the text under
it.
Trait Implementations§
Source§impl Clone for PositionFrame
impl Clone for PositionFrame
impl Copy for PositionFrame
Source§impl Debug for PositionFrame
impl Debug for PositionFrame
Source§impl Default for PositionFrame
impl Default for PositionFrame
impl Eq for PositionFrame
Source§impl PartialEq for PositionFrame
impl PartialEq for PositionFrame
impl StructuralPartialEq for PositionFrame
Auto Trait Implementations§
impl Freeze for PositionFrame
impl RefUnwindSafe for PositionFrame
impl Send for PositionFrame
impl Sync for PositionFrame
impl Unpin for PositionFrame
impl UnsafeUnpin for PositionFrame
impl UnwindSafe for PositionFrame
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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