pub struct ZcosmicWorkspaceManagerV1 { /* private fields */ }
Expand description
list and control workspaces
Workspaces, also called virtual desktops, are groups of surfaces. A compositor with a concept of workspaces may only show some such groups of surfaces (those of ‘active’ workspaces) at a time. ‘Activating’ a workspace is a request for the compositor to display that workspace’s surfaces as normal, whereas the compositor may hide or otherwise de-emphasise surfaces that are associated only with ‘inactive’ workspaces. Workspaces are grouped by which sets of outputs they correspond to, and may contain surfaces only from those outputs. In this way, it is possible for each output to have its own set of workspaces, or for all outputs (or any other arbitrary grouping) to share workspaces. Compositors may optionally conceptually arrange each group of workspaces in an N-dimensional grid.
The purpose of this protocol is to enable the creation of taskbars and docks by providing them with a list of workspaces and their properties, and allowing them to activate and deactivate workspaces.
After a client binds the zcosmic_workspace_manager_v1, each workspace will be sent via the workspace event.
See also the Request enum for this interface.
Implementations§
Source§impl ZcosmicWorkspaceManagerV1
impl ZcosmicWorkspaceManagerV1
Sourcepub fn workspace_group(&self, workspace_group: &ZcosmicWorkspaceGroupHandleV1)
pub fn workspace_group(&self, workspace_group: &ZcosmicWorkspaceGroupHandleV1)
a workspace group has been created
This event is emitted whenever a new workspace group has been created.
All initial details of the workspace group (workspaces, outputs) will be sent immediately after this event via the corresponding events in zcosmic_workspace_group_handle_v1.
Sourcepub fn done(&self)
pub fn done(&self)
all information about the workspace groups has been sent
This event is sent after all changes in all workspace groups have been sent.
This allows changes to one or more zcosmic_workspace_group_handle_v1 properties and zcosmic_workspace_handle_v1 properties to be seen as atomic, even if they happen via multiple events. In particular, an output moving from one workspace group to another sends an output_enter event and an output_leave event to the two zcosmic_workspace_group_handle_v1 objects in question. The compositor sends the done event only after updating the output information in both workspace groups.
Sourcepub fn finished(&self)
pub fn finished(&self)
the compositor has finished with the workspace_manager
This event indicates that the compositor is done sending events to the zcosmic_workspace_manager_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.
Trait Implementations§
Source§impl Borrow<ObjectId> for ZcosmicWorkspaceManagerV1
impl Borrow<ObjectId> for ZcosmicWorkspaceManagerV1
Source§impl Clone for ZcosmicWorkspaceManagerV1
impl Clone for ZcosmicWorkspaceManagerV1
Source§fn clone(&self) -> ZcosmicWorkspaceManagerV1
fn clone(&self) -> ZcosmicWorkspaceManagerV1
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ZcosmicWorkspaceManagerV1
impl Debug for ZcosmicWorkspaceManagerV1
Source§impl Hash for ZcosmicWorkspaceManagerV1
impl Hash for ZcosmicWorkspaceManagerV1
Source§impl PartialEq<Weak<ZcosmicWorkspaceManagerV1>> for ZcosmicWorkspaceManagerV1
impl PartialEq<Weak<ZcosmicWorkspaceManagerV1>> for ZcosmicWorkspaceManagerV1
Source§impl Resource for ZcosmicWorkspaceManagerV1
impl Resource for ZcosmicWorkspaceManagerV1
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 ZcosmicWorkspaceManagerV1
Auto Trait Implementations§
impl Freeze for ZcosmicWorkspaceManagerV1
impl !RefUnwindSafe for ZcosmicWorkspaceManagerV1
impl Send for ZcosmicWorkspaceManagerV1
impl Sync for ZcosmicWorkspaceManagerV1
impl Unpin for ZcosmicWorkspaceManagerV1
impl !UnwindSafe for ZcosmicWorkspaceManagerV1
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.