Package org.lwjgl.nuklear
Class NkPopupBuffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.nuklear.NkPopupBuffer
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class NkPopupBuffer extends org.lwjgl.system.Struct
Layout
struct nk_popup_buffer { nk_size begin; nk_size parent; nk_size last; nk_size end; int active; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NkPopupBuffer.Buffer
An array ofNkPopupBuffer
structs.
-
Constructor Summary
Constructors Constructor Description NkPopupBuffer(java.nio.ByteBuffer container)
Creates aNkPopupBuffer
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
active()
Returns the value of theactive
field.long
begin()
Returns the value of thebegin
field.static NkPopupBuffer
create(long address)
Returns a newNkPopupBuffer
instance for the specified memory address.static NkPopupBuffer.Buffer
create(long address, int capacity)
Create aNkPopupBuffer.Buffer
instance at the specified memory.static NkPopupBuffer
createSafe(long address)
static NkPopupBuffer.Buffer
createSafe(long address, int capacity)
long
end()
Returns the value of theend
field.long
last()
Returns the value of thelast
field.static int
nactive(long struct)
Unsafe version ofactive()
.static long
nbegin(long struct)
Unsafe version ofbegin()
.static long
nend(long struct)
Unsafe version ofend()
.static long
nlast(long struct)
Unsafe version oflast()
.static long
nparent(long struct)
Unsafe version ofparent()
.long
parent()
Returns the value of theparent
field.int
sizeof()
-
-
-
Constructor Detail
-
NkPopupBuffer
public NkPopupBuffer(java.nio.ByteBuffer container)
Creates aNkPopupBuffer
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
begin
public long begin()
Returns the value of thebegin
field.
-
parent
public long parent()
Returns the value of theparent
field.
-
last
public long last()
Returns the value of thelast
field.
-
end
public long end()
Returns the value of theend
field.
-
active
public int active()
Returns the value of theactive
field.
-
create
public static NkPopupBuffer create(long address)
Returns a newNkPopupBuffer
instance for the specified memory address.
-
createSafe
@Nullable public static NkPopupBuffer createSafe(long address)
-
create
public static NkPopupBuffer.Buffer create(long address, int capacity)
Create aNkPopupBuffer.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static NkPopupBuffer.Buffer createSafe(long address, int capacity)
-
nbegin
public static long nbegin(long struct)
Unsafe version ofbegin()
.
-
nparent
public static long nparent(long struct)
Unsafe version ofparent()
.
-
nlast
public static long nlast(long struct)
Unsafe version oflast()
.
-
nend
public static long nend(long struct)
Unsafe version ofend()
.
-
nactive
public static int nactive(long struct)
Unsafe version ofactive()
.
-
-