Struct picto::Region [−][src]
Expand description
A region within a buffer or view.
Fields
x: u32
y: u32
width: u32
height: u32
Implementations
Create an Region
from the given parameters.
pub fn relative(&self) -> CoordinatesⓘNotable traits for Coordinatesimpl Iterator for Coordinates type Item = (u32, u32);
pub fn relative(&self) -> CoordinatesⓘNotable traits for Coordinatesimpl Iterator for Coordinates type Item = (u32, u32);
Notable traits for Coordinates
impl Iterator for Coordinates type Item = (u32, u32);
Get an iterator over relative coordinates, based on the coordinates within the parent view.
pub fn absolute(&self) -> CoordinatesⓘNotable traits for Coordinatesimpl Iterator for Coordinates type Item = (u32, u32);
pub fn absolute(&self) -> CoordinatesⓘNotable traits for Coordinatesimpl Iterator for Coordinates type Item = (u32, u32);
Notable traits for Coordinates
impl Iterator for Coordinates type Item = (u32, u32);
Get an iterator over absolute coordinates.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Region
impl UnwindSafe for Region
Blanket Implementations
Mutably borrows from an owned value. Read more