Package org.freedesktop.wayland.client
Class WlRegionProxy
- All Implemented Interfaces:
WaylandObject
region interface
A region object describes an area.
Region objects are used to describe the opaque and input regions of a surface.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWlRegionProxy
(MemorySegment pointer) WlRegionProxy
(MemorySegment pointer, WlRegionEvents implementation, int version) -
Method Summary
Methods 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
-
WlRegionProxy
-
WlRegionProxy
-
-
Method Details
-
destroy
public void destroy()destroy regionDestroy the region. This will invalidate the object ID.
- Overrides:
destroy
in classProxy<WlRegionEvents>
-
add
public void add(int x, int y, int width, int height) add rectangle to regionAdd the specified rectangle to the region.
- Parameters:
x
- region-local x coordinatey
- region-local y coordinatewidth
- rectangle widthheight
- rectangle height
-
subtract
public void subtract(int x, int y, int width, int height) subtract rectangle from regionSubtract the specified rectangle from the region.
- Parameters:
x
- region-local x coordinatey
- region-local y coordinatewidth
- rectangle widthheight
- rectangle height
-