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 Event enum for this interface.
Implementations§
Source§impl ZcosmicToplevelInfoV1
impl ZcosmicToplevelInfoV1
Sourcepub fn stop(&self)
pub fn stop(&self)
stop sending events
This request indicates that the client no longer wishes to receive events for new toplevels. However, the compositor may emit further toplevel_created events until the finished event is emitted.
The client must not send any more requests after this one.
Note: This request isn’t necessary for clients binding version 2 of this protocol and will be ignored.
Sourcepub fn get_cosmic_toplevel<U: Send + Sync + 'static, D: Dispatch<ZcosmicToplevelHandleV1, U> + 'static>(
&self,
foreign_toplevel: &ExtForeignToplevelHandleV1,
qh: &QueueHandle<D>,
udata: U,
) -> ZcosmicToplevelHandleV1
pub fn get_cosmic_toplevel<U: Send + Sync + 'static, D: Dispatch<ZcosmicToplevelHandleV1, U> + 'static>( &self, foreign_toplevel: &ExtForeignToplevelHandleV1, qh: &QueueHandle<D>, udata: U, ) -> ZcosmicToplevelHandleV1
get cosmic toplevel extension object
Request a zcosmic_toplevel_handle_v1 extension object for an existing ext_foreign_toplevel_handle_v1.
All initial properties of the toplevel (states, etc.) will be sent immediately after this event via the corresponding events in zcosmic_toplevel_handle_v1.
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 Proxy for ZcosmicToplevelInfoV1
impl Proxy for ZcosmicToplevelInfoV1
Source§fn data<U: Send + Sync + 'static>(&self) -> Option<&U>
fn data<U: Send + Sync + 'static>(&self) -> Option<&U>
Source§fn object_data(&self) -> Option<&Arc<dyn ObjectData>>
fn object_data(&self) -> Option<&Arc<dyn ObjectData>>
Source§fn backend(&self) -> &WeakBackend
fn backend(&self) -> &WeakBackend
Source§fn send_request(&self, req: Self::Request<'_>) -> Result<(), InvalidId>
fn send_request(&self, req: Self::Request<'_>) -> Result<(), InvalidId>
Source§fn send_constructor<I: Proxy>(
&self,
req: Self::Request<'_>,
data: Arc<dyn ObjectData>,
) -> Result<I, InvalidId>
fn send_constructor<I: Proxy>( &self, req: Self::Request<'_>, data: Arc<dyn ObjectData>, ) -> Result<I, InvalidId>
Source§fn from_id(conn: &Connection, id: ObjectId) -> Result<Self, InvalidId>
fn from_id(conn: &Connection, id: ObjectId) -> Result<Self, InvalidId>
Source§fn inert(backend: WeakBackend) -> Self
fn inert(backend: WeakBackend) -> Self
Source§fn parse_event(
conn: &Connection,
msg: Message<ObjectId, OwnedFd>,
) -> Result<(Self, Self::Event), DispatchError>
fn parse_event( conn: &Connection, msg: Message<ObjectId, OwnedFd>, ) -> Result<(Self, Self::Event), DispatchError>
Source§fn write_request<'a>(
&self,
conn: &Connection,
msg: Self::Request<'a>,
) -> Result<(Message<ObjectId, BorrowedFd<'a>>, Option<(&'static Interface, u32)>), InvalidId>
fn write_request<'a>( &self, conn: &Connection, msg: Self::Request<'a>, ) -> Result<(Message<ObjectId, BorrowedFd<'a>>, Option<(&'static Interface, u32)>), InvalidId>
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.