Struct wayland_protocols::xdg::decoration::zv1::client::zxdg_toplevel_decoration_v1::ZxdgToplevelDecorationV1
source · pub struct ZxdgToplevelDecorationV1 { /* private fields */ }
Expand description
decoration object for a toplevel surface
The decoration object allows the compositor to toggle server-side window decorations for a toplevel surface. The client can request to switch to another mode.
The xdg_toplevel_decoration object must be destroyed before its xdg_toplevel.
See also the Event enum for this interface.
Implementations§
source§impl ZxdgToplevelDecorationV1
impl ZxdgToplevelDecorationV1
sourcepub fn destroy(&self)
pub fn destroy(&self)
destroy the decoration object
Switch back to a mode without any server-side decorations at the next commit.
sourcepub fn set_mode(&self, mode: Mode)
pub fn set_mode(&self, mode: Mode)
set the decoration mode
Set the toplevel surface decoration mode. This informs the compositor that the client prefers the provided decoration mode.
After requesting a decoration mode, the compositor will respond by emitting an xdg_surface.configure event. The client should then update its content, drawing it without decorations if the received mode is server-side decorations. The client must also acknowledge the configure when committing the new content (see xdg_surface.ack_configure).
The compositor can decide not to use the client’s mode and enforce a different mode instead.
Clients whose decoration mode depend on the xdg_toplevel state may send a set_mode request in response to an xdg_surface.configure event and wait for the next xdg_surface.configure event to prevent unwanted state. Such clients are responsible for preventing configure loops and must make sure not to send multiple successive set_mode requests with the same decoration mode.
sourcepub fn unset_mode(&self)
pub fn unset_mode(&self)
unset the decoration mode
Unset the toplevel surface decoration mode. This informs the compositor that the client doesn’t prefer a particular decoration mode.
This request has the same semantics as set_mode.
Trait Implementations§
source§impl Borrow<ObjectId> for ZxdgToplevelDecorationV1
impl Borrow<ObjectId> for ZxdgToplevelDecorationV1
source§impl Clone for ZxdgToplevelDecorationV1
impl Clone for ZxdgToplevelDecorationV1
source§fn clone(&self) -> ZxdgToplevelDecorationV1
fn clone(&self) -> ZxdgToplevelDecorationV1
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ZxdgToplevelDecorationV1
impl Debug for ZxdgToplevelDecorationV1
source§impl Hash for ZxdgToplevelDecorationV1
impl Hash for ZxdgToplevelDecorationV1
source§impl PartialEq<Weak<ZxdgToplevelDecorationV1>> for ZxdgToplevelDecorationV1
impl PartialEq<Weak<ZxdgToplevelDecorationV1>> for ZxdgToplevelDecorationV1
source§impl PartialEq for ZxdgToplevelDecorationV1
impl PartialEq for ZxdgToplevelDecorationV1
source§fn eq(&self, other: &ZxdgToplevelDecorationV1) -> bool
fn eq(&self, other: &ZxdgToplevelDecorationV1) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Proxy for ZxdgToplevelDecorationV1
impl Proxy for ZxdgToplevelDecorationV1
source§fn data<U: Send + Sync + 'static>(&self) -> Option<&U>
fn data<U: Send + Sync + 'static>(&self) -> Option<&U>
source§fn object_data(&self) -> Option<&Arc<dyn ObjectData>>
fn object_data(&self) -> Option<&Arc<dyn ObjectData>>
source§fn backend(&self) -> &WeakBackend
fn backend(&self) -> &WeakBackend
source§fn send_request(&self, req: Self::Request<'_>) -> Result<(), InvalidId>
fn send_request(&self, req: Self::Request<'_>) -> Result<(), InvalidId>
source§fn send_constructor<I: Proxy>(
&self,
req: Self::Request<'_>,
data: Arc<dyn ObjectData>
) -> Result<I, InvalidId>
fn send_constructor<I: Proxy>( &self, req: Self::Request<'_>, data: Arc<dyn ObjectData> ) -> Result<I, InvalidId>
source§fn from_id(conn: &Connection, id: ObjectId) -> Result<Self, InvalidId>
fn from_id(conn: &Connection, id: ObjectId) -> Result<Self, InvalidId>
source§fn inert(backend: WeakBackend) -> Self
fn inert(backend: WeakBackend) -> Self
source§fn parse_event(
conn: &Connection,
msg: Message<ObjectId, OwnedFd>
) -> Result<(Self, Self::Event), DispatchError>
fn parse_event( conn: &Connection, msg: Message<ObjectId, OwnedFd> ) -> Result<(Self, Self::Event), DispatchError>
source§fn write_request<'a>(
&self,
conn: &Connection,
msg: Self::Request<'a>
) -> Result<(Message<ObjectId, BorrowedFd<'a>>, Option<(&'static Interface, u32)>), InvalidId>
fn write_request<'a>( &self, conn: &Connection, msg: Self::Request<'a> ) -> Result<(Message<ObjectId, BorrowedFd<'a>>, Option<(&'static Interface, u32)>), InvalidId>
impl Eq for ZxdgToplevelDecorationV1
Auto Trait Implementations§
impl !RefUnwindSafe for ZxdgToplevelDecorationV1
impl Send for ZxdgToplevelDecorationV1
impl Sync for ZxdgToplevelDecorationV1
impl Unpin for ZxdgToplevelDecorationV1
impl !UnwindSafe for ZxdgToplevelDecorationV1
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§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
.§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
.§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.§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.