Struct mupdf_sys::fz_rect [−][src]
fz_rect is a rectangle represented by two diagonally opposite corners at arbitrary coordinates.
Rectangles are always axis-aligned with the X- and Y- axes. The relationship between the coordinates are that x0 <= x1 and y0 <= y1 in all cases except for infinite rectangles. The area of a rectangle is defined as (x1 - x0) * (y1 - y0). If either x0 > x1 or y0 > y1 is true for a given rectangle then it is defined to be infinite.
To check for empty or infinite rectangles use fz_is_empty_rect and fz_is_infinite_rect.
x0, y0: The top left corner.
x1, y1: The bottom right corner.
Fields
x0: f32
y0: f32
x1: f32
y1: f32
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for fz_rect
impl Send for fz_rect
impl Sync for fz_rect
impl Unpin for fz_rect
impl UnwindSafe for fz_rect
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,