pub struct AnnotRect {
pub x0: f64,
pub y0: f64,
pub x1: f64,
pub y1: f64,
}Expand description
PDF annotation rectangle in page user-space coordinates.
Coordinates are PDF user units (1/72 inch) with the origin at the bottom-left of the page. The rectangle is the annotation’s clickable / visible area on the page; for markup annotations it is also used as the bounding box of the marked text region.
(x0, y0) is one corner and (x1, y1) is the opposite corner; the
constructor does not require a particular ordering, but a zero-area
rectangle (width == 0 or height == 0) is rejected by
super::AnnotationBuilder::build.
Fields§
§x0: f64X coordinate of the first corner, in PDF user-space points.
y0: f64Y coordinate of the first corner, in PDF user-space points.
x1: f64X coordinate of the opposite corner, in PDF user-space points.
y1: f64Y coordinate of the opposite corner, in PDF user-space points.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AnnotRect
impl RefUnwindSafe for AnnotRect
impl Send for AnnotRect
impl Sync for AnnotRect
impl Unpin for AnnotRect
impl UnsafeUnpin for AnnotRect
impl UnwindSafe for AnnotRect
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<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