pub struct Shader;
Implementations§
Source§impl Shader
impl Shader
pub fn linear_gradient<'a>( _points: (impl Into<Point>, impl Into<Point>), _colors: impl Into<GradientShaderColors<'a>>, _pos: impl Into<Option<&'a [f32]>>, _mode: TileMode, _flags: impl Into<Option<GradientFlags>>, _local_matrix: impl Into<Option<&'a Matrix>>, ) -> Option<Self>
pub fn radial_gradient<'a>( _center: impl Into<Point>, _radius: f32, _colors: impl Into<GradientShaderColors<'a>>, _pos: impl Into<Option<&'a [f32]>>, _mode: TileMode, _flags: impl Into<Option<GradientFlags>>, _local_matrix: impl Into<Option<&'a Matrix>>, ) -> Option<Self>
pub fn sweep_gradient<'a>( _center: impl Into<Point>, _colors: impl Into<GradientShaderColors<'a>>, _pos: impl Into<Option<&'a [f32]>>, _mode: TileMode, _angles: impl Into<Option<(f32, f32)>>, _flags: impl Into<Option<GradientFlags>>, _local_matrix: impl Into<Option<&'a Matrix>>, ) -> Option<Self>
Auto Trait Implementations§
impl Freeze for Shader
impl RefUnwindSafe for Shader
impl Send for Shader
impl Sync for Shader
impl Unpin for Shader
impl UnwindSafe for Shader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more