Struct pdfium_render::path_segment::PdfPathSegment
source · pub struct PdfPathSegment<'a> { /* private fields */ }Expand description
A single PdfPathSegment in a PdfPathSegments collection.
Implementations§
source§impl<'a> PdfPathSegment<'a>
impl<'a> PdfPathSegment<'a>
sourcepub fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
pub fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
Returns the PdfiumLibraryBindings used by this PdfPathSegment.
sourcepub fn segment_type(&self) -> PdfPathSegmentType
pub fn segment_type(&self) -> PdfPathSegmentType
Returns the PdfPathSegmentType of this PdfPathSegment.
sourcepub fn is_close(&self) -> bool
pub fn is_close(&self) -> bool
Returns true if this PdfPathSegment closes the current sub-path.
sourcepub fn point(&self) -> (PdfPoints, PdfPoints)
pub fn point(&self) -> (PdfPoints, PdfPoints)
Returns the horizontal and vertical destination positions of this PdfPathSegment.
sourcepub fn x(&self) -> PdfPoints
pub fn x(&self) -> PdfPoints
Returns the horizontal destination position of this PdfPathSegment.
sourcepub fn y(&self) -> PdfPoints
pub fn y(&self) -> PdfPoints
Returns the vertical destination position of this PdfPathSegment.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for PdfPathSegment<'a>
impl<'a> !Send for PdfPathSegment<'a>
impl<'a> !Sync for PdfPathSegment<'a>
impl<'a> Unpin for PdfPathSegment<'a>
impl<'a> !UnwindSafe for PdfPathSegment<'a>
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