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.