Enum fidl_fuchsia_ui_gfx::Event
source · pub enum Event {
Metrics(MetricsEvent),
SizeChangeHint(SizeChangeHintEvent),
ImportUnbound(ImportUnboundEvent),
ViewConnected(ViewConnectedEvent),
ViewDisconnected(ViewDisconnectedEvent),
ViewHolderDisconnected(ViewHolderDisconnectedEvent),
ViewAttachedToScene(ViewAttachedToSceneEvent),
ViewDetachedFromScene(ViewDetachedFromSceneEvent),
ViewPropertiesChanged(ViewPropertiesChangedEvent),
ViewStateChanged(ViewStateChangedEvent),
ViewHolderConnected(ViewHolderConnectedEvent),
}
Expand description
These are all of the types of events which can be reported by a Session
.
Use SetEventMaskCmd
to enable event delivery for a resource.
Variants§
Metrics(MetricsEvent)
Events which are controlled by a mask.
SizeChangeHint(SizeChangeHintEvent)
ImportUnbound(ImportUnboundEvent)
Events which are always delivered, regardless of mask.
ViewConnected(ViewConnectedEvent)
ViewDisconnected(ViewDisconnectedEvent)
ViewHolderDisconnected(ViewHolderDisconnectedEvent)
ViewAttachedToScene(ViewAttachedToSceneEvent)
ViewDetachedFromScene(ViewDetachedFromSceneEvent)
ViewPropertiesChanged(ViewPropertiesChangedEvent)
ViewStateChanged(ViewStateChangedEvent)
ViewHolderConnected(ViewHolderConnectedEvent)
Implementations§
Trait Implementations§
source§impl Decode<Event> for Event
impl Decode<Event> for Event
source§impl PartialEq<Event> for Event
impl PartialEq<Event> for Event
source§impl PartialOrd<Event> for Event
impl PartialOrd<Event> for Event
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TypeMarker for Event
impl TypeMarker for Event
source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
source§fn inline_size(context: Context) -> usize
fn inline_size(context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
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 more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
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.