pub enum Texture<'a> {
SolidColor(Color),
Gradient(&'a [(Point, Color)]),
Bitmap {
top_left: Point,
scale: f32,
repeat: bool,
bitmap: BitmapHandle,
},
QuadBitmap {
top_left: Point,
btm_left: Point,
top_right: Point,
btm_right: Point,
bitmap: BitmapHandle,
},
Debug,
}
Expand description
The expected content of a filled path
Variants§
Trait Implementations§
impl<'a> Copy for Texture<'a>
Auto Trait Implementations§
impl<'a> Freeze for Texture<'a>
impl<'a> RefUnwindSafe for Texture<'a>
impl<'a> Send for Texture<'a>
impl<'a> Sync for Texture<'a>
impl<'a> Unpin for Texture<'a>
impl<'a> UnwindSafe for Texture<'a>
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