Struct pdfium_render::page::PdfRect
source · [−]pub struct PdfRect {
pub bottom: PdfPoints,
pub left: PdfPoints,
pub top: PdfPoints,
pub right: PdfPoints,
}Expand description
Fields
bottom: PdfPointsleft: PdfPointstop: PdfPointsright: PdfPointsImplementations
sourceimpl PdfRect
impl PdfRect
sourcepub fn contains(&self, x: PdfPoints, y: PdfPoints) -> bool
pub fn contains(&self, x: PdfPoints, y: PdfPoints) -> bool
Returns true if the given point lies inside this PdfRect.
sourcepub fn contains_x(&self, x: PdfPoints) -> bool
pub fn contains_x(&self, x: PdfPoints) -> bool
Returns true if the given horizontal coordinate lies inside this PdfRect.
sourcepub fn contains_y(&self, y: PdfPoints) -> bool
pub fn contains_y(&self, y: PdfPoints) -> bool
Returns true if the given vertical coordinate lies inside this PdfRect.
sourcepub fn is_inside(&self, rect: &PdfRect) -> bool
pub fn is_inside(&self, rect: &PdfRect) -> bool
Returns true if the bounds of this PdfRect lie entirely within the given rectangle.
sourcepub fn does_overlap(&self, rect: &PdfRect) -> bool
pub fn does_overlap(&self, rect: &PdfRect) -> bool
Returns true if the bounds of this PdfRect lie at least partially within
the given rectangle.
Trait Implementations
impl Copy for PdfRect
impl StructuralPartialEq for PdfRect
Auto Trait Implementations
impl RefUnwindSafe for PdfRect
impl Send for PdfRect
impl Sync for PdfRect
impl Unpin for PdfRect
impl UnwindSafe for PdfRect
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