Struct runa_wayland_protocols::stable::xdg_shell::xdg_toplevel::v5::events::WmCapabilities
source · pub struct WmCapabilities<'a> {
pub capabilities: &'a [u8],
}
Expand description
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 minimized toplevels, a button triggering the set_minimized request should not be displayed.
The compositor will ignore requests it doesn’t support. For instance, a compositor which doesn’t advertise support for minimized will ignore set_minimized requests.
Compositors must send this event once before the first xdg_surface.configure event. When the capabilities change, compositors must send this event again and then send an xdg_surface.configure event.
The configured state should not be applied immediately. See xdg_surface.configure for details.
The capabilities are sent as an array of 32-bit unsigned integers in native endianness.
Fields§
§capabilities: &'a [u8]
Implementations§
Trait Implementations§
source§impl<'a> Clone for WmCapabilities<'a>
impl<'a> Clone for WmCapabilities<'a>
source§fn clone(&self) -> WmCapabilities<'a>
fn clone(&self) -> WmCapabilities<'a>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<'a> Debug for WmCapabilities<'a>
impl<'a> Debug for WmCapabilities<'a>
source§impl<'a> Deserialize<'a> for WmCapabilities<'a>
impl<'a> Deserialize<'a> for WmCapabilities<'a>
source§impl<'a> PartialEq<WmCapabilities<'a>> for WmCapabilities<'a>
impl<'a> PartialEq<WmCapabilities<'a>> for WmCapabilities<'a>
source§fn eq(&self, other: &WmCapabilities<'a>) -> bool
fn eq(&self, other: &WmCapabilities<'a>) -> bool
self
and other
values to be equal, and is used
by ==
.