pub struct WasmLinearGradient { /* private fields */ }
Implementations§
Source§impl WasmLinearGradient
impl WasmLinearGradient
pub fn new( x1: f64, y1: f64, x2: f64, y2: f64, stops: Vec<WasmGradientStop>, alpha: f64, ) -> WasmLinearGradient
pub fn get_x1(&self) -> f64
pub fn get_y1(&self) -> f64
pub fn get_x2(&self) -> f64
pub fn get_y2(&self) -> f64
pub fn get_stops(&self) -> Vec<WasmGradientStop>
pub fn get_alpha(&self) -> f64
Trait Implementations§
Source§impl Clone for WasmLinearGradient
impl Clone for WasmLinearGradient
Source§fn clone(&self) -> WasmLinearGradient
fn clone(&self) -> WasmLinearGradient
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for WasmLinearGradient
impl Debug for WasmLinearGradient
Source§impl From<WasmLinearGradient> for JsValue
impl From<WasmLinearGradient> for JsValue
Source§fn from(value: WasmLinearGradient) -> Self
fn from(value: WasmLinearGradient) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for WasmLinearGradient
impl FromWasmAbi for WasmLinearGradient
Source§impl IntoWasmAbi for WasmLinearGradient
impl IntoWasmAbi for WasmLinearGradient
Source§impl RefFromWasmAbi for WasmLinearGradient
impl RefFromWasmAbi for WasmLinearGradient
Source§type Anchor = RcRef<WasmLinearGradient>
type Anchor = RcRef<WasmLinearGradient>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl TryFromJsValue for WasmLinearGradient
impl TryFromJsValue for WasmLinearGradient
Source§impl VectorFromWasmAbi for WasmLinearGradient
impl VectorFromWasmAbi for WasmLinearGradient
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[WasmLinearGradient]>
Source§impl VectorIntoJsValue for WasmLinearGradient
impl VectorIntoJsValue for WasmLinearGradient
fn vector_into_jsvalue(vector: Box<[WasmLinearGradient]>) -> JsValue
Source§impl VectorIntoWasmAbi for WasmLinearGradient
impl VectorIntoWasmAbi for WasmLinearGradient
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[WasmLinearGradient]>) -> Self::Abi
Source§impl WasmDescribeVector for WasmLinearGradient
impl WasmDescribeVector for WasmLinearGradient
Auto Trait Implementations§
impl Freeze for WasmLinearGradient
impl RefUnwindSafe for WasmLinearGradient
impl Send for WasmLinearGradient
impl Sync for WasmLinearGradient
impl Unpin for WasmLinearGradient
impl UnwindSafe for WasmLinearGradient
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.