Trait wayland_protocols::unstable::xdg_decoration::v1::client::zxdg_decoration_manager_v1::RequestsTrait
source · 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§
sourcefn destroy(&self)
fn destroy(&self)
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.
sourcefn get_toplevel_decoration<F>(
&self,
toplevel: &Proxy<XdgToplevel>,
implementor: F
) -> Result<Proxy<ZxdgToplevelDecorationV1>, ()>where
F: FnOnce(NewProxy<ZxdgToplevelDecorationV1>) -> Proxy<ZxdgToplevelDecorationV1>,
fn get_toplevel_decoration<F>(
&self,
toplevel: &Proxy<XdgToplevel>,
implementor: F
) -> Result<Proxy<ZxdgToplevelDecorationV1>, ()>where
F: FnOnce(NewProxy<ZxdgToplevelDecorationV1>) -> Proxy<ZxdgToplevelDecorationV1>,
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.