pub struct ZcosmicToplevelInfoV1 { /* private fields */ }
Expand description
list toplevels and properties thereof
The purpose of this protocol is to enable clients such as taskbars or docks to access a list of opened applications and basic properties thereof.
It thus extends ext_foreign_toplevel_v1 to provide more information and actions on foreign toplevels.
See also the Request enum for this interface.
Implementations§
Source§impl ZcosmicToplevelInfoV1
impl ZcosmicToplevelInfoV1
Sourcepub fn toplevel(&self, toplevel: &ZcosmicToplevelHandleV1)
pub fn toplevel(&self, toplevel: &ZcosmicToplevelHandleV1)
a toplevel has been created
This event is never emitted for clients binding version 2
of this protocol, they should use get_cosmic_toplevel
instead.
This event is emitted for clients binding version 1 whenever a new toplevel window is created. It is emitted for all toplevels, regardless of the app that has created them.
All initial properties of the toplevel (title, app_id, states, etc.) will be sent immediately after this event via the corresponding events in zcosmic_toplevel_handle_v1.
Sourcepub fn finished(&self)
pub fn finished(&self)
the compositor has finished with the toplevel manager
This event indicates that the compositor is done sending events to the zcosmic_toplevel_info_v1. The server will destroy the object immediately after sending this request, so it will become invalid and the client should free any resources associated with it.
Note: This event is emitted immediately after calling stop
for
clients binding version 2 of this protocol for backwards compatibility.
Sourcepub fn done(&self)
pub fn done(&self)
all information about active toplevels have been sent
This event is sent after all changes for currently active zcosmic_toplevel_handle_v1 have been sent.
This allows changes to multiple zcosmic_toplevel_handle_v1 handles and their properties to be seen as atomic, even if they happen via multiple events.
Trait Implementations§
Source§impl Borrow<ObjectId> for ZcosmicToplevelInfoV1
impl Borrow<ObjectId> for ZcosmicToplevelInfoV1
Source§impl Clone for ZcosmicToplevelInfoV1
impl Clone for ZcosmicToplevelInfoV1
Source§fn clone(&self) -> ZcosmicToplevelInfoV1
fn clone(&self) -> ZcosmicToplevelInfoV1
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ZcosmicToplevelInfoV1
impl Debug for ZcosmicToplevelInfoV1
Source§impl Hash for ZcosmicToplevelInfoV1
impl Hash for ZcosmicToplevelInfoV1
Source§impl PartialEq for ZcosmicToplevelInfoV1
impl PartialEq for ZcosmicToplevelInfoV1
Source§impl Resource for ZcosmicToplevelInfoV1
impl Resource for ZcosmicToplevelInfoV1
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 ZcosmicToplevelInfoV1
Auto Trait Implementations§
impl Freeze for ZcosmicToplevelInfoV1
impl !RefUnwindSafe for ZcosmicToplevelInfoV1
impl Send for ZcosmicToplevelInfoV1
impl Sync for ZcosmicToplevelInfoV1
impl Unpin for ZcosmicToplevelInfoV1
impl !UnwindSafe for ZcosmicToplevelInfoV1
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.