pub struct Gradient {
pub kind: GradientType,
pub stops: RefCell<Vec<ColorStop>>,
}
Fields§
§kind: GradientType
§stops: RefCell<Vec<ColorStop>>
Implementations§
Source§impl Gradient
impl Gradient
pub fn new(kind: GradientType) -> Gradient
pub fn add_color_stop(&self, stop: ColorStop)
pub fn get_color_count(&self) -> usize
pub fn get_color_stop(&self, index: usize) -> Option<ColorStop>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Gradient
impl !RefUnwindSafe for Gradient
impl Send for Gradient
impl !Sync for Gradient
impl Unpin for Gradient
impl UnwindSafe for Gradient
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