Struct pdfium_render::page::PdfPoints
source · [−]pub struct PdfPoints {
pub value: f32,
}Expand description
The internal coordinate system inside a PdfDocument is measured in Points, a device-independent unit equal to 1/72 inches, roughly 0.358 mm. Points are converted to pixels when a PdfPage is rendered to a PdfBitmap.
Fields
value: f32Implementations
sourceimpl PdfPoints
impl PdfPoints
sourcepub const fn zero() -> Self
pub const fn zero() -> Self
Creates a new PdfPoints object with the value 0.0.
Consider using the compile-time constant value PdfPoints::ZERO rather than calling this function directly.
sourcepub fn from_inches(inches: f32) -> Self
pub fn from_inches(inches: f32) -> Self
Creates a new PdfPoints object from the given measurement in inches.
sourcepub fn from_cm(cm: f32) -> Self
pub fn from_cm(cm: f32) -> Self
Creates a new PdfPoints object from the given measurement in centimeters.
Trait Implementations
sourceimpl AddAssign<PdfPoints> for PdfPoints
impl AddAssign<PdfPoints> for PdfPoints
sourcefn add_assign(&mut self, rhs: PdfPoints)
fn add_assign(&mut self, rhs: PdfPoints)
Performs the += operation. Read more
sourceimpl PartialEq<PdfPoints> for PdfPoints
impl PartialEq<PdfPoints> for PdfPoints
sourceimpl PartialOrd<PdfPoints> for PdfPoints
impl PartialOrd<PdfPoints> for PdfPoints
sourcefn partial_cmp(&self, other: &PdfPoints) -> Option<Ordering>
fn partial_cmp(&self, other: &PdfPoints) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
sourceimpl SubAssign<PdfPoints> for PdfPoints
impl SubAssign<PdfPoints> for PdfPoints
sourcefn sub_assign(&mut self, rhs: PdfPoints)
fn sub_assign(&mut self, rhs: PdfPoints)
Performs the -= operation. Read more
impl Copy for PdfPoints
impl StructuralPartialEq for PdfPoints
Auto Trait Implementations
impl RefUnwindSafe for PdfPoints
impl Send for PdfPoints
impl Sync for PdfPoints
impl Unpin for PdfPoints
impl UnwindSafe for PdfPoints
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more