Package org.freedesktop.wayland.raw
Class wl_interface
java.lang.Object
org.freedesktop.wayland.raw.wl_interface
struct wl_interface {
const char *name;
int version;
int method_count;
const struct wl_message *methods;
int event_count;
const struct wl_message *events;
}
-
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 intevent_count(MemorySegment struct) Getter for field:int event_countstatic voidevent_count(MemorySegment struct, int fieldValue) Setter for field:int event_countstatic final ValueLayout.OfIntLayout for field:int event_countstatic final longOffset for field:int event_countstatic MemorySegmentevents(MemorySegment struct) Getter for field:const struct wl_message *eventsstatic voidevents(MemorySegment struct, MemorySegment fieldValue) Setter for field:const struct wl_message *eventsstatic final AddressLayoutLayout for field:const struct wl_message *eventsstatic final longOffset for field:const struct wl_message *eventsstatic final GroupLayoutlayout()The layout of this structstatic intmethod_count(MemorySegment struct) Getter for field:int method_countstatic voidmethod_count(MemorySegment struct, int fieldValue) Setter for field:int method_countstatic final ValueLayout.OfIntLayout for field:int method_countstatic final longOffset for field:int method_countstatic MemorySegmentmethods(MemorySegment struct) Getter for field:const struct wl_message *methodsstatic voidmethods(MemorySegment struct, MemorySegment fieldValue) Setter for field:const struct wl_message *methodsstatic final AddressLayoutLayout for field:const struct wl_message *methodsstatic final longOffset for field:const struct wl_message *methodsstatic MemorySegmentname(MemorySegment struct) Getter for field:const char *namestatic voidname(MemorySegment struct, MemorySegment fieldValue) Setter for field:const char *namestatic final AddressLayoutLayout for field:const char *namestatic final longOffset for field:const char *namestatic 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 structstatic intversion(MemorySegment struct) Getter for field:int versionstatic voidversion(MemorySegment struct, int fieldValue) Setter for field:int versionstatic final ValueLayout.OfIntLayout for field:int versionstatic final longOffset for field:int version
-
Method Details
-
layout
The layout of this struct -
name$layout
Layout for field:const char *name -
name$offset
public static final long name$offset()Offset for field:const char *name -
name
Getter for field:const char *name -
name
Setter for field:const char *name -
version$layout
Layout for field:int version -
version$offset
public static final long version$offset()Offset for field:int version -
version
Getter for field:int version -
version
Setter for field:int version -
method_count$layout
Layout for field:int method_count -
method_count$offset
public static final long method_count$offset()Offset for field:int method_count -
method_count
Getter for field:int method_count -
method_count
Setter for field:int method_count -
methods$layout
Layout for field:const struct wl_message *methods -
methods$offset
public static final long methods$offset()Offset for field:const struct wl_message *methods -
methods
Getter for field:const struct wl_message *methods -
methods
Setter for field:const struct wl_message *methods -
event_count$layout
Layout for field:int event_count -
event_count$offset
public static final long event_count$offset()Offset for field:int event_count -
event_count
Getter for field:int event_count -
event_count
Setter for field:int event_count -
events$layout
Layout for field:const struct wl_message *events -
events$offset
public static final long events$offset()Offset for field:const struct wl_message *events -
events
Getter for field:const struct wl_message *events -
events
Setter for field:const struct wl_message *events -
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()
-