Struct webrender::prim_store::gradient::linear::LinearGradientTask
source · pub struct LinearGradientTask {
pub start: DevicePoint,
pub end: DevicePoint,
pub scale: DeviceVector2D,
pub extend_mode: ExtendMode,
pub stops: GpuBufferAddress,
}
Fields§
§start: DevicePoint
§end: DevicePoint
§scale: DeviceVector2D
§extend_mode: ExtendMode
§stops: GpuBufferAddress
Implementations§
source§impl LinearGradientTask
impl LinearGradientTask
pub fn to_instance(&self, target_rect: &DeviceIntRect) -> LinearGradientInstance
Trait Implementations§
source§impl Debug for LinearGradientTask
impl Debug for LinearGradientTask
Auto Trait Implementations§
impl Freeze for LinearGradientTask
impl RefUnwindSafe for LinearGradientTask
impl Send for LinearGradientTask
impl Sync for LinearGradientTask
impl Unpin for LinearGradientTask
impl UnwindSafe for LinearGradientTask
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more