Class WlShmProxy
- All Implemented Interfaces:
WaylandObject
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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWlShmProxy
(MemorySegment pointer) WlShmProxy
(MemorySegment pointer, WlShmEvents implementation, int version) -
Method Summary
Modifier and TypeMethodDescriptioncreatePool
(WlShmPoolEvents implementation, int fd, int size) create a shm poolvoid
release()
release the shm objectMethods inherited from class org.freedesktop.wayland.client.Proxy
destroy, equals, getId, getImplementation, getPointer, getVersion, hashCode, marshal, marshal, marshalConstructor, setQueue
-
Field Details
-
INTERFACE_NAME
- See Also:
-
-
Constructor Details
-
WlShmProxy
-
WlShmProxy
-
-
Method Details
-
createPool
create a shm poolCreate a new wl_shm_pool object.
The pool can be used to create shared memory based buffer objects. The server will mmap size bytes of the passed file descriptor, to use as backing memory for the pool.
- Parameters:
implementation
- A protocol event listener for the newly created proxy.fd
- file descriptor for the poolsize
- pool size, in bytes
-
release
public void release()release the shm objectUsing this request a client can tell the server that it is not going to use the shm object anymore.
Objects created via this interface remain unaffected.
-