# Trait cairo::prelude::Pattern [−] [src]

    pub trait Pattern {
        fn ensure_status(&self) { ... }
        fn status(&self) -> Status { ... }
        fn get_reference_count(&self) -> isize { ... }
        fn set_extend(&self, extend: Extend) { ... }
        fn get_extend(&self) -> Extend { ... }
        fn set_filter(&self, filter: Filter) { ... }
        fn get_filter(&self) -> Filter { ... }
        fn set_matrix(&self, matrix: Matrix) { ... }
        fn get_matrix(&self) -> Matrix { ... }
    }

## Provided Methods

### `fn ensure_status(&self)`

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

### `fn get_reference_count(&self) -> isize`

### `fn set_extend(&self, extend: Extend)`

### `fn get_extend(&self) -> Extend`

### `fn set_filter(&self, filter: Filter)`

### `fn get_filter(&self) -> Filter`

### `fn set_matrix(&self, matrix: Matrix)`

### `fn get_matrix(&self) -> Matrix`

## Implementors

- `impl Pattern for SolidPattern`
- `impl Pattern for LinearGradient`
- `impl Pattern for RadialGradient`
- `impl Pattern for SurfacePattern`
- `impl Pattern for Mesh`

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