pub struct GradientEditor {
pub width: i32,
pub height: i32,
pub stops: Vec<GradientStop>,
pub on_change: String,
}Fields§
§width: i32§height: i32§stops: Vec<GradientStop>§on_change: StringImplementations§
Source§impl GradientEditor
impl GradientEditor
pub fn new() -> GradientEditor
pub fn add_stop(self, stop: GradientStop) -> GradientEditor
pub fn on_change(self, handler: String) -> GradientEditor
Trait Implementations§
Source§impl Clone for GradientEditor
impl Clone for GradientEditor
Source§fn clone(&self) -> GradientEditor
fn clone(&self) -> GradientEditor
Returns a duplicate 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 GradientEditor
impl Debug for GradientEditor
Source§impl PartialEq for GradientEditor
impl PartialEq for GradientEditor
Source§impl Renderable for GradientEditor
impl Renderable for GradientEditor
impl StructuralPartialEq for GradientEditor
Auto Trait Implementations§
impl Freeze for GradientEditor
impl RefUnwindSafe for GradientEditor
impl Send for GradientEditor
impl Sync for GradientEditor
impl Unpin for GradientEditor
impl UnwindSafe for GradientEditor
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