Class WlDisplayResource
- All Implemented Interfaces:
WaylandObject
The core global object. This is a special singleton object. It is used for internal Wayland protocol features.
-
Field Summary
FieldsFields inherited from class org.freedesktop.wayland.server.Resource
wlResourcePtr
-
Constructor Summary
ConstructorsConstructorDescriptionWlDisplayResource
(MemorySegment pointer) WlDisplayResource
(Client client, int version, int id, WlDisplayRequests implementation) -
Method Summary
Methods inherited from class org.freedesktop.wayland.server.Resource
addDestroyListener, destroy, equals, getClient, getId, getImplementation, getPointer, getVersion, hashCode, postError, postEvent, postEvent, register, unregister
-
Field Details
-
INTERFACE_NAME
- See Also:
-
-
Constructor Details
-
WlDisplayResource
-
WlDisplayResource
-
-
Method Details
-
error
fatal error eventThe error event is sent out when a fatal (non-recoverable) error has occurred. The object_id argument is the object where the error occurred, most often in response to a request to that object. The code identifies the error and is defined by the object interface. As such, each interface defines its own set of error codes. The message is a brief description of the error, for (debugging) convenience.
- Parameters:
objectId
- object where the error occurredcode
- error codemessage
- error description
-
deleteId
public void deleteId(int id) acknowledge object ID deletionThis event is used internally by the object ID management logic. When a client deletes an object that it had created, the server will send this event to acknowledge that it has seen the delete request. When the client receives this event, it will know that it can safely reuse the object ID.
- Parameters:
id
- deleted object ID
-