# Struct cairo::Region [−] [src]

    pub struct Region(_);

## Methods

### `impl Region`
[src]

#### `fn create() -> Region`

#### `fn create_rectangle(rectangle: &RectangleInt) -> Region`

#### `fn copy(&self) -> Region`

#### `fn status(&self) -> Status`

#### `fn get_extents(&self, rectangle: &mut RectangleInt)`

#### `fn num_rectangles(&self) -> i32`

#### `fn get_rectangle(&self, nth: i32) -> RectangleInt`

#### `fn is_empty(&self) -> bool`

#### `fn contains_point(&self, x: i32, y: i32) -> bool`

#### `fn contains_rectangle(&self, rectangle: &RectangleInt) -> RegionOverlap`

#### `fn translate(&self, dx: i32, dy: i32)`

#### `fn intersect(&self, other: &Region) -> Status`

#### `fn intersect_rectangle(&self, rectangle: &RectangleInt) -> Status`

#### `fn subtract(&self, other: &Region) -> Status`

#### `fn subtract_rectangle(&self, rectangle: &RectangleInt) -> Status`

#### `fn union(&self, other: &Region) -> Status`

#### `fn union_rectangle(&self, rectangle: &RectangleInt) -> Status`

#### `fn xor(&self, other: &Region) -> Status`

#### `fn xor_rectangle(&self, rectangle: &RectangleInt) -> Status`

## Trait Implementations

### `impl AsRef<Region> for Region`
[src]

#### `fn as_ref(&self) -> &Region`

Performs the conversion.

### `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

### `impl Drop for Region`
[src]

#### `fn drop(&mut self)`

A method called when the value goes out of scope. Read more

### `impl PartialEq for Region`
[src]

#### `fn eq(&self, other: &Region) -> bool`

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

#### `fn ne(&self, other: &Rhs) -> bool`
1.0.0

This method tests for `!=`.

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result
+
  Collapse/expand all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)