Package org.freedesktop.wayland.server
Class WlShmResource
- All Implemented Interfaces:
WaylandObject
shared memory support
A singleton global object that provides support for shared memory.
Clients can create wl_shm_pool objects using the create_pool request.
On binding the wl_shm object one or more format events are emitted to inform clients about the valid pixel formats that can be used for buffers.
-
Field Summary
FieldsFields inherited from class org.freedesktop.wayland.server.Resource
wlResourcePtr
-
Constructor Summary
ConstructorsConstructorDescriptionWlShmResource
(MemorySegment pointer) WlShmResource
(Client client, int version, int id, WlShmRequests 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
-
WlShmResource
-
WlShmResource
-
-
Method Details
-
format
public void format(int format) pixel format descriptionInforms the client about a valid pixel format that can be used for buffers. Known formats include argb8888 and xrgb8888.
- Parameters:
format
- buffer pixel format
-