pub struct BodyColorEditorModel<'a>(/* private fields */);Implementations§
Source§impl<'a> BodyColorEditorModel<'a>
impl<'a> BodyColorEditorModel<'a>
pub fn invoke_apply_requested(&self)
pub fn on_apply_requested(&self, f: impl FnMut() + 'static)
pub fn get_badge_text(&self) -> SharedString
pub fn set_badge_text(&self, value: SharedString)
pub fn get_busy(&self) -> bool
pub fn set_busy(&self, value: bool)
pub fn get_chroma(&self) -> f32
pub fn set_chroma(&self, value: f32)
pub fn get_has_solution(&self) -> bool
pub fn set_has_solution(&self, value: bool)
pub fn get_hue(&self) -> f32
pub fn set_hue(&self, value: f32)
pub fn invoke_lch_edited(&self, arg_0: f32, arg_1: f32, arg_2: f32)
pub fn on_lch_edited(&self, f: impl FnMut(f32, f32, f32) + 'static)
pub fn invoke_open_requested(&self)
pub fn on_open_requested(&self, f: impl FnMut() + 'static)
pub fn invoke_picker_picked(&self, arg_0: Color)
pub fn on_picker_picked(&self, f: impl FnMut(Color) + 'static)
pub fn get_reachable(&self) -> bool
pub fn set_reachable(&self, value: bool)
pub fn get_swatch_labels(&self) -> ModelRc<SharedString>
pub fn set_swatch_labels(&self, value: ModelRc<SharedString>)
pub fn get_swatches(&self) -> ModelRc<Color>
pub fn set_swatches(&self, value: ModelRc<Color>)
pub fn get_target(&self) -> i32
pub fn set_target(&self, value: i32)
pub fn get_tone(&self) -> f32
pub fn set_tone(&self, value: f32)
Trait Implementations§
Source§impl<'a> Global<'a, CompareWindow> for BodyColorEditorModel<'a>
impl<'a> Global<'a, CompareWindow> for BodyColorEditorModel<'a>
Source§type StaticSelf = BodyColorEditorModel<'static>
type StaticSelf = BodyColorEditorModel<'static>
The
Self type, with a 'static lifetime.Source§fn get(component: &'a CompareWindow) -> Self
fn get(component: &'a CompareWindow) -> Self
Returns a reference to the global.
Source§impl<'a> Global<'a, HelpWindow> for BodyColorEditorModel<'a>
impl<'a> Global<'a, HelpWindow> for BodyColorEditorModel<'a>
Source§type StaticSelf = BodyColorEditorModel<'static>
type StaticSelf = BodyColorEditorModel<'static>
The
Self type, with a 'static lifetime.Source§fn get(component: &'a HelpWindow) -> Self
fn get(component: &'a HelpWindow) -> Self
Returns a reference to the global.
Source§impl<'a> Global<'a, LocateWindow> for BodyColorEditorModel<'a>
impl<'a> Global<'a, LocateWindow> for BodyColorEditorModel<'a>
Source§type StaticSelf = BodyColorEditorModel<'static>
type StaticSelf = BodyColorEditorModel<'static>
The
Self type, with a 'static lifetime.Source§fn get(component: &'a LocateWindow) -> Self
fn get(component: &'a LocateWindow) -> Self
Returns a reference to the global.
Source§impl<'a> Global<'a, MainWindow> for BodyColorEditorModel<'a>
impl<'a> Global<'a, MainWindow> for BodyColorEditorModel<'a>
Source§type StaticSelf = BodyColorEditorModel<'static>
type StaticSelf = BodyColorEditorModel<'static>
The
Self type, with a 'static lifetime.Source§fn get(component: &'a MainWindow) -> Self
fn get(component: &'a MainWindow) -> Self
Returns a reference to the global.
Source§impl<'a> Global<'a, RigWindow> for BodyColorEditorModel<'a>
impl<'a> Global<'a, RigWindow> for BodyColorEditorModel<'a>
Source§type StaticSelf = BodyColorEditorModel<'static>
type StaticSelf = BodyColorEditorModel<'static>
The
Self type, with a 'static lifetime.Source§impl<'a> Global<'a, RoughColourWindow> for BodyColorEditorModel<'a>
impl<'a> Global<'a, RoughColourWindow> for BodyColorEditorModel<'a>
Source§type StaticSelf = BodyColorEditorModel<'static>
type StaticSelf = BodyColorEditorModel<'static>
The
Self type, with a 'static lifetime.Source§fn get(component: &'a RoughColourWindow) -> Self
fn get(component: &'a RoughColourWindow) -> Self
Returns a reference to the global.
Source§impl<'a> Global<'a, RoughPlannerWindow> for BodyColorEditorModel<'a>
impl<'a> Global<'a, RoughPlannerWindow> for BodyColorEditorModel<'a>
Source§type StaticSelf = BodyColorEditorModel<'static>
type StaticSelf = BodyColorEditorModel<'static>
The
Self type, with a 'static lifetime.Source§fn get(component: &'a RoughPlannerWindow) -> Self
fn get(component: &'a RoughPlannerWindow) -> Self
Returns a reference to the global.
impl StrongHandle for BodyColorEditorModel<'static>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for BodyColorEditorModel<'a>
impl<'a> !Send for BodyColorEditorModel<'a>
impl<'a> !Sync for BodyColorEditorModel<'a>
impl<'a> !UnwindSafe for BodyColorEditorModel<'a>
impl<'a> Freeze for BodyColorEditorModel<'a>
impl<'a> Unpin for BodyColorEditorModel<'a>
impl<'a> UnsafeUnpin for BodyColorEditorModel<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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 more