#[non_exhaustive]pub enum Event<'a> {
Scale1000 {
scale_1000: i32,
},
Mirroring {
name: Option<String>,
},
AdaptiveSyncAvailable {
available: WEnum<AdaptiveSyncAvailability>,
},
AdaptiveSyncExt {
state: WEnum<AdaptiveSyncStateExt>,
},
XwaylandPrimary {
state: u32,
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Scale1000
current scale
This events describes the scale of the head in the global compositor space multiplied by 1000 for additional precision.
It is only sent if the output is enabled.
Mirroring
mirroring other output
This events describes that the head is mirroring another.
In these cases name
contains the unique name of the matching zwlr_output_head_v1
.
If the name is null, no head is being mirrored onto this one.
For mirrored heads the position
-event is meaningless.
It is only sent if the output is enabled.
AdaptiveSyncAvailable
is adaptive_sync available for this head
This events describes if adaptive_sync is available for this head.
It is only sent if the output is enabled.
Only available since version 2 of the interface
Fields
available: WEnum<AdaptiveSyncAvailability>
AdaptiveSyncExt
current adaptive_sync state
This events describes the adaptive_sync state of this head.
It is only sent if the output is enabled.
Only available since version 2 of the interface
Fields
state: WEnum<AdaptiveSyncStateExt>
XwaylandPrimary
is this head configured as the primary for xwayland
This event describes if this head is advertised as the primary output via randr to Xwayland.
At most one output is marked primary, but it is not guaranteed that any output is marked. It is only sent if the output is enabled.
Only available since version 3 of the interface
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Event<'a>
impl<'a> RefUnwindSafe for Event<'a>
impl<'a> Send for Event<'a>
impl<'a> Sync for Event<'a>
impl<'a> Unpin for Event<'a>
impl<'a> UnwindSafe for Event<'a>
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§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
.Source§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
.Source§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.Source§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.