Interface WpViewporterRequests
The global interface exposing surface cropping and scaling capabilities is used to instantiate an interface extension for a wl_surface object. This extended interface will then allow cropping and scaling the surface contents, effectively disconnecting the direct relationship between the buffer and the surface size.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy
(WpViewporterResource requester) unbind from the cropping and scaling interfacevoid
getViewport
(WpViewporterResource requester, int id, WlSurfaceResource surface) extend surface interface for crop and scale
-
Field Details
-
VERSION
static final int VERSION- See Also:
-
-
Method Details
-
destroy
unbind from the cropping and scaling interfaceInforms the server that the client will not be using this protocol object anymore. This does not affect any other objects, wp_viewport objects included.
- Parameters:
requester
- The protocol object that made the request.
-
getViewport
extend surface interface for crop and scaleInstantiate 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.
- Parameters:
requester
- The protocol object that made the request.id
- the new viewport interface idsurface
- the surface
-