Package org.lwjgl.nuklear
Class NkNineSlice
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.nuklear.NkNineSlice
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class NkNineSlice extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct nk_nine_slice {struct nk_imageimg; nk_ushort l; nk_ushort t; nk_ushort r; nk_ushort b; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNkNineSlice.BufferAn array ofNkNineSlicestructs.
-
Constructor Summary
Constructors Constructor Description NkNineSlice(java.nio.ByteBuffer container)Creates aNkNineSliceinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description shortb()NkNineSliceb(short value)Sets the specified value to thebfield.static NkNineSlicecalloc()Returns a newNkNineSliceinstance allocated withmemCalloc.static NkNineSlice.Buffercalloc(int capacity)Returns a newNkNineSlice.Bufferinstance allocated withmemCalloc.static NkNineSlice.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newNkNineSlice.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkNineSlicecalloc(org.lwjgl.system.MemoryStack stack)Returns a newNkNineSliceinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkNineSlicecreate()Returns a newNkNineSliceinstance allocated withBufferUtils.static NkNineSlice.Buffercreate(int capacity)Returns a newNkNineSlice.Bufferinstance allocated withBufferUtils.static NkNineSlicecreate(long address)Returns a newNkNineSliceinstance for the specified memory address.static NkNineSlice.Buffercreate(long address, int capacity)Create aNkNineSlice.Bufferinstance at the specified memory.static NkNineSlicecreateSafe(long address)static NkNineSlice.BuffercreateSafe(long address, int capacity)NkImageimg()NkNineSliceimg(java.util.function.Consumer<NkImage> consumer)Passes theimgfield to the specifiedConsumer.NkNineSliceimg(NkImage value)Copies the specifiedNkImageto theimgfield.shortl()NkNineSlicel(short value)Sets the specified value to thelfield.static NkNineSlicemalloc()Returns a newNkNineSliceinstance allocated withmemAlloc.static NkNineSlice.Buffermalloc(int capacity)Returns a newNkNineSlice.Bufferinstance allocated withmemAlloc.static NkNineSlice.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newNkNineSlice.Bufferinstance allocated on the specifiedMemoryStack.static NkNineSlicemalloc(org.lwjgl.system.MemoryStack stack)Returns a newNkNineSliceinstance allocated on the specifiedMemoryStack.static shortnb(long struct)Unsafe version ofb().static voidnb(long struct, short value)Unsafe version ofb.static NkImagenimg(long struct)Unsafe version ofimg().static voidnimg(long struct, NkImage value)Unsafe version ofimg.static shortnl(long struct)Unsafe version ofl().static voidnl(long struct, short value)Unsafe version ofl.static shortnr(long struct)Unsafe version ofr().static voidnr(long struct, short value)Unsafe version ofr.static shortnt(long struct)Unsafe version oft().static voidnt(long struct, short value)Unsafe version oft.shortr()NkNineSlicer(short value)Sets the specified value to therfield.NkNineSliceset(NkImage img, short l, short t, short r, short b)Initializes this struct with the specified values.NkNineSliceset(NkNineSlice src)Copies the specified struct data to this struct.intsizeof()shortt()NkNineSlicet(short value)Sets the specified value to thetfield.
-
-
-
Constructor Detail
-
NkNineSlice
public NkNineSlice(java.nio.ByteBuffer container)
Creates aNkNineSliceinstance at the current position of the specifiedByteBuffercontainer. 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
l
public short l()
- Returns:
- the value of the
lfield.
-
t
public short t()
- Returns:
- the value of the
tfield.
-
r
public short r()
- Returns:
- the value of the
rfield.
-
b
public short b()
- Returns:
- the value of the
bfield.
-
img
public NkNineSlice img(NkImage value)
Copies the specifiedNkImageto theimgfield.
-
img
public NkNineSlice img(java.util.function.Consumer<NkImage> consumer)
Passes theimgfield to the specifiedConsumer.
-
l
public NkNineSlice l(short value)
Sets the specified value to thelfield.
-
t
public NkNineSlice t(short value)
Sets the specified value to thetfield.
-
r
public NkNineSlice r(short value)
Sets the specified value to therfield.
-
b
public NkNineSlice b(short value)
Sets the specified value to thebfield.
-
set
public NkNineSlice set(NkImage img, short l, short t, short r, short b)
Initializes this struct with the specified values.
-
set
public NkNineSlice set(NkNineSlice src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static NkNineSlice malloc()
Returns a newNkNineSliceinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static NkNineSlice calloc()
Returns a newNkNineSliceinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static NkNineSlice create()
Returns a newNkNineSliceinstance allocated withBufferUtils.
-
create
public static NkNineSlice create(long address)
Returns a newNkNineSliceinstance for the specified memory address.
-
createSafe
@Nullable public static NkNineSlice createSafe(long address)
-
malloc
public static NkNineSlice.Buffer malloc(int capacity)
Returns a newNkNineSlice.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static NkNineSlice.Buffer calloc(int capacity)
Returns a newNkNineSlice.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static NkNineSlice.Buffer create(int capacity)
Returns a newNkNineSlice.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static NkNineSlice.Buffer create(long address, int capacity)
Create aNkNineSlice.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static NkNineSlice.Buffer createSafe(long address, int capacity)
-
malloc
public static NkNineSlice malloc(org.lwjgl.system.MemoryStack stack)
Returns a newNkNineSliceinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static NkNineSlice calloc(org.lwjgl.system.MemoryStack stack)
Returns a newNkNineSliceinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static NkNineSlice.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkNineSlice.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static NkNineSlice.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkNineSlice.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
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().
-
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.
-
-