[][src]Struct blend2d::pattern::Pattern

#[repr(transparent)]
pub struct Pattern { /* fields omitted */ }

Methods

impl Pattern[src]

pub fn new(
    image: &Image,
    area: Option<&RectI>,
    extend_mode: ExtendMode,
    matrix: Option<&Matrix2D>
) -> Self
[src]

pub fn image(&self) -> &Image[src]

pub fn set_image(&mut self, image: &Image) -> Result<()>[src]

pub fn set_image_clipped(&mut self, image: &Image, area: &RectI) -> Result<()>[src]

pub fn reset_image(&mut self) -> Result<()>[src]

pub fn area(&self) -> &RectI[src]

pub fn set_area(&mut self, area: &RectI) -> Result<()>[src]

pub fn reset_area(&mut self) -> Result<()>[src]

pub fn extend_mode(&self) -> ExtendMode[src]

pub fn set_extend_mode(&mut self, mode: ExtendMode) -> Result<()>[src]

pub fn reset_extend_mode(&mut self) -> Result<()>[src]

pub fn has_matrix(&self) -> bool[src]

pub fn matrix(&self) -> Option<&Matrix2D>[src]

Trait Implementations

impl ArrayType for Pattern[src]

impl MatrixTransform for Pattern[src]

fn set_matrix(&mut self, m: &Matrix2D) -> Result<()>[src]

fn reset_matrix(&mut self) -> Result<()>[src]

fn translate(&mut self, x: f64, y: f64) -> Result<()>[src]

fn translate_point<P: Point>(&mut self, p: &P) -> Result<()>[src]

fn scale(&mut self, x: f64, y: f64) -> Result<()>[src]

fn scale_point<P: Point>(&mut self, p: &P) -> Result<()>[src]

fn skew(&mut self, x: f64, y: f64) -> Result<()>[src]

fn skew_point<P: Point>(&mut self, p: &P) -> Result<()>[src]

fn rotate(&mut self, angle: f64) -> Result<()>[src]

fn rotate_around(&mut self, angle: f64, x: f64, y: f64) -> Result<()>[src]

fn rotate_around_point<P: Point>(&mut self, angle: f64, p: &P) -> Result<()>[src]

fn transform(&mut self, mat: &Matrix2D) -> Result<()>[src]

fn post_translate(&mut self, x: f64, y: f64) -> Result<()>[src]

fn post_translate_point<P: Point>(&mut self, p: &P) -> Result<()>[src]

fn post_scale(&mut self, x: f64, y: f64) -> Result<()>[src]

fn post_scale_point<P: Point>(&mut self, p: &P) -> Result<()>[src]

fn post_skew(&mut self, x: f64, y: f64) -> Result<()>[src]

fn post_skew_point<P: Point>(&mut self, p: &P) -> Result<()>[src]

fn post_rotate(&mut self, angle: f64) -> Result<()>[src]

fn post_rotate_around(&mut self, angle: f64, x: f64, y: f64) -> Result<()>[src]

fn post_rotate_around_point<P: Point>(
    &mut self,
    angle: f64,
    p: &P
) -> Result<()>
[src]

fn post_transform(&mut self, mat: &Matrix2D) -> Result<()>[src]

impl Drop for Pattern[src]

impl PartialEq<Pattern> for Pattern[src]

#[must_use]
default fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Clone for Pattern[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl !Send for Pattern

impl !Sync for Pattern

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.