pub struct ZcosmicToplevelManagerV1 { /* private fields */ }
Expand description
control open apps
This protocol allows clients such as a taskbar to request the compositor to preform typical actions on open toplevels. The compositor is in all cases free to ignore the request.
See also the Request enum for this interface.
Implementations§
Source§impl ZcosmicToplevelManagerV1
impl ZcosmicToplevelManagerV1
Sourcepub fn capabilities(&self, capabilities: Vec<u8>)
pub fn capabilities(&self, capabilities: Vec<u8>)
compositor capabilities
This event advertises the capabilities supported by the compositor. If a capability isn’t supported, clients should hide or disable the UI elements that expose this functionality. For instance, if the compositor doesn’t advertise support for closing toplevels, a button triggering the close request should not be displayed.
The compositor will ignore requests it doesn’t support. For instance, a compositor which doesn’t advertise support for closing toplevels will ignore close requests.
Compositors must send this event once after creation of an zcosmic_toplevel_manager_v1 . When the capabilities change, compositors must send this event again.
The capabilities are sent as an array of 32-bit unsigned integers in native endianness.
Trait Implementations§
Source§impl Borrow<ObjectId> for ZcosmicToplevelManagerV1
impl Borrow<ObjectId> for ZcosmicToplevelManagerV1
Source§impl Clone for ZcosmicToplevelManagerV1
impl Clone for ZcosmicToplevelManagerV1
Source§fn clone(&self) -> ZcosmicToplevelManagerV1
fn clone(&self) -> ZcosmicToplevelManagerV1
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ZcosmicToplevelManagerV1
impl Debug for ZcosmicToplevelManagerV1
Source§impl Hash for ZcosmicToplevelManagerV1
impl Hash for ZcosmicToplevelManagerV1
Source§impl PartialEq<Weak<ZcosmicToplevelManagerV1>> for ZcosmicToplevelManagerV1
impl PartialEq<Weak<ZcosmicToplevelManagerV1>> for ZcosmicToplevelManagerV1
Source§impl PartialEq for ZcosmicToplevelManagerV1
impl PartialEq for ZcosmicToplevelManagerV1
Source§impl Resource for ZcosmicToplevelManagerV1
impl Resource for ZcosmicToplevelManagerV1
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 ZcosmicToplevelManagerV1
Auto Trait Implementations§
impl Freeze for ZcosmicToplevelManagerV1
impl !RefUnwindSafe for ZcosmicToplevelManagerV1
impl Send for ZcosmicToplevelManagerV1
impl Sync for ZcosmicToplevelManagerV1
impl Unpin for ZcosmicToplevelManagerV1
impl !UnwindSafe for ZcosmicToplevelManagerV1
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.