Struct tuix::LinearGradient [−]
pub struct LinearGradient {
pub direction: Direction,
pub stops: Vec<GradientStop, Global>,
}
Fields
direction: Direction
stops: Vec<GradientStop, Global>
Implementations
impl LinearGradient
impl LinearGradient
pub fn new(direction: Direction) -> LinearGradient
pub fn add_stop(self, stop: GradientStop) -> LinearGradient
Trait Implementations
impl Clone for LinearGradient
impl Clone for LinearGradient
pub fn clone(&self) -> LinearGradient
pub fn clone(&self) -> LinearGradient
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for LinearGradient
impl Debug for LinearGradient
impl Default for LinearGradient
impl Default for LinearGradient
pub fn default() -> LinearGradient
pub fn default() -> LinearGradient
Returns the “default value” for a type. Read more
impl PartialEq<LinearGradient> for LinearGradient
impl PartialEq<LinearGradient> for LinearGradient
pub fn eq(&self, other: &LinearGradient) -> bool
pub fn eq(&self, other: &LinearGradient) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &LinearGradient) -> bool
pub fn ne(&self, other: &LinearGradient) -> bool
This method tests for !=
.
impl StructuralPartialEq for LinearGradient
Auto Trait Implementations
impl RefUnwindSafe for LinearGradient
impl Send for LinearGradient
impl Sync for LinearGradient
impl Unpin for LinearGradient
impl UnwindSafe for LinearGradient
Blanket Implementations
Mutably borrows from an owned value. Read more