[][src]Struct dali::Stipple

pub struct Stipple { /* fields omitted */ }

Represents a stippled brush stroke, with the parameters

  • translation: [f32; 2] from -1 to 1
  • scale: [f32; 2] from -inf to +inf: controls the size of the stipple bounds
  • colormap_scale: [f32; 2] from -inf to +inf: controls the colormap rate of change. large values produce more color variance
  • rotation: [f32; 2] from -inf to +inf (radians)

Methods

impl Stipple[src]

pub fn new() -> Stipple[src]

pub fn with_translation(self, translation: [f32; 2]) -> Self[src]

pub fn with_scale(self, scale: [f32; 2]) -> Self[src]

pub fn with_colormap_scale(self, scale: [f32; 2]) -> Self[src]

pub fn with_rotation(self, rotation: f32) -> Self[src]

pub fn with_gamma(self, gamma: f32) -> Self[src]

Trait Implementations

impl Default for Stipple[src]

impl Clone for Stipple[src]

impl Debug for Stipple[src]

Auto Trait Implementations

impl Send for Stipple

impl Unpin for Stipple

impl Sync for Stipple

impl UnwindSafe for Stipple

impl RefUnwindSafe for Stipple

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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

impl<T> SetParameter for T