pub trait RequestsTrait {
    fn destroy(&self);
    fn get_toplevel_decoration<F>(
        &self,
        toplevel: &Proxy<XdgToplevel>,
        implementor: F
    ) -> Result<Proxy<ZxdgToplevelDecorationV1>, ()>
    where
        F: FnOnce(NewProxy<ZxdgToplevelDecorationV1>) -> Proxy<ZxdgToplevelDecorationV1>
; }

Required Methods§

destroy the decoration manager object

Destroy the decoration manager. This doesn’t destroy objects created with the manager.

This is a destructor, you cannot send requests to this object any longer once this method is called.

create a new toplevel decoration object

Create a new decoration object associated with the given toplevel.

Creating an xdg_toplevel_decoration from an xdg_toplevel which has a buffer attached or committed is a client error, and any attempts by a client to attach or manipulate a buffer prior to the first xdg_toplevel_decoration.configure event must also be treated as errors.

Implementations on Foreign Types§

Implementors§