pub enum Signal {
View {
view: View,
phase: Phase,
cause: Cause,
},
Display {
target: DisplayTarget,
},
Handle {
overlay: String,
handle: u32,
kind: HandleKind,
phase: Phase,
from: [f64; 2],
at: [f64; 2],
},
HandleReset {
overlay: String,
handle: u32,
kind: HandleKind,
},
HandleClick {
overlay: String,
handle: u32,
kind: HandleKind,
modifiers: Modifiers,
},
EdgeClick {
overlay: String,
segment: u32,
at: [f64; 2],
modifiers: Modifiers,
},
HandleWheel {
overlay: String,
handle: u32,
kind: HandleKind,
delta: f32,
},
Compare {
compare: Compare,
phase: Phase,
},
Readout(Readout),
Loupe {
on: bool,
},
Leave,
Tiles {
requested: u64,
delivered: u64,
cancelled: u64,
complete: bool,
},
}Expand description
What the viewport tells the application.
Variants§
View
The view changed.
Display
The window’s display target changed (another monitor, another surface format); the viewport follows it.
Fields
target: DisplayTargetHandle
A handle moved: from is where it was when the gesture began,
at where it is now (image pixels). On Cancel, put the shape
back as it was at Begin.
HandleReset
A double click on a handle: reset what it adjusts.
HandleClick
A click on a handle (pressed and released without moving): select what it belongs to, toggle a point’s corner.
EdgeClick
A click on an overlay’s outline away from its handles: segment
as overlay::hit_edge numbers it, at the nearest point of the
outline (image pixels), to add a point there.
HandleWheel
The wheel over a handle (points, positive up): adjust what the handle adjusts, never the zoom.
Compare
The comparison changed: the split moved, the “before” shown or hidden.
Readout(Readout)
The source’s values under the pointer arrived.
Loupe
The loupe was turned on or off with its key.
Leave
The pointer asked to leave the view (darktable’s double click on the image, back to the lighttable): the application decides what that means; the view does not change.
Tiles
Tiles moved this frame: asked for, arrived, given up. complete
when every tile wanted is on screen.
Trait Implementations§
impl StructuralPartialEq for Signal
Auto Trait Implementations§
impl Freeze for Signal
impl RefUnwindSafe for Signal
impl Send for Signal
impl Sync for Signal
impl Unpin for Signal
impl UnsafeUnpin for Signal
impl UnwindSafe for Signal
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
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.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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<F, T, S> SimdInto<T, S> for Fwhere
T: SimdFrom<F, S>,
S: Simd,
impl<F, T, S> SimdInto<T, S> for Fwhere
T: SimdFrom<F, S>,
S: Simd,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.