Class WpViewporterProxy
- All Implemented Interfaces:
WaylandObject
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 -
Constructor Summary
ConstructorsConstructorDescriptionWpViewporterProxy
(MemorySegment pointer) WpViewporterProxy
(MemorySegment pointer, WpViewporterEvents implementation, int version) -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
unbind from the cropping and scaling interfacegetViewport
(WpViewportEvents implementation, WlSurfaceProxy surface) extend surface interface for crop and scaleMethods inherited from class org.freedesktop.wayland.client.Proxy
equals, getId, getImplementation, getPointer, getVersion, hashCode, marshal, marshal, marshalConstructor, setQueue
-
Field Details
-
INTERFACE_NAME
- See Also:
-
-
Constructor Details
-
WpViewporterProxy
-
WpViewporterProxy
-
-
Method Details
-
destroy
public void 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.
- Overrides:
destroy
in classProxy<WpViewporterEvents>
-
getViewport
public WpViewportProxy getViewport(WpViewportEvents implementation, @Nonnull WlSurfaceProxy surface) 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:
implementation
- A protocol event listener for the newly created proxy.surface
- the surface
-