Package org.freedesktop.wayland.raw
Class wl_resource
java.lang.Object
org.freedesktop.wayland.raw.wl_resource
struct wl_resource {
struct wl_object object;
wl_resource_destroy_func_t destroy;
struct wl_list link;
struct wl_signal destroy_signal;
struct wl_client *client;
void *data;
}
-
Method Summary
Modifier and TypeMethodDescriptionstatic MemorySegment
allocate
(SegmentAllocator allocator) Allocate a segment of sizelayout().byteSize()
usingallocator
static MemorySegment
allocateArray
(long elementCount, SegmentAllocator allocator) Allocate an array of sizeelementCount
usingallocator
.static MemorySegment
asSlice
(MemorySegment array, long index) Obtains a slice ofarrayParam
which selects the array element atindex
.static MemorySegment
client
(MemorySegment struct) Getter for field:struct wl_client *client
static void
client
(MemorySegment struct, MemorySegment fieldValue) Setter for field:struct wl_client *client
static final AddressLayout
Layout for field:struct wl_client *client
static final long
Offset for field:struct wl_client *client
static MemorySegment
data
(MemorySegment struct) Getter for field:void *data
static void
data
(MemorySegment struct, MemorySegment fieldValue) Setter for field:void *data
static final AddressLayout
Layout for field:void *data
static final long
Offset for field:void *data
static MemorySegment
destroy
(MemorySegment struct) Getter for field:wl_resource_destroy_func_t destroy
static void
destroy
(MemorySegment struct, MemorySegment fieldValue) Setter for field:wl_resource_destroy_func_t destroy
static MemorySegment
destroy_signal
(MemorySegment struct) Getter for field:struct wl_signal destroy_signal
static void
destroy_signal
(MemorySegment struct, MemorySegment fieldValue) Setter for field:struct wl_signal destroy_signal
static final GroupLayout
Layout for field:struct wl_signal destroy_signal
static final long
Offset for field:struct wl_signal destroy_signal
static final AddressLayout
Layout for field:wl_resource_destroy_func_t destroy
static final long
Offset for field:wl_resource_destroy_func_t destroy
static final GroupLayout
layout()
The layout of this structstatic MemorySegment
link
(MemorySegment struct) Getter for field:struct wl_list link
static void
link
(MemorySegment struct, MemorySegment fieldValue) Setter for field:struct wl_list link
static final GroupLayout
Layout for field:struct wl_list link
static final long
Offset for field:struct wl_list link
static MemorySegment
object
(MemorySegment struct) Getter for field:struct wl_object object
static void
object
(MemorySegment struct, MemorySegment fieldValue) Setter for field:struct wl_object object
static final GroupLayout
Layout for field:struct wl_object object
static final long
Offset for field:struct wl_object object
static MemorySegment
reinterpret
(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any).static MemorySegment
reinterpret
(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any).static long
sizeof()
The size (in bytes) of this struct
-
Method Details
-
layout
The layout of this struct -
object$layout
Layout for field:struct wl_object object
-
object$offset
public static final long object$offset()Offset for field:struct wl_object object
-
object
Getter for field:struct wl_object object
-
object
Setter for field:struct wl_object object
-
destroy$layout
Layout for field:wl_resource_destroy_func_t destroy
-
destroy$offset
public static final long destroy$offset()Offset for field:wl_resource_destroy_func_t destroy
-
destroy
Getter for field:wl_resource_destroy_func_t destroy
-
destroy
Setter for field:wl_resource_destroy_func_t destroy
-
link$layout
Layout for field:struct wl_list link
-
link$offset
public static final long link$offset()Offset for field:struct wl_list link
-
link
Getter for field:struct wl_list link
-
link
Setter for field:struct wl_list link
-
destroy_signal$layout
Layout for field:struct wl_signal destroy_signal
-
destroy_signal$offset
public static final long destroy_signal$offset()Offset for field:struct wl_signal destroy_signal
-
destroy_signal
Getter for field:struct wl_signal destroy_signal
-
destroy_signal
Setter for field:struct wl_signal destroy_signal
-
client$layout
Layout for field:struct wl_client *client
-
client$offset
public static final long client$offset()Offset for field:struct wl_client *client
-
client
Getter for field:struct wl_client *client
-
client
Setter for field:struct wl_client *client
-
data$layout
Layout for field:void *data
-
data$offset
public static final long data$offset()Offset for field:void *data
-
data
Getter for field:void *data
-
data
Setter for field:void *data
-
asSlice
Obtains a slice ofarrayParam
which selects the array element atindex
. The returned segment has addressarrayParam.address() + index * layout().byteSize()
-
sizeof
public static long sizeof()The size (in bytes) of this struct -
allocate
Allocate a segment of sizelayout().byteSize()
usingallocator
-
allocateArray
Allocate an array of sizeelementCount
usingallocator
. The returned segment has sizeelementCount * layout().byteSize()
. -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any). The returned segment has sizelayout().byteSize()
-
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any). The returned segment has sizeelementCount * layout().byteSize()
-