Package org.lwjgl.nuklear
Class NkNineSlice
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct nk_nine_slice {
{@link NkImage struct nk_image} img;
nk_ushort l;
nk_ushort t;
nk_ushort r;
nk_ushort b;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionNkNineSlice
(ByteBuffer container) Creates aNkNineSlice
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionshort
b()
b
(short value) Sets the specified value to theb
field.static NkNineSlice
calloc()
Returns a newNkNineSlice
instance allocated withmemCalloc
.static NkNineSlice.Buffer
calloc
(int capacity) Returns a newNkNineSlice.Buffer
instance allocated withmemCalloc
.static NkNineSlice.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newNkNineSlice.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NkNineSlice
calloc
(MemoryStack stack) Returns a newNkNineSlice
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NkNineSlice
create()
Returns a newNkNineSlice
instance allocated withBufferUtils
.static NkNineSlice.Buffer
create
(int capacity) Returns a newNkNineSlice.Buffer
instance allocated withBufferUtils
.static NkNineSlice
create
(long address) Returns a newNkNineSlice
instance for the specified memory address.static NkNineSlice.Buffer
create
(long address, int capacity) Create aNkNineSlice.Buffer
instance at the specified memory.static @Nullable NkNineSlice
createSafe
(long address) static @Nullable NkNineSlice.Buffer
createSafe
(long address, int capacity) img()
Passes theimg
field to the specifiedConsumer
.Copies the specifiedNkImage
to theimg
field.short
l()
l
(short value) Sets the specified value to thel
field.static NkNineSlice
malloc()
Returns a newNkNineSlice
instance allocated withmemAlloc
.static NkNineSlice.Buffer
malloc
(int capacity) Returns a newNkNineSlice.Buffer
instance allocated withmemAlloc
.static NkNineSlice.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newNkNineSlice.Buffer
instance allocated on the specifiedMemoryStack
.static NkNineSlice
malloc
(MemoryStack stack) Returns a newNkNineSlice
instance allocated on the specifiedMemoryStack
.static short
nb
(long struct) Unsafe version ofb()
.static void
nb
(long struct, short value) Unsafe version ofb
.static NkImage
nimg
(long struct) Unsafe version ofimg()
.static void
Unsafe version ofimg
.static short
nl
(long struct) Unsafe version ofl()
.static void
nl
(long struct, short value) Unsafe version ofl
.static short
nr
(long struct) Unsafe version ofr()
.static void
nr
(long struct, short value) Unsafe version ofr
.static short
nt
(long struct) Unsafe version oft()
.static void
nt
(long struct, short value) Unsafe version oft
.short
r()
r
(short value) Sets the specified value to ther
field.Initializes this struct with the specified values.set
(NkNineSlice src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.short
t()
t
(short value) Sets the specified value to thet
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
IMG
public static final int IMGThe struct member offsets. -
L
public static final int LThe struct member offsets. -
T
public static final int TThe struct member offsets. -
R
public static final int RThe struct member offsets. -
B
public static final int BThe struct member offsets.
-
-
Constructor Details
-
NkNineSlice
Creates aNkNineSlice
instance at the current position of the specifiedByteBuffer
container. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<NkNineSlice>
-
img
- Returns:
- a
NkImage
view of theimg
field.
-
l
public short l()- Returns:
- the value of the
l
field.
-
t
public short t()- Returns:
- the value of the
t
field.
-
r
public short r()- Returns:
- the value of the
r
field.
-
b
public short b()- Returns:
- the value of the
b
field.
-
img
Copies the specifiedNkImage
to theimg
field. -
img
Passes theimg
field to the specifiedConsumer
. -
l
Sets the specified value to thel
field. -
t
Sets the specified value to thet
field. -
r
Sets the specified value to ther
field. -
b
Sets the specified value to theb
field. -
set
Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newNkNineSlice
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newNkNineSlice
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newNkNineSlice
instance allocated withBufferUtils
. -
create
Returns a newNkNineSlice
instance for the specified memory address. -
createSafe
-
malloc
Returns a newNkNineSlice.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newNkNineSlice.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newNkNineSlice.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aNkNineSlice.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newNkNineSlice
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newNkNineSlice
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newNkNineSlice.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newNkNineSlice.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nimg
Unsafe version ofimg()
. -
nl
public static short nl(long struct) Unsafe version ofl()
. -
nt
public static short nt(long struct) Unsafe version oft()
. -
nr
public static short nr(long struct) Unsafe version ofr()
. -
nb
public static short nb(long struct) Unsafe version ofb()
. -
nimg
Unsafe version ofimg
. -
nl
public static void nl(long struct, short value) Unsafe version ofl
. -
nt
public static void nt(long struct, short value) Unsafe version oft
. -
nr
public static void nr(long struct, short value) Unsafe version ofr
. -
nb
public static void nb(long struct, short value) Unsafe version ofb
.
-