Package org.lwjgl.nuklear
Class NkTextEdit
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
Layout
struct nk_text_edit {
struct nk_clipboard
clip;
struct nk_str
string;
nk_plugin_filter
filter;
struct nk_vec2
scrollbar;
int cursor;
int select_start;
int select_end;
unsigned char mode;
bool cursor_at_end_of_line;
bool initialized;
bool has_preferred_x;
bool single_line;
bool active;
char[1];
float preferred_x;
struct nk_text_undo_state
undo;
}
-
Nested Class Summary
Nested 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
Modifier and TypeFieldDescriptionstatic final int
The struct member offsets.static 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 size in bytes.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
ConstructorDescriptionNkTextEdit
(ByteBuffer container) Creates aNkTextEdit
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionboolean
active()
static NkTextEdit
calloc()
Returns a newNkTextEdit
instance allocated withmemCalloc
.static NkTextEdit.Buffer
calloc
(int capacity) Returns a newNkTextEdit.Buffer
instance allocated withmemCalloc
.static NkTextEdit.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newNkTextEdit.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NkTextEdit
calloc
(MemoryStack stack) Returns a newNkTextEdit
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NkTextEdit
Deprecated.static NkTextEdit.Buffer
callocStack
(int capacity) Deprecated.static NkTextEdit.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static NkTextEdit
callocStack
(MemoryStack stack) Deprecated.clip()
static NkTextEdit
create()
Returns a newNkTextEdit
instance allocated withBufferUtils
.static NkTextEdit.Buffer
create
(int capacity) Returns a newNkTextEdit.Buffer
instance allocated withBufferUtils
.static NkTextEdit
create
(long address) Returns a newNkTextEdit
instance for the specified memory address.static NkTextEdit.Buffer
create
(long address, int capacity) Create aNkTextEdit.Buffer
instance at the specified memory.static NkTextEdit
createSafe
(long address) static NkTextEdit.Buffer
createSafe
(long address, int capacity) int
cursor()
boolean
filter()
boolean
boolean
static NkTextEdit
malloc()
Returns a newNkTextEdit
instance allocated withmemAlloc
.static NkTextEdit.Buffer
malloc
(int capacity) Returns a newNkTextEdit.Buffer
instance allocated withmemAlloc
.static NkTextEdit.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newNkTextEdit.Buffer
instance allocated on the specifiedMemoryStack
.static NkTextEdit
malloc
(MemoryStack stack) Returns a newNkTextEdit
instance allocated on the specifiedMemoryStack
.static NkTextEdit
Deprecated.static NkTextEdit.Buffer
mallocStack
(int capacity) Deprecated.static NkTextEdit.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static NkTextEdit
mallocStack
(MemoryStack stack) Deprecated.byte
mode()
static boolean
nactive
(long struct) Unsafe version ofactive()
.static NkClipboard
nclip
(long struct) Unsafe version ofclip()
.static int
ncursor
(long struct) Unsafe version ofcursor()
.static boolean
ncursor_at_end_of_line
(long struct) Unsafe version ofcursor_at_end_of_line()
.static NkPluginFilter
nfilter
(long struct) Unsafe version offilter()
.static boolean
nhas_preferred_x
(long struct) Unsafe version ofhas_preferred_x()
.static boolean
ninitialized
(long struct) Unsafe version ofinitialized()
.static byte
nmode
(long struct) Unsafe version ofmode()
.static float
npreferred_x
(long struct) Unsafe version ofpreferred_x()
.static NkVec2
nscrollbar
(long struct) Unsafe version ofscrollbar()
.static int
nselect_end
(long struct) Unsafe version ofselect_end()
.static int
nselect_start
(long struct) Unsafe version ofselect_start()
.static boolean
nsingle_line
(long struct) Unsafe version ofsingle_line()
.static NkStr
nstring
(long struct) Unsafe version ofstring()
.static NkTextUndoState
nundo
(long struct) Unsafe version ofundo()
.float
int
int
boolean
int
sizeof()
Returnssizeof(struct)
.string()
undo()
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
CLIP
public static final int CLIPThe struct member offsets. -
STRING
public static final int STRINGThe struct member offsets. -
FILTER
public static final int FILTERThe struct member offsets. -
SCROLLBAR
public static final int SCROLLBARThe struct member offsets. -
CURSOR
public static final int CURSORThe struct member offsets. -
SELECT_START
public static final int SELECT_STARTThe struct member offsets. -
SELECT_END
public static final int SELECT_ENDThe struct member offsets. -
MODE
public static final int MODEThe struct member offsets. -
CURSOR_AT_END_OF_LINE
public static final int CURSOR_AT_END_OF_LINEThe struct member offsets. -
INITIALIZED
public static final int INITIALIZEDThe struct member offsets. -
HAS_PREFERRED_X
public static final int HAS_PREFERRED_XThe struct member offsets. -
SINGLE_LINE
public static final int SINGLE_LINEThe struct member offsets. -
ACTIVE
public static final int ACTIVEThe struct member offsets. -
PREFERRED_X
public static final int PREFERRED_XThe struct member offsets. -
UNDO
public static final int UNDOThe struct member offsets.
-
-
Constructor Details
-
NkTextEdit
Creates aNkTextEdit
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)
.- Specified by:
sizeof
in classStruct<NkTextEdit>
-
clip
- Returns:
- a
NkClipboard
view of theclip
field.
-
string
- Returns:
- a
NkStr
view of thestring
field.
-
filter
- Returns:
- the value of the
filter
field.
-
scrollbar
- Returns:
- a
NkVec2
view of thescrollbar
field.
-
cursor
public int cursor()- Returns:
- the value of the
cursor
field.
-
select_start
public int select_start()- Returns:
- the value of the
select_start
field.
-
select_end
public int select_end()- Returns:
- the value of the
select_end
field.
-
mode
public byte mode()- Returns:
- the value of the
mode
field.
-
cursor_at_end_of_line
public boolean cursor_at_end_of_line()- Returns:
- the value of the
cursor_at_end_of_line
field.
-
initialized
public boolean initialized()- Returns:
- the value of the
initialized
field.
-
has_preferred_x
public boolean has_preferred_x()- Returns:
- the value of the
has_preferred_x
field.
-
single_line
public boolean single_line()- Returns:
- the value of the
single_line
field.
-
active
public boolean active()- Returns:
- the value of the
active
field.
-
preferred_x
public float preferred_x()- Returns:
- the value of the
preferred_x
field.
-
undo
- Returns:
- a
NkTextUndoState
view of theundo
field.
-
malloc
Returns a newNkTextEdit
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newNkTextEdit
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newNkTextEdit
instance allocated withBufferUtils
. -
create
Returns a newNkTextEdit
instance for the specified memory address. -
createSafe
-
malloc
Returns a newNkTextEdit.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newNkTextEdit.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newNkTextEdit.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aNkTextEdit.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newNkTextEdit
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newNkTextEdit
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newNkTextEdit.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newNkTextEdit.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nclip
Unsafe version ofclip()
. -
nstring
Unsafe version ofstring()
. -
nfilter
Unsafe version offilter()
. -
nscrollbar
Unsafe version ofscrollbar()
. -
ncursor
public static int ncursor(long struct) Unsafe version ofcursor()
. -
nselect_start
public static int nselect_start(long struct) Unsafe version ofselect_start()
. -
nselect_end
public static int nselect_end(long struct) Unsafe version ofselect_end()
. -
nmode
public static byte nmode(long struct) Unsafe version ofmode()
. -
ncursor_at_end_of_line
public static boolean ncursor_at_end_of_line(long struct) Unsafe version ofcursor_at_end_of_line()
. -
ninitialized
public static boolean ninitialized(long struct) Unsafe version ofinitialized()
. -
nhas_preferred_x
public static boolean nhas_preferred_x(long struct) Unsafe version ofhas_preferred_x()
. -
nsingle_line
public static boolean nsingle_line(long struct) Unsafe version ofsingle_line()
. -
nactive
public static boolean nactive(long struct) Unsafe version ofactive()
. -
npreferred_x
public static float npreferred_x(long struct) Unsafe version ofpreferred_x()
. -
nundo
Unsafe version ofundo()
.
-