pub struct LinearGradient { /* private fields */ }Expand description
Two-stop linear gradient specification.
Implementations§
Source§impl LinearGradient
impl LinearGradient
pub fn get_angle_deg(&self) -> f32
pub fn get_mut_angle_deg(&mut self) -> &mut f32
pub fn set_angle_deg(&mut self, val: f32) -> &mut Self
pub fn get_start_color(&self) -> Color
pub fn get_mut_start_color(&mut self) -> &mut Color
pub fn set_start_color(&mut self, val: Color) -> &mut Self
pub fn get_end_color(&self) -> Color
pub fn get_mut_end_color(&mut self) -> &mut Color
pub fn set_end_color(&mut self, val: Color) -> &mut Self
Trait Implementations§
Source§impl Clone for LinearGradient
impl Clone for LinearGradient
impl Copy for LinearGradient
Source§impl Debug for LinearGradient
impl Debug for LinearGradient
Source§impl Default for LinearGradient
impl Default for LinearGradient
Source§impl PartialEq for LinearGradient
impl PartialEq for LinearGradient
impl StructuralPartialEq for LinearGradient
Auto Trait Implementations§
impl Forget for LinearGradient
impl Freeze for LinearGradient
impl Move for LinearGradient
impl RefUnwindSafe for LinearGradient
impl Send for LinearGradient
impl Sync for LinearGradient
impl Unpin for LinearGradient
impl UnsafeUnpin for LinearGradient
impl UnwindSafe for LinearGradient
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