[−][src]Trait wayland_protocols::viewporter::client::wp_viewporter::RequestsTrait
Required methods
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.
fn get_viewport<F>(
&self,
surface: &Proxy<WlSurface>,
implementor: F
) -> Result<Proxy<WpViewport>, ()> where
F: FnOnce(NewProxy<WpViewport>) -> Proxy<WpViewport>,
&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.
Implementations on Foreign Types
impl RequestsTrait for Proxy<WpViewporter>
[src]
fn destroy(&self)
[src]
fn get_viewport<F>(
&self,
surface: &Proxy<WlSurface>,
implementor: F
) -> Result<Proxy<WpViewport>, ()> where
F: FnOnce(NewProxy<WpViewport>) -> Proxy<WpViewport>,
[src]
&self,
surface: &Proxy<WlSurface>,
implementor: F
) -> Result<Proxy<WpViewport>, ()> where
F: FnOnce(NewProxy<WpViewport>) -> Proxy<WpViewport>,