pub trait RequestsTrait {
fn destroy(&self);
fn get_viewport<F>(
&self,
surface: &Proxy<WlSurface>,
implementor: F
) -> Result<Proxy<WpViewport>, ()>
where
F: FnOnce(NewProxy<WpViewport>) -> Proxy<WpViewport>;
}
Required Methods§
sourcefn destroy(&self)
fn destroy(&self)
unbind from the cropping and scaling interface
Informs the server that the client will not be using this protocol object anymore. This does not affect any other objects, wp_viewport objects included.
This is a destructor, you cannot send requests to this object any longer once this method is called.
sourcefn get_viewport<F>(
&self,
surface: &Proxy<WlSurface>,
implementor: F
) -> Result<Proxy<WpViewport>, ()>where
F: FnOnce(NewProxy<WpViewport>) -> Proxy<WpViewport>,
fn get_viewport<F>(
&self,
surface: &Proxy<WlSurface>,
implementor: F
) -> Result<Proxy<WpViewport>, ()>where
F: FnOnce(NewProxy<WpViewport>) -> Proxy<WpViewport>,
extend surface interface for crop and scale
Instantiate an interface extension for the given wl_surface to crop and scale its content. If the given wl_surface already has a wp_viewport object associated, the viewport_exists protocol error is raised.