pub enum FineTuneEvent {
WidthChanged {
id: SharedString,
width: f64,
},
HeightChanged {
id: SharedString,
height: f64,
},
RadiusChanged {
id: SharedString,
radius: f64,
},
OpacityChanged {
id: SharedString,
opacity: f32,
},
TypefaceChanged {
id: SharedString,
typeface_id: SharedString,
},
AccentChanged {
id: SharedString,
accent: Option<Hsla>,
},
ResetRequested {
id: SharedString,
},
ApplyRequested {
id: SharedString,
},
}Expand description
A typed application intent emitted by FineTuneCard.
Variants§
WidthChanged
The width editor proposed a different clamped value.
HeightChanged
The height editor proposed a different clamped value.
RadiusChanged
The radius editor proposed a different clamped value.
OpacityChanged
The opacity editor or slider proposed a normalized value.
TypefaceChanged
The typeface menu proposed a different stable typeface identity.
Fields
§
id: SharedStringFine-tune card identity.
§
typeface_id: SharedStringStable application typeface identity.
AccentChanged
The accent picker proposed a different optional color.
Fields
§
id: SharedStringFine-tune card identity.
ResetRequested
The named Reset control was activated.
Fields
§
id: SharedStringFine-tune card identity.
ApplyRequested
The named Apply control was activated.
Fields
§
id: SharedStringFine-tune card identity.
Implementations§
Source§impl FineTuneEvent
impl FineTuneEvent
Trait Implementations§
Source§impl Clone for FineTuneEvent
impl Clone for FineTuneEvent
Source§fn clone(&self) -> FineTuneEvent
fn clone(&self) -> FineTuneEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FineTuneEvent
impl Debug for FineTuneEvent
impl EventEmitter<FineTuneEvent> for FineTuneCard
Source§impl PartialEq for FineTuneEvent
impl PartialEq for FineTuneEvent
impl StructuralPartialEq for FineTuneEvent
Auto Trait Implementations§
impl Freeze for FineTuneEvent
impl RefUnwindSafe for FineTuneEvent
impl Send for FineTuneEvent
impl Sync for FineTuneEvent
impl Unpin for FineTuneEvent
impl UnsafeUnpin for FineTuneEvent
impl UnwindSafe for FineTuneEvent
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Instruments this type with the provided [
Span], returning an
Instrumented wrapper.§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§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
Attaches the provided
Subscriber to this type, returning a
[WithDispatch] wrapper.