| Modifier and Type | Field and Description |
|---|---|
static String |
INTERFACE_NAME |
| Constructor and Description |
|---|
WlDisplayProxy(long pointer) |
| Modifier and Type | Method and Description |
|---|---|
static WlDisplayProxy |
connect(String name)
Connect to a Wayland display
|
static WlDisplayProxy |
connectToFd(int fd)
Connect to Wayland display on an already open fd
|
Void |
getImplementation() |
WlRegistryProxy |
getRegistry(WlRegistryEvents implementation)
get global registry object
|
WlCallbackProxy |
sync(WlCallbackEvents implementation)
asynchronous roundtrip
|
cancelRead, createQueue, disconnect, dispatch, dispatchPending, dispatchQueue, dispatchQueuePending, flush, getError, getFD, prepareRead, prepareReadQueue, readEvents, roundtripdestroy, equals, getId, getPointer, getVersion, hashCode, marshal, marshal, marshalConstructor, setQueuepublic static final String INTERFACE_NAME
public WlCallbackProxy sync(WlCallbackEvents implementation)
The sync request asks the server to emit the 'done' event on the returned wl_callback object. Since requests are handled in-order and events are delivered in-order, this can be used as a barrier to ensure all previous requests and the resulting events have been handled.
The object returned by this request will be destroyed by the compositor after the callback is fired and as such the client must not attempt to use it after that point.
The callback_data passed in the callback is the event serial.
implementation - A protocol event listener for the newly created proxy.public WlRegistryProxy getRegistry(WlRegistryEvents implementation)
This request creates a registry object that allows the client to list and bind the global objects available from the compositor.
implementation - A protocol event listener for the newly created proxy.public static WlDisplayProxy connect(String name)
Connect to the Wayland display named 'name'. If 'name' is 'null', its value will be replaced with the WAYLAND_DISPLAY environment variable if it is set, otherwise display "wayland-0" will be used.
name - Name of the Wayland display to connect toWlDisplayProxy object or null on failure.public static WlDisplayProxy connectToFd(int fd)
The WlDisplayProxy takes ownership of the fd and will close it when the
display is destroyed. The fd will also be closed in case of
failure.
fd - The fd to use for the connectionWlDisplayProxy object or null on failure.public Void getImplementation()
getImplementation in interface org.freedesktop.wayland.util.WaylandObjectgetImplementation in class Proxy<Void>Copyright © 2016. All rights reserved.