pub enum PointerOutcome {
Consumed,
Passthrough,
}Expand description
Whether handle_editor_pointer consumed the event or left it for the
host to bubble to outer UI layers.
Hosts that embed the editor as a widget alongside other clickable UI
(swatches, menus, other panes) should treat Passthrough as a signal
that the pointer event is still available for outer routing.
Variants§
Consumed
The editor acted on the event. Suppress outer UI routing.
Passthrough
The editor did not act on the event (e.g., click outside the canvas viewport, mid-drag sample without an active drag origin). The host may bubble this event to outer UI.
Implementations§
Source§impl PointerOutcome
impl PointerOutcome
pub fn is_consumed(self) -> bool
pub fn is_passthrough(self) -> bool
Trait Implementations§
Source§impl Clone for PointerOutcome
impl Clone for PointerOutcome
Source§fn clone(&self) -> PointerOutcome
fn clone(&self) -> PointerOutcome
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 PointerOutcome
impl Debug for PointerOutcome
Source§impl Default for PointerOutcome
impl Default for PointerOutcome
Source§fn default() -> PointerOutcome
fn default() -> PointerOutcome
Returns the “default value” for a type. Read more
Source§impl PartialEq for PointerOutcome
impl PartialEq for PointerOutcome
impl Copy for PointerOutcome
impl Eq for PointerOutcome
impl StructuralPartialEq for PointerOutcome
Auto Trait Implementations§
impl Freeze for PointerOutcome
impl RefUnwindSafe for PointerOutcome
impl Send for PointerOutcome
impl Sync for PointerOutcome
impl Unpin for PointerOutcome
impl UnsafeUnpin for PointerOutcome
impl UnwindSafe for PointerOutcome
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