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.StructLayout
struct nk_menu_state { float x; float y; float w; float h;struct nk_scrolloffset; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNkMenuState.BufferAn array ofNkMenuStatestructs.
-
Constructor Summary
Constructors Constructor Description NkMenuState(java.nio.ByteBuffer container)Creates aNkMenuStateinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NkMenuStatecreate(long address)Returns a newNkMenuStateinstance for the specified memory address.static NkMenuState.Buffercreate(long address, int capacity)Create aNkMenuState.Bufferinstance at the specified memory.static NkMenuStatecreateSafe(long address)static NkMenuState.BuffercreateSafe(long address, int capacity)floath()Returns the value of thehfield.static floatnh(long struct)Unsafe version ofh().static NkScrollnoffset(long struct)Unsafe version ofoffset().static floatnw(long struct)Unsafe version ofw().static floatnx(long struct)Unsafe version ofx().static floatny(long struct)Unsafe version ofy().NkScrolloffset()Returns aNkScrollview of theoffsetfield.intsizeof()floatw()Returns the value of thewfield.floatx()Returns the value of thexfield.floaty()Returns the value of theyfield.
-
-
-
Constructor Detail
-
NkMenuState
public NkMenuState(java.nio.ByteBuffer container)
Creates aNkMenuStateinstance 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
-
x
public float x()
Returns the value of thexfield.
-
y
public float y()
Returns the value of theyfield.
-
w
public float w()
Returns the value of thewfield.
-
h
public float h()
Returns the value of thehfield.
-
create
public static NkMenuState create(long address)
Returns a newNkMenuStateinstance 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.Bufferinstance 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().
-
-