public class WlSeatProxy extends Proxy<WlSeatEvents>
A seat is a group of keyboards, pointer and touch devices. This object is published as a global during start up, or when such a device is hot plugged. A seat typically has a pointer and maintains a keyboard focus and a pointer focus.
| Modifier and Type | Field and Description |
|---|---|
static String |
INTERFACE_NAME |
| Constructor and Description |
|---|
WlSeatProxy(long pointer) |
WlSeatProxy(long pointer,
WlSeatEvents implementation,
int version) |
| Modifier and Type | Method and Description |
|---|---|
WlKeyboardProxy |
getKeyboard(WlKeyboardEvents implementation)
return keyboard object
|
WlPointerProxy |
getPointer(WlPointerEvents implementation)
return pointer object
|
WlTouchProxy |
getTouch(WlTouchEvents implementation)
return touch object
|
void |
release()
release the seat object
|
destroy, equals, getId, getImplementation, getPointer, getVersion, hashCode, marshal, marshal, marshalConstructor, setQueuepublic static final String INTERFACE_NAME
public WlSeatProxy(long pointer,
WlSeatEvents implementation,
int version)
public WlSeatProxy(long pointer)
public WlPointerProxy getPointer(WlPointerEvents implementation)
The ID provided will be initialized to the wl_pointer interface for this seat.
This request only takes effect if the seat has the pointer capability, or has had the pointer capability in the past. It is a protocol violation to issue this request on a seat that has never had the pointer capability.
implementation - A protocol event listener for the newly created proxy.public WlKeyboardProxy getKeyboard(WlKeyboardEvents implementation)
The ID provided will be initialized to the wl_keyboard interface for this seat.
This request only takes effect if the seat has the keyboard capability, or has had the keyboard capability in the past. It is a protocol violation to issue this request on a seat that has never had the keyboard capability.
implementation - A protocol event listener for the newly created proxy.public WlTouchProxy getTouch(WlTouchEvents implementation)
The ID provided will be initialized to the wl_touch interface for this seat.
This request only takes effect if the seat has the touch capability, or has had the touch capability in the past. It is a protocol violation to issue this request on a seat that has never had the touch capability.
implementation - A protocol event listener for the newly created proxy.public void release()
Using this request a client can tell the server that it is not going to use the seat object anymore.
Copyright © 2016. All rights reserved.