[−][src]Struct wayland_protocols::unstable::xdg_decoration::v1::client::zxdg_toplevel_decoration_v1::ZxdgToplevelDecorationV1
Implementations
impl ZxdgToplevelDecorationV1
[src]
pub fn destroy(&self)
[src]
destroy the decoration object
Switch back to a mode without any server-side decorations at the next commit.
This is a destructor, you cannot send requests to this object any longer once this method is called.
pub fn set_mode(&self, mode: Mode)
[src]
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 a 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 a 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.
pub fn unset_mode(&self)
[src]
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
impl AsRef<Proxy<ZxdgToplevelDecorationV1>> for ZxdgToplevelDecorationV1
[src]
impl Clone for ZxdgToplevelDecorationV1
[src]
fn clone(&self) -> ZxdgToplevelDecorationV1
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ZxdgToplevelDecorationV1
[src]
impl Eq for ZxdgToplevelDecorationV1
[src]
impl From<Proxy<ZxdgToplevelDecorationV1>> for ZxdgToplevelDecorationV1
[src]
impl From<ZxdgToplevelDecorationV1> for Proxy<ZxdgToplevelDecorationV1>
[src]
fn from(value: ZxdgToplevelDecorationV1) -> Self
[src]
impl Interface for ZxdgToplevelDecorationV1
[src]
type Request = Request
Set of requests associated to this interface Read more
type Event = Event
Set of events associated to this interface Read more
const NAME: &'static str
[src]
const VERSION: u32
[src]
fn c_interface() -> *const wl_interface
[src]
impl PartialEq<ZxdgToplevelDecorationV1> for ZxdgToplevelDecorationV1
[src]
fn eq(&self, other: &ZxdgToplevelDecorationV1) -> bool
[src]
fn ne(&self, other: &ZxdgToplevelDecorationV1) -> bool
[src]
impl StructuralEq for ZxdgToplevelDecorationV1
[src]
impl StructuralPartialEq for ZxdgToplevelDecorationV1
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,