[−][src]Struct blend2d::pattern::Pattern
Methods
impl Pattern
[src]
pub fn new(
image: &Image,
area: Option<&RectI>,
extend_mode: ExtendMode,
matrix: Option<&Matrix2D>
) -> Self
[src]
image: &Image,
area: Option<&RectI>,
extend_mode: ExtendMode,
matrix: Option<&Matrix2D>
) -> Self
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]
&mut self,
angle: f64,
p: &P
) -> Result<()>
fn post_transform(&mut self, mat: &Matrix2D) -> Result<()>
[src]
impl Clone for Pattern
[src]
fn clone(&self) -> Self
[src]
default fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Drop for Pattern
[src]
impl PartialEq<Pattern> for Pattern
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,