Package org.lwjgl.nuklear
Class NkWindow
- All Implemented Interfaces:
Pointer
struct nk_window {
unsigned int seq;
nk_hash name;
char name_string[NK_WINDOW_MAX_NAME];
nk_flags flags;
{@link NkRect struct nk_rect} bounds;
{@link NkScroll struct nk_scroll} scrollbar;
{@link NkCommandBuffer struct nk_command_buffer} buffer;
{@link NkPanel struct nk_panel} * layout;
float scrollbar_hiding_timer;
{@link NkPropertyState struct nk_property_state} property;
{@link NkPopupState struct nk_popup_state} popup;
{@link NkEditState struct nk_edit_state} edit;
unsigned int scrolled;
nk_bool widgets_disabled;
struct nk_table * tables;
unsigned int table_count;
{@link NkWindow struct nk_window} * next;
{@link NkWindow struct nk_window} * prev;
{@link NkWindow struct nk_window} * parent;
}
-
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 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 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 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.static final int
The struct member offsets.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
ConstructorsConstructorDescriptionNkWindow
(ByteBuffer container) Creates aNkWindow
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionbounds()
buffer()
static NkWindow
create
(long address) Returns a newNkWindow
instance for the specified memory address.static NkWindow.Buffer
create
(long address, int capacity) Create aNkWindow.Buffer
instance at the specified memory.static @Nullable NkWindow
createSafe
(long address) static @Nullable NkWindow.Buffer
createSafe
(long address, int capacity) edit()
int
flags()
layout()
int
name()
static NkRect
nbounds
(long struct) Unsafe version ofbounds()
.static NkCommandBuffer
nbuffer
(long struct) Unsafe version ofbuffer()
.static NkEditState
nedit
(long struct) Unsafe version ofedit()
.next()
static int
nflags
(long struct) Unsafe version offlags()
.static NkPanel
nlayout
(long struct) Unsafe version oflayout()
.static int
nname
(long struct) Unsafe version ofname()
.static ByteBuffer
nname_string
(long struct) Unsafe version ofname_string()
.static String
nname_stringString
(long struct) Unsafe version ofname_stringString()
.static NkWindow
nnext
(long struct) Unsafe version ofnext()
.static NkWindow
nparent
(long struct) Unsafe version ofparent()
.static NkPopupState
npopup
(long struct) Unsafe version ofpopup()
.static NkWindow
nprev
(long struct) Unsafe version ofprev()
.static NkPropertyState
nproperty
(long struct) Unsafe version ofproperty()
.static NkScroll
nscrollbar
(long struct) Unsafe version ofscrollbar()
.static float
nscrollbar_hiding_timer
(long struct) Unsafe version ofscrollbar_hiding_timer()
.static int
nscrolled
(long struct) Unsafe version ofscrolled()
.static int
nseq
(long struct) Unsafe version ofseq()
.static int
ntable_count
(long struct) Unsafe version oftable_count()
.static long
ntables
(long struct) Unsafe version oftables()
.static boolean
nwidgets_disabled
(long struct) Unsafe version ofwidgets_disabled()
.parent()
popup()
prev()
property()
float
int
scrolled()
int
seq()
int
sizeof()
Returnssizeof(struct)
.int
long
tables()
boolean
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
SEQ
public static final int SEQThe struct member offsets. -
NAME
public static final int NAMEThe struct member offsets. -
NAME_STRING
public static final int NAME_STRINGThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
BOUNDS
public static final int BOUNDSThe struct member offsets. -
SCROLLBAR
public static final int SCROLLBARThe struct member offsets. -
BUFFER
public static final int BUFFERThe struct member offsets. -
LAYOUT
public static final int LAYOUTThe struct member offsets. -
SCROLLBAR_HIDING_TIMER
public static final int SCROLLBAR_HIDING_TIMERThe struct member offsets. -
PROPERTY
public static final int PROPERTYThe struct member offsets. -
POPUP
public static final int POPUPThe struct member offsets. -
EDIT
public static final int EDITThe struct member offsets. -
SCROLLED
public static final int SCROLLEDThe struct member offsets. -
WIDGETS_DISABLED
public static final int WIDGETS_DISABLEDThe struct member offsets. -
TABLES
public static final int TABLESThe struct member offsets. -
TABLE_COUNT
public static final int TABLE_COUNTThe struct member offsets. -
NEXT
public static final int NEXTThe struct member offsets. -
PREV
public static final int PREVThe struct member offsets. -
PARENT
public static final int PARENTThe struct member offsets.
-
-
Constructor Details
-
NkWindow
Creates aNkWindow
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)
. -
seq
public int seq()- Returns:
- the value of the
seq
field.
-
name
public int name()- Returns:
- the value of the
name
field.
-
name_string
- Returns:
- a
ByteBuffer
view of thename_string
field.
-
name_stringString
- Returns:
- the null-terminated string stored in the
name_string
field.
-
flags
public int flags()- Returns:
- the value of the
flags
field.
-
bounds
- Returns:
- a
NkRect
view of thebounds
field.
-
scrollbar
- Returns:
- a
NkScroll
view of thescrollbar
field.
-
buffer
- Returns:
- a
NkCommandBuffer
view of thebuffer
field.
-
layout
- Returns:
- a
NkPanel
view of the struct pointed to by thelayout
field.
-
scrollbar_hiding_timer
public float scrollbar_hiding_timer()- Returns:
- the value of the
scrollbar_hiding_timer
field.
-
property
- Returns:
- a
NkPropertyState
view of theproperty
field.
-
popup
- Returns:
- a
NkPopupState
view of thepopup
field.
-
edit
- Returns:
- a
NkEditState
view of theedit
field.
-
scrolled
public int scrolled()- Returns:
- the value of the
scrolled
field.
-
widgets_disabled
public boolean widgets_disabled()- Returns:
- the value of the
widgets_disabled
field.
-
tables
public long tables()- Returns:
- the value of the
tables
field.
-
table_count
public int table_count()- Returns:
- the value of the
table_count
field.
-
next
- Returns:
- a
NkWindow
view of the struct pointed to by thenext
field.
-
prev
- Returns:
- a
NkWindow
view of the struct pointed to by theprev
field.
-
parent
- Returns:
- a
NkWindow
view of the struct pointed to by theparent
field.
-
create
Returns a newNkWindow
instance for the specified memory address. -
createSafe
-
create
Create aNkWindow.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
nseq
public static int nseq(long struct) Unsafe version ofseq()
. -
nname
public static int nname(long struct) Unsafe version ofname()
. -
nname_string
Unsafe version ofname_string()
. -
nname_stringString
Unsafe version ofname_stringString()
. -
nflags
public static int nflags(long struct) Unsafe version offlags()
. -
nbounds
Unsafe version ofbounds()
. -
nscrollbar
Unsafe version ofscrollbar()
. -
nbuffer
Unsafe version ofbuffer()
. -
nlayout
Unsafe version oflayout()
. -
nscrollbar_hiding_timer
public static float nscrollbar_hiding_timer(long struct) Unsafe version ofscrollbar_hiding_timer()
. -
nproperty
Unsafe version ofproperty()
. -
npopup
Unsafe version ofpopup()
. -
nedit
Unsafe version ofedit()
. -
nscrolled
public static int nscrolled(long struct) Unsafe version ofscrolled()
. -
nwidgets_disabled
public static boolean nwidgets_disabled(long struct) Unsafe version ofwidgets_disabled()
. -
ntables
public static long ntables(long struct) Unsafe version oftables()
. -
ntable_count
public static int ntable_count(long struct) Unsafe version oftable_count()
. -
nnext
Unsafe version ofnext()
. -
nprev
Unsafe version ofprev()
. -
nparent
Unsafe version ofparent()
.
-