pub struct MouseEvent {
    pub timestamp: Option<i64>,
    pub view_parameters: Option<ViewParameters>,
    pub device_info: Option<MouseDeviceInfo>,
    pub pointer_sample: Option<MousePointerSample>,
    pub stream_info: Option<MouseEventStreamInfo>,
    pub trace_flow_id: Option<u64>,
    pub wake_lease: Option<EventPair>,
    /* private fields */
}Fields§
§timestamp: Option<i64>The time this event was observed. Required.
view_parameters: Option<ViewParameters>The parameters of the associated view and viewport, sufficient to correctly interpret the position, orientation, magnitude, and inter-event distance of pointer events dispatched to a view.
- It is issued on connection and on change.
 
device_info: Option<MouseDeviceInfo>A description of the mouse device, sufficient to correctly interpret the capabilities and usage intent of the device.
- It is issued once per device.
 
pointer_sample: Option<MousePointerSample>A description of each sampled data point in a mouse event stream.
Issuance policy. There are two dispatch modes, “hover” and “latched”. Hover mode is default, and the stream is dispatched in fragments to the visible client that each mouse event hovers above. Latched mode directs the stream to a single client (regardless of view boundary) until unlatched. Latched mode is typically toggled when the user presses the primary mouse button, but is ultimately a product-specific policy.
stream_info: Option<MouseEventStreamInfo>The signal for view entry/exit in hover mode.
- It is issued on hover entry into a view, and hover exit from a view.
 
trace_flow_id: Option<u64>An identifier to correlate this event’s send/receive occurrence across component boundaries or abstraction layers.
wake_lease: Option<EventPair>Optional wake lease for power baton passing.
Trait Implementations§
Source§impl Debug for MouseEvent
 
impl Debug for MouseEvent
Source§impl Decode<MouseEvent, DefaultFuchsiaResourceDialect> for MouseEvent
 
impl Decode<MouseEvent, DefaultFuchsiaResourceDialect> for MouseEvent
Source§impl Default for MouseEvent
 
impl Default for MouseEvent
Source§fn default() -> MouseEvent
 
fn default() -> MouseEvent
Source§impl Encode<MouseEvent, DefaultFuchsiaResourceDialect> for &mut MouseEvent
 
impl Encode<MouseEvent, DefaultFuchsiaResourceDialect> for &mut MouseEvent
Source§impl PartialEq for MouseEvent
 
impl PartialEq for MouseEvent
Source§impl ResourceTypeMarker for MouseEvent
 
impl ResourceTypeMarker for MouseEvent
Source§type Borrowed<'a> = &'a mut MouseEvent
 
type Borrowed<'a> = &'a mut MouseEvent
Encode<Self>
type cheaply obtainable from &mut Self::Owned. There are three cases: Read moreSource§fn take_or_borrow<'a>(
    value: &'a mut <Self as TypeMarker>::Owned,
) -> Self::Borrowed<'a>
 
fn take_or_borrow<'a>( value: &'a mut <Self as TypeMarker>::Owned, ) -> Self::Borrowed<'a>
&mut Self::Owned to Self::Borrowed. For
HandleBased types this is “take” (it returns an owned handle and
replaces value with Handle::invalid), and for all other types it is
“borrow” (just converts from one reference to another).Source§impl TypeMarker for MouseEvent
 
impl TypeMarker for MouseEvent
Source§type Owned = MouseEvent
 
type Owned = MouseEvent
Source§fn inline_align(_context: Context) -> usize
 
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
 
fn inline_size(_context: Context) -> usize
inline_align.Source§fn encode_is_copy() -> bool
 
fn encode_is_copy() -> bool
Self::Owned matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
 
fn decode_is_copy() -> bool
Self::Owned matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned to a single memcpy.