pub enum Context {
View(ViewRef),
}Expand description
The region from which injection is attempted for injected events. As the context, it serves two purposes: (1) Scoping. It confirms the |Device|’s authority to inject pointer events on the specified target. Specifically, the context must be a view-tree ancestor of the target. (2) Coordinate System. It provides the reference coordinate system to define the viewport’s position and size, relative to the target.
Variants§
Trait Implementations§
Source§impl<___E> Encode<Context, ___E> for Contextwhere
___E: InternalHandleEncoder + ?Sized + HandleEncoder,
impl<___E> Encode<Context, ___E> for Contextwhere
___E: InternalHandleEncoder + ?Sized + HandleEncoder,
Source§impl<___E> EncodeOption<Context, ___E> for Context
impl<___E> EncodeOption<Context, ___E> for Context
Source§fn encode_option(
this: Option<Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Context>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut ___E, out: &mut MaybeUninit<Context>, _: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl FromWireOption<Context> for Box<Context>
impl FromWireOption<Context> for Box<Context>
Source§fn from_wire_option(wire: Context) -> Option<Self>
fn from_wire_option(wire: Context) -> Option<Self>
Converts the given owned value to an option of this type.
Source§impl FromWireOption<Context> for Context
impl FromWireOption<Context> for Context
Source§fn from_wire_option(wire: Context) -> Option<Self>
fn from_wire_option(wire: Context) -> Option<Self>
Converts the given owned value to an option of this type.
impl StructuralPartialEq for Context
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnsafeUnpin for Context
impl UnwindSafe for Context
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<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: Box<'_, W>) -> Option<T>
fn from_wire_option(wire: Box<'_, W>) -> Option<T>
Converts the given owned value to an option of this type.
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]