#[non_exhaustive]pub enum Event {
Magnifier {
active: WEnum<ActiveState>,
},
ScreenFilter {
inverted: WEnum<ActiveState>,
filter: WEnum<Filter>,
},
ScreenFilter2 {
inverted: WEnum<ActiveState>,
filter: WEnum<Filter>,
filter_state: WEnum<ActiveState>,
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Magnifier
State of the screen magnifier
State of the screen magnifier.
This event will be emitted by the compositor when binding the protocol and whenever the state changes.
Fields
active: WEnum<ActiveState>
If the screen magnifier is enabled
ScreenFilter
State of screen filtering
Parameters used for screen filtering.
This event will be emitted by the compositor when binding the protocol and whenever the state changes.
If a screen filter is used not known to the protocol or the bound version filter will be set to unknown.
Since version 3 this event will not be emitted anymore, instead use screen_filter2
.
Only available since version 2 of the interface
Fields
inverted: WEnum<ActiveState>
If the screen colors are inverted
ScreenFilter2
State of screen filtering
Parameters used for screen filtering.
This event will be emitted by the compositor when binding the protocol and whenever the state changes.
If a screen filter is used not known to the protocol or the bound version filter will be set to unknown.
The compositor must never send “disabled” as the “filter” argument.
Only available since version 3 of the interface
Fields
inverted: WEnum<ActiveState>
If the screen colors are inverted
filter_state: WEnum<ActiveState>
If the screen filter is active
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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.