#[non_exhaustive]pub enum Event {
ToplevelEnter {
toplevel: ExtForeignToplevelHandleV1,
x: i32,
y: i32,
width: i32,
height: i32,
},
ToplevelLeave {
toplevel: ExtForeignToplevelHandleV1,
},
LayerEnter {
identifier: String,
namespace: String,
exclusive: u32,
layer: WEnum<Layer>,
x: i32,
y: i32,
width: i32,
height: i32,
},
LayerLeave {
identifier: String,
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ToplevelEnter
Toplevel entered the surface area
A ext_foreign_toplevel_handle_v1 has entered the surface area.
This event will be emitted once for every ext_foreign_toplevel_handle_v1 representing this toplevel.
Compositors are free to update the overlapping area by sending additional
toplevel_enter
events for the same toplevel without sending toplevel_leave
in between.
Fields
toplevel: ExtForeignToplevelHandleV1
ToplevelLeave
Toplevel entered the surface area
A ext_foreign_toplevel_handle_v1 has left the surface area.
This event will be emitted once for every ext_foreign_toplevel_handle_v1 representing this toplevel.
Fields
toplevel: ExtForeignToplevelHandleV1
LayerEnter
Layer surface entered the surface area
A zwlr_layer_surface_v1 has entered the surface area.
Compositors are free to update the overlapping area by sending additional
layer_enter
events for the same surface without sending layer_leave
in between.
The overlapping region is given surface-relative to the zwlr_layer_surface_v1 used to create this notification object.
Fields
LayerLeave
Layer surface left the surface area
A zwlr_layer_surface_v1 has left the surface area.
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.