pub struct ZcosmicWorkspaceHandleV2 { /* private fields */ }
Expand description
a workspace handing a group of surfaces
A zcosmic_workspace_handle_v2 object represents a a workspace that handles a group of surfaces.
Each workspace has a name, conveyed to the client with the name event; a list of states, conveyed to the client with the state event; and optionally a set of coordinates, conveyed to the client with the coordinates event. The client may request that the compositor activate or deactivate the workspace.
Each workspace can belong to only a single workspace group. Depepending on the compositor policy, there might be workspaces with the same name in different workspace groups, but these workspaces are still separate (e.g. one of them might be active while the other is not).
See also the Request enum for this interface.
Implementations§
Source§impl ZcosmicWorkspaceHandleV2
impl ZcosmicWorkspaceHandleV2
Sourcepub fn capabilities(&self, capabilities: WorkspaceCapabilities)
pub fn capabilities(&self, capabilities: WorkspaceCapabilities)
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 removing workspaces, a button triggering the remove request should not be displayed.
The compositor will ignore requests it doesn’t support. For instance, a compositor which doesn’t advertise support for remove will ignore remove requests.
Compositors must send this event once after creation of a
zcosmic_workspace_handle_v2
. When the capabilities change, compositors
must send this event again.
Sourcepub fn tiling_state(&self, state: TilingState)
pub fn tiling_state(&self, state: TilingState)
indicates if tiling behavior is enabled for this workspace
This event is emitted immediately after the zcosmic_workspace_handle_v2 is created and each time the workspace tiling state changes, either because of a compositor action or because of a request in this protocol.
Trait Implementations§
Source§impl Borrow<ObjectId> for ZcosmicWorkspaceHandleV2
impl Borrow<ObjectId> for ZcosmicWorkspaceHandleV2
Source§impl Clone for ZcosmicWorkspaceHandleV2
impl Clone for ZcosmicWorkspaceHandleV2
Source§fn clone(&self) -> ZcosmicWorkspaceHandleV2
fn clone(&self) -> ZcosmicWorkspaceHandleV2
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ZcosmicWorkspaceHandleV2
impl Debug for ZcosmicWorkspaceHandleV2
Source§impl Hash for ZcosmicWorkspaceHandleV2
impl Hash for ZcosmicWorkspaceHandleV2
Source§impl PartialEq<Weak<ZcosmicWorkspaceHandleV2>> for ZcosmicWorkspaceHandleV2
impl PartialEq<Weak<ZcosmicWorkspaceHandleV2>> for ZcosmicWorkspaceHandleV2
Source§impl PartialEq for ZcosmicWorkspaceHandleV2
impl PartialEq for ZcosmicWorkspaceHandleV2
Source§impl Resource for ZcosmicWorkspaceHandleV2
impl Resource for ZcosmicWorkspaceHandleV2
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 ZcosmicWorkspaceHandleV2
Auto Trait Implementations§
impl Freeze for ZcosmicWorkspaceHandleV2
impl !RefUnwindSafe for ZcosmicWorkspaceHandleV2
impl Send for ZcosmicWorkspaceHandleV2
impl Sync for ZcosmicWorkspaceHandleV2
impl Unpin for ZcosmicWorkspaceHandleV2
impl !UnwindSafe for ZcosmicWorkspaceHandleV2
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.