Struct picto::Region
[−]
[src]
pub struct Region { pub x: u32, pub y: u32, pub width: u32, pub height: u32, }
A region within a buffer or view.
Fields
x: u32
y: u32
width: u32
height: u32
Methods
impl Region
[src]
fn new() -> Builder
Create a Builder
to create an Region
.
fn from(x: u32, y: u32, width: u32, height: u32) -> Self
Create an Region
from the given parameters.
fn relative(&self) -> Coordinates
Get an iterator over relative coordinates, based on the coordinates within the parent view.
fn absolute(&self) -> Coordinates
Get an iterator over absolute coordinates.
Trait Implementations
impl Eq for Region
[src]
impl PartialEq for Region
[src]
fn eq(&self, __arg_0: &Region) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Region) -> bool
This method tests for !=
.
impl Copy for Region
[src]
impl Clone for Region
[src]
fn clone(&self) -> Region
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more