pub struct PdfiumMatrix { /* private fields */ }Expand description
Rust interface to FS_MATRIX
Implementations§
Source§impl PdfiumMatrix
impl PdfiumMatrix
Sourcepub const fn new(a: f32, b: f32, c: f32, d: f32, e: f32, f: f32) -> Self
pub const fn new(a: f32, b: f32, c: f32, d: f32, e: f32, f: f32) -> Self
Creates a new PdfiumMatrix with the given matrix values.
Sourcepub const fn new_scale_pan(scale: f32, pan_x: f32, pan_y: f32) -> Self
pub const fn new_scale_pan(scale: f32, pan_x: f32, pan_y: f32) -> Self
Creates a new PdfiumMatrix with the given scale and pan values.
Sourcepub const fn new_scale(scale: f32) -> Self
pub const fn new_scale(scale: f32) -> Self
Creates a new PdfiumMatrix with the given scale value.
Sourcepub const fn zero() -> Self
pub const fn zero() -> Self
Creates a new PdfiumMatrix object with all matrix values set to 0.0.
Sourcepub const fn identity() -> Self
pub const fn identity() -> Self
Creates a new PdfiumMatrix object with matrix values a and d set to 1.0
and all other values set to 0.0.
Trait Implementations§
Source§impl Clone for PdfiumMatrix
impl Clone for PdfiumMatrix
Source§fn clone(&self) -> PdfiumMatrix
fn clone(&self) -> PdfiumMatrix
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 PdfiumMatrix
impl Debug for PdfiumMatrix
Source§impl From<&PdfiumMatrix> for *const FS_MATRIX
impl From<&PdfiumMatrix> for *const FS_MATRIX
Source§fn from(matrix: &PdfiumMatrix) -> Self
fn from(matrix: &PdfiumMatrix) -> Self
Converts to this type from the input type.
Source§impl From<&PdfiumMatrix> for FS_MATRIX
impl From<&PdfiumMatrix> for FS_MATRIX
Source§fn from(matrix: &PdfiumMatrix) -> Self
fn from(matrix: &PdfiumMatrix) -> Self
Converts to this type from the input type.
Source§impl From<_FS_MATRIX_> for PdfiumMatrix
impl From<_FS_MATRIX_> for PdfiumMatrix
impl Copy for PdfiumMatrix
Auto Trait Implementations§
impl Freeze for PdfiumMatrix
impl RefUnwindSafe for PdfiumMatrix
impl Send for PdfiumMatrix
impl Sync for PdfiumMatrix
impl Unpin for PdfiumMatrix
impl UnwindSafe for PdfiumMatrix
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<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>
Converts
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>
Converts
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