Package org.lwjgl.nuklear
Class NkMenuState
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.nuklear.NkMenuState
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class NkMenuState extends org.lwjgl.system.Struct
Layout
struct nk_menu_state { float x; float y; float w; float h;
struct nk_scroll
offset; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NkMenuState.Buffer
An array ofNkMenuState
structs.
-
Constructor Summary
Constructors Constructor Description NkMenuState(java.nio.ByteBuffer container)
Creates aNkMenuState
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NkMenuState
create(long address)
Returns a newNkMenuState
instance for the specified memory address.static NkMenuState.Buffer
create(long address, int capacity)
Create aNkMenuState.Buffer
instance at the specified memory.static NkMenuState
createSafe(long address)
static NkMenuState.Buffer
createSafe(long address, int capacity)
float
h()
Returns the value of theh
field.static float
nh(long struct)
Unsafe version ofh()
.static NkScroll
noffset(long struct)
Unsafe version ofoffset()
.static float
nw(long struct)
Unsafe version ofw()
.static float
nx(long struct)
Unsafe version ofx()
.static float
ny(long struct)
Unsafe version ofy()
.NkScroll
offset()
Returns aNkScroll
view of theoffset
field.int
sizeof()
float
w()
Returns the value of thew
field.float
x()
Returns the value of thex
field.float
y()
Returns the value of they
field.
-
-
-
Constructor Detail
-
NkMenuState
public NkMenuState(java.nio.ByteBuffer container)
Creates aNkMenuState
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
-
x
public float x()
Returns the value of thex
field.
-
y
public float y()
Returns the value of they
field.
-
w
public float w()
Returns the value of thew
field.
-
h
public float h()
Returns the value of theh
field.
-
create
public static NkMenuState create(long address)
Returns a newNkMenuState
instance for the specified memory address.
-
createSafe
@Nullable public static NkMenuState createSafe(long address)
-
create
public static NkMenuState.Buffer create(long address, int capacity)
Create aNkMenuState.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static NkMenuState.Buffer createSafe(long address, int capacity)
-
nx
public static float nx(long struct)
Unsafe version ofx()
.
-
ny
public static float ny(long struct)
Unsafe version ofy()
.
-
nw
public static float nw(long struct)
Unsafe version ofw()
.
-
nh
public static float nh(long struct)
Unsafe version ofh()
.
-
-