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;
struct nk_rect bounds;
struct nk_scroll scrollbar;
struct nk_command_buffer buffer;
struct nk_panel * layout;
float scrollbar_hiding_timer;
struct nk_property_state property;
struct nk_popup_state popup;
struct nk_edit_state edit;
unsigned int scrolled;
nk_bool widgets_disabled;
struct nk_table * tables;
unsigned int table_count;
struct nk_window * next;
struct nk_window * prev;
struct nk_window * parent;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe 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 aNkWindowinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionbounds()buffer()static NkWindowcreate(long address) Returns a newNkWindowinstance for the specified memory address.static NkWindow.Buffercreate(long address, int capacity) Create aNkWindow.Bufferinstance at the specified memory.static @Nullable NkWindowcreateSafe(long address) static @Nullable NkWindow.BuffercreateSafe(long address, int capacity) edit()intflags()layout()intname()static NkRectnbounds(long struct) Unsafe version ofbounds().static NkCommandBuffernbuffer(long struct) Unsafe version ofbuffer().static NkEditStatenedit(long struct) Unsafe version ofedit().next()static intnflags(long struct) Unsafe version offlags().static NkPanelnlayout(long struct) Unsafe version oflayout().static intnname(long struct) Unsafe version ofname().static ByteBuffernname_string(long struct) Unsafe version ofname_string().static Stringnname_stringString(long struct) Unsafe version ofname_stringString().static NkWindownnext(long struct) Unsafe version ofnext().static NkWindownparent(long struct) Unsafe version ofparent().static NkPopupStatenpopup(long struct) Unsafe version ofpopup().static NkWindownprev(long struct) Unsafe version ofprev().static NkPropertyStatenproperty(long struct) Unsafe version ofproperty().static NkScrollnscrollbar(long struct) Unsafe version ofscrollbar().static floatnscrollbar_hiding_timer(long struct) Unsafe version ofscrollbar_hiding_timer().static intnscrolled(long struct) Unsafe version ofscrolled().static intnseq(long struct) Unsafe version ofseq().static intntable_count(long struct) Unsafe version oftable_count().static longntables(long struct) Unsafe version oftables().static booleannwidgets_disabled(long struct) Unsafe version ofwidgets_disabled().parent()popup()prev()property()floatintscrolled()intseq()intsizeof()Returnssizeof(struct).intlongtables()booleanMethods 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 aNkWindowinstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct). -
seq
public int seq()- Returns:
- the value of the
seqfield.
-
name
public int name()- Returns:
- the value of the
namefield.
-
name_string
- Returns:
- a
ByteBufferview of thename_stringfield.
-
name_stringString
- Returns:
- the null-terminated string stored in the
name_stringfield.
-
flags
public int flags()- Returns:
- the value of the
flagsfield.
-
bounds
- Returns:
- a
NkRectview of theboundsfield.
-
scrollbar
- Returns:
- a
NkScrollview of thescrollbarfield.
-
buffer
- Returns:
- a
NkCommandBufferview of thebufferfield.
-
layout
- Returns:
- a
NkPanelview of the struct pointed to by thelayoutfield.
-
scrollbar_hiding_timer
public float scrollbar_hiding_timer()- Returns:
- the value of the
scrollbar_hiding_timerfield.
-
property
- Returns:
- a
NkPropertyStateview of thepropertyfield.
-
popup
- Returns:
- a
NkPopupStateview of thepopupfield.
-
edit
- Returns:
- a
NkEditStateview of theeditfield.
-
scrolled
public int scrolled()- Returns:
- the value of the
scrolledfield.
-
widgets_disabled
public boolean widgets_disabled()- Returns:
- the value of the
widgets_disabledfield.
-
tables
public long tables()- Returns:
- the value of the
tablesfield.
-
table_count
public int table_count()- Returns:
- the value of the
table_countfield.
-
next
- Returns:
- a
NkWindowview of the struct pointed to by thenextfield.
-
prev
- Returns:
- a
NkWindowview of the struct pointed to by theprevfield.
-
parent
- Returns:
- a
NkWindowview of the struct pointed to by theparentfield.
-
create
Returns a newNkWindowinstance for the specified memory address. -
createSafe
-
create
Create aNkWindow.Bufferinstance 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().
-