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 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 int
event_count
(MemorySegment struct) Getter for field:int event_count
static void
event_count
(MemorySegment struct, int fieldValue) Setter for field:int event_count
static final ValueLayout.OfInt
Layout for field:int event_count
static final long
Offset for field:int event_count
static MemorySegment
events
(MemorySegment struct) Getter for field:const struct wl_message *events
static void
events
(MemorySegment struct, MemorySegment fieldValue) Setter for field:const struct wl_message *events
static final AddressLayout
Layout for field:const struct wl_message *events
static final long
Offset for field:const struct wl_message *events
static final GroupLayout
layout()
The layout of this structstatic int
method_count
(MemorySegment struct) Getter for field:int method_count
static void
method_count
(MemorySegment struct, int fieldValue) Setter for field:int method_count
static final ValueLayout.OfInt
Layout for field:int method_count
static final long
Offset for field:int method_count
static MemorySegment
methods
(MemorySegment struct) Getter for field:const struct wl_message *methods
static void
methods
(MemorySegment struct, MemorySegment fieldValue) Setter for field:const struct wl_message *methods
static final AddressLayout
Layout for field:const struct wl_message *methods
static final long
Offset for field:const struct wl_message *methods
static MemorySegment
name
(MemorySegment struct) Getter for field:const char *name
static void
name
(MemorySegment struct, MemorySegment fieldValue) Setter for field:const char *name
static final AddressLayout
Layout for field:const char *name
static final long
Offset for field:const char *name
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 structstatic int
version
(MemorySegment struct) Getter for field:int version
static void
version
(MemorySegment struct, int fieldValue) Setter for field:int version
static final ValueLayout.OfInt
Layout for field:int version
static final long
Offset 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 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()
-