pub struct ZcosmicOverlapNotificationV1 { /* private fields */ }
Expand description
Subscription for overlapping toplevels on a layer-surface
See also the Request enum for this interface.
Implementations§
Source§impl ZcosmicOverlapNotificationV1
impl ZcosmicOverlapNotificationV1
Sourcepub fn toplevel_enter(
&self,
toplevel: &ExtForeignToplevelHandleV1,
x: i32,
y: i32,
width: i32,
height: i32,
)
pub fn toplevel_enter( &self, toplevel: &ExtForeignToplevelHandleV1, x: i32, y: i32, width: i32, height: i32, )
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.
Sourcepub fn toplevel_leave(&self, toplevel: &ExtForeignToplevelHandleV1)
pub fn toplevel_leave(&self, toplevel: &ExtForeignToplevelHandleV1)
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.
Sourcepub fn layer_enter(
&self,
identifier: String,
namespace: String,
exclusive: u32,
layer: Layer,
x: i32,
y: i32,
width: i32,
height: i32,
)
pub fn layer_enter( &self, identifier: String, namespace: String, exclusive: u32, layer: Layer, x: i32, y: i32, width: i32, height: i32, )
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.
Sourcepub fn layer_leave(&self, identifier: String)
pub fn layer_leave(&self, identifier: String)
Layer surface left the surface area
A zwlr_layer_surface_v1 has left the surface area.
Trait Implementations§
Source§impl Clone for ZcosmicOverlapNotificationV1
impl Clone for ZcosmicOverlapNotificationV1
Source§fn clone(&self) -> ZcosmicOverlapNotificationV1
fn clone(&self) -> ZcosmicOverlapNotificationV1
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ZcosmicOverlapNotificationV1
impl Debug for ZcosmicOverlapNotificationV1
Source§impl Hash for ZcosmicOverlapNotificationV1
impl Hash for ZcosmicOverlapNotificationV1
Source§impl PartialEq<Weak<ZcosmicOverlapNotificationV1>> for ZcosmicOverlapNotificationV1
impl PartialEq<Weak<ZcosmicOverlapNotificationV1>> for ZcosmicOverlapNotificationV1
Source§impl PartialEq for ZcosmicOverlapNotificationV1
impl PartialEq for ZcosmicOverlapNotificationV1
Source§fn eq(&self, other: &ZcosmicOverlapNotificationV1) -> bool
fn eq(&self, other: &ZcosmicOverlapNotificationV1) -> bool
self
and other
values to be equal, and is used by ==
.Source§impl Resource for ZcosmicOverlapNotificationV1
impl Resource for ZcosmicOverlapNotificationV1
Source§fn object_data(&self) -> Option<&Arc<dyn Any + Send + Sync>>
fn object_data(&self) -> Option<&Arc<dyn Any + Send + Sync>>
Source§fn handle(&self) -> &WeakHandle
fn handle(&self) -> &WeakHandle
Source§fn from_id(conn: &DisplayHandle, id: ObjectId) -> Result<Self, InvalidId>
fn from_id(conn: &DisplayHandle, id: ObjectId) -> Result<Self, InvalidId>
Source§fn send_event(&self, evt: Self::Event<'_>) -> Result<(), InvalidId>
fn send_event(&self, evt: Self::Event<'_>) -> Result<(), InvalidId>
Source§fn parse_request(
conn: &DisplayHandle,
msg: Message<ObjectId, OwnedFd>,
) -> Result<(Self, Self::Request), DispatchError>
fn parse_request( conn: &DisplayHandle, msg: Message<ObjectId, OwnedFd>, ) -> Result<(Self, Self::Request), DispatchError>
Source§fn write_event<'a>(
&self,
conn: &DisplayHandle,
msg: Self::Event<'a>,
) -> Result<Message<ObjectId, BorrowedFd<'a>>, InvalidId>
fn write_event<'a>( &self, conn: &DisplayHandle, msg: Self::Event<'a>, ) -> Result<Message<ObjectId, BorrowedFd<'a>>, InvalidId>
Source§fn is_alive(&self) -> bool
fn is_alive(&self) -> bool
impl Eq for ZcosmicOverlapNotificationV1
Auto Trait Implementations§
impl Freeze for ZcosmicOverlapNotificationV1
impl !RefUnwindSafe for ZcosmicOverlapNotificationV1
impl Send for ZcosmicOverlapNotificationV1
impl Sync for ZcosmicOverlapNotificationV1
impl Unpin for ZcosmicOverlapNotificationV1
impl !UnwindSafe for ZcosmicOverlapNotificationV1
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.