#[non_exhaustive]pub enum Event {
Capabilities {
capabilities: WEnum<GroupCapabilities>,
},
OutputEnter {
output: WlOutput,
},
OutputLeave {
output: WlOutput,
},
WorkspaceEnter {
workspace: ExtWorkspaceHandleV1,
},
WorkspaceLeave {
workspace: ExtWorkspaceHandleV1,
},
Removed,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Capabilities
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 creating workspaces, a button triggering the create_workspace request should not be displayed.
The compositor will ignore requests it doesn’t support. For instance, a compositor which doesn’t advertise support for creating workspaces will ignore create_workspace requests.
Compositors must send this event once after creation of an ext_workspace_group_handle_v1. When the capabilities change, compositors must send this event again.
Fields
capabilities: WEnum<GroupCapabilities>
capabilities
OutputEnter
output assigned to workspace group
This event is emitted whenever an output is assigned to the workspace
group or a new wl_output
object is bound by the client, which was already
assigned to this workspace_group.
OutputLeave
output removed from workspace group
This event is emitted whenever an output is removed from the workspace group.
WorkspaceEnter
workspace added to workspace group
This event is emitted whenever a workspace is assigned to this group. A workspace may only ever be assigned to a single group at a single point in time, but can be re-assigned during it’s lifetime.
Fields
workspace: ExtWorkspaceHandleV1
WorkspaceLeave
workspace removed from workspace group
This event is emitted whenever a workspace is removed from this group.
Fields
workspace: ExtWorkspaceHandleV1
Removed
this workspace group has been removed
This event is send when the group associated with the ext_workspace_group_handle_v1 has been removed. After sending this request the compositor will immediately consider the object inert. Any requests will be ignored except the destroy request. It is guaranteed there won’t be any more events referencing this ext_workspace_group_handle_v1.
The compositor must remove all workspaces belonging to a workspace group via a workspace_leave event before removing the workspace group.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl !RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl !UnwindSafe for Event
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> 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.