public class WlRegionProxy extends Proxy<WlRegionEvents>
A region object describes an area.
Region objects are used to describe the opaque and input regions of a surface.
| Modifier and Type | Field and Description |
|---|---|
static String |
INTERFACE_NAME |
| Constructor and Description |
|---|
WlRegionProxy(long pointer) |
WlRegionProxy(long pointer,
WlRegionEvents implementation,
int version) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int x,
int y,
int width,
int height)
add rectangle to region
|
void |
destroy()
destroy region
|
void |
subtract(int x,
int y,
int width,
int height)
subtract rectangle from region
|
equals, getId, getImplementation, getPointer, getVersion, hashCode, marshal, marshal, marshalConstructor, setQueuepublic static final String INTERFACE_NAME
public WlRegionProxy(long pointer,
WlRegionEvents implementation,
int version)
public WlRegionProxy(long pointer)
public void destroy()
Destroy the region. This will invalidate the object ID.
destroy in class Proxy<WlRegionEvents>public void add(int x,
int y,
int width,
int height)
Add the specified rectangle to the region.
x - region-local x coordinatey - region-local y coordinatewidth - rectangle widthheight - rectangle heightpublic void subtract(int x,
int y,
int width,
int height)
Subtract the specified rectangle from the region.
x - region-local x coordinatey - region-local y coordinatewidth - rectangle widthheight - rectangle heightCopyright © 2016. All rights reserved.