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

Methods

impl Region
[src]

Create a Builder to create an Region.

Create an Region from the given parameters.

Get an iterator over relative coordinates, based on the coordinates within the parent view.

Get an iterator over absolute coordinates.

Trait Implementations

impl Eq for Region
[src]

impl PartialEq for Region
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Copy for Region
[src]

impl Clone for Region
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Region
[src]

Formats the value using the given formatter.