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 MemorySegmentallocate(SegmentAllocator allocator) Allocate a segment of sizelayout().byteSize()usingallocatorstatic MemorySegmentallocateArray(long elementCount, SegmentAllocator allocator) Allocate an array of sizeelementCountusingallocator.static MemorySegmentasSlice(MemorySegment array, long index) Obtains a slice ofarrayParamwhich selects the array element atindex.static MemorySegmentclient(MemorySegment struct) Getter for field:struct wl_client *clientstatic voidclient(MemorySegment struct, MemorySegment fieldValue) Setter for field:struct wl_client *clientstatic final AddressLayoutLayout for field:struct wl_client *clientstatic final longOffset for field:struct wl_client *clientstatic MemorySegmentdata(MemorySegment struct) Getter for field:void *datastatic voiddata(MemorySegment struct, MemorySegment fieldValue) Setter for field:void *datastatic final AddressLayoutLayout for field:void *datastatic final longOffset for field:void *datastatic MemorySegmentdestroy(MemorySegment struct) Getter for field:wl_resource_destroy_func_t destroystatic voiddestroy(MemorySegment struct, MemorySegment fieldValue) Setter for field:wl_resource_destroy_func_t destroystatic MemorySegmentdestroy_signal(MemorySegment struct) Getter for field:struct wl_signal destroy_signalstatic voiddestroy_signal(MemorySegment struct, MemorySegment fieldValue) Setter for field:struct wl_signal destroy_signalstatic final GroupLayoutLayout for field:struct wl_signal destroy_signalstatic final longOffset for field:struct wl_signal destroy_signalstatic final AddressLayoutLayout for field:wl_resource_destroy_func_t destroystatic final longOffset for field:wl_resource_destroy_func_t destroystatic final GroupLayoutlayout()The layout of this structstatic MemorySegmentlink(MemorySegment struct) Getter for field:struct wl_list linkstatic voidlink(MemorySegment struct, MemorySegment fieldValue) Setter for field:struct wl_list linkstatic final GroupLayoutLayout for field:struct wl_list linkstatic final longOffset for field:struct wl_list linkstatic MemorySegmentobject(MemorySegment struct) Getter for field:struct wl_object objectstatic voidobject(MemorySegment struct, MemorySegment fieldValue) Setter for field:struct wl_object objectstatic final GroupLayoutLayout for field:struct wl_object objectstatic final longOffset for field:struct wl_object objectstatic MemorySegmentreinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any).static MemorySegmentreinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any).static longsizeof()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 ofarrayParamwhich 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 sizeelementCountusingallocator. The returned segment has sizeelementCount * layout().byteSize(). -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any). The returned segment has sizelayout().byteSize() -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any). The returned segment has sizeelementCount * layout().byteSize()
-