public class NkTextEdit
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
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;
}| Modifier and Type | Class and Description |
|---|---|
static class |
NkTextEdit.Buffer
An array of
NkTextEdit structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ACTIVE
The struct member offsets.
|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
CLIP
The struct member offsets.
|
static int |
CURSOR
The struct member offsets.
|
static int |
CURSOR_AT_END_OF_LINE
The struct member offsets.
|
static int |
FILTER
The struct member offsets.
|
static int |
HAS_PREFERRED_X
The struct member offsets.
|
static int |
INITIALIZED
The struct member offsets.
|
static int |
MODE
The struct member offsets.
|
static int |
PREFERRED_X
The struct member offsets.
|
static int |
SCROLLBAR
The struct member offsets.
|
static int |
SELECT_END
The struct member offsets.
|
static int |
SELECT_START
The struct member offsets.
|
static int |
SINGLE_LINE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STRING
The struct member offsets.
|
static int |
UNDO
The struct member offsets.
|
| Constructor and Description |
|---|
NkTextEdit(java.nio.ByteBuffer container)
Creates a
NkTextEdit instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
active()
Returns the value of the
active field. |
static NkTextEdit |
calloc()
Returns a new
NkTextEdit instance allocated with memCalloc. |
static NkTextEdit.Buffer |
calloc(int capacity)
Returns a new
NkTextEdit.Buffer instance allocated with memCalloc. |
static NkTextEdit |
callocStack()
Returns a new
NkTextEdit instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static NkTextEdit.Buffer |
callocStack(int capacity)
Returns a new
NkTextEdit.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static NkTextEdit.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
NkTextEdit.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static NkTextEdit |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
NkTextEdit instance allocated on the specified MemoryStack and initializes all its bits to zero. |
NkClipboard |
clip()
Returns a
NkClipboard view of the clip field. |
static NkTextEdit |
create()
Returns a new
NkTextEdit instance allocated with BufferUtils. |
static NkTextEdit.Buffer |
create(int capacity)
Returns a new
NkTextEdit.Buffer instance allocated with BufferUtils. |
static NkTextEdit |
create(long address)
Returns a new
NkTextEdit instance for the specified memory address. |
static NkTextEdit.Buffer |
create(long address,
int capacity)
Create a
NkTextEdit.Buffer instance at the specified memory. |
static NkTextEdit |
createSafe(long address)
|
static NkTextEdit.Buffer |
createSafe(long address,
int capacity)
|
boolean |
cursor_at_end_of_line()
Returns the value of the
cursor_at_end_of_line field. |
int |
cursor()
Returns the value of the
cursor field. |
NkPluginFilter |
filter()
Returns the value of the
filter field. |
boolean |
has_preferred_x()
Returns the value of the
has_preferred_x field. |
boolean |
initialized()
Returns the value of the
initialized field. |
static NkTextEdit |
malloc()
Returns a new
NkTextEdit instance allocated with memAlloc. |
static NkTextEdit.Buffer |
malloc(int capacity)
Returns a new
NkTextEdit.Buffer instance allocated with memAlloc. |
static NkTextEdit |
mallocStack()
Returns a new
NkTextEdit instance allocated on the thread-local MemoryStack. |
static NkTextEdit.Buffer |
mallocStack(int capacity)
Returns a new
NkTextEdit.Buffer instance allocated on the thread-local MemoryStack. |
static NkTextEdit.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
NkTextEdit.Buffer instance allocated on the specified MemoryStack. |
static NkTextEdit |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
NkTextEdit instance allocated on the specified MemoryStack. |
byte |
mode()
Returns the value of the
mode field. |
static boolean |
nactive(long struct)
Unsafe version of
active(). |
static NkClipboard |
nclip(long struct)
Unsafe version of
clip(). |
static boolean |
ncursor_at_end_of_line(long struct)
Unsafe version of
cursor_at_end_of_line(). |
static int |
ncursor(long struct)
Unsafe version of
cursor(). |
static NkPluginFilter |
nfilter(long struct)
Unsafe version of
filter(). |
static boolean |
nhas_preferred_x(long struct)
Unsafe version of
has_preferred_x(). |
static boolean |
ninitialized(long struct)
Unsafe version of
initialized(). |
static byte |
nmode(long struct)
Unsafe version of
mode(). |
static float |
npreferred_x(long struct)
Unsafe version of
preferred_x(). |
static NkVec2 |
nscrollbar(long struct)
Unsafe version of
scrollbar(). |
static int |
nselect_end(long struct)
Unsafe version of
select_end(). |
static int |
nselect_start(long struct)
Unsafe version of
select_start(). |
static boolean |
nsingle_line(long struct)
Unsafe version of
single_line(). |
static NkStr |
nstring(long struct)
Unsafe version of
string(). |
static NkTextUndoState |
nundo(long struct)
Unsafe version of
undo(). |
float |
preferred_x()
Returns the value of the
preferred_x field. |
NkVec2 |
scrollbar()
Returns a
NkVec2 view of the scrollbar field. |
int |
select_end()
Returns the value of the
select_end field. |
int |
select_start()
Returns the value of the
select_start field. |
boolean |
single_line()
Returns the value of the
single_line field. |
int |
sizeof() |
NkStr |
string()
Returns a
NkStr view of the string field. |
NkTextUndoState |
undo()
Returns a
NkTextUndoState view of the undo field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int CLIP
public static final int STRING
public static final int FILTER
public static final int SCROLLBAR
public static final int CURSOR
public static final int SELECT_START
public static final int SELECT_END
public static final int MODE
public static final int CURSOR_AT_END_OF_LINE
public static final int INITIALIZED
public static final int HAS_PREFERRED_X
public static final int SINGLE_LINE
public static final int ACTIVE
public static final int PREFERRED_X
public static final int UNDO
public NkTextEdit(java.nio.ByteBuffer container)
NkTextEdit instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic NkClipboard clip()
NkClipboard view of the clip field.@Nullable public NkPluginFilter filter()
filter field.public int cursor()
cursor field.public int select_start()
select_start field.public int select_end()
select_end field.public byte mode()
mode field.public boolean cursor_at_end_of_line()
cursor_at_end_of_line field.public boolean initialized()
initialized field.public boolean has_preferred_x()
has_preferred_x field.public boolean single_line()
single_line field.public boolean active()
active field.public float preferred_x()
preferred_x field.public NkTextUndoState undo()
NkTextUndoState view of the undo field.public static NkTextEdit malloc()
NkTextEdit instance allocated with memAlloc. The instance must be explicitly freed.public static NkTextEdit calloc()
NkTextEdit instance allocated with memCalloc. The instance must be explicitly freed.public static NkTextEdit create()
NkTextEdit instance allocated with BufferUtils.public static NkTextEdit create(long address)
NkTextEdit instance for the specified memory address.@Nullable public static NkTextEdit createSafe(long address)
public static NkTextEdit.Buffer malloc(int capacity)
NkTextEdit.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static NkTextEdit.Buffer calloc(int capacity)
NkTextEdit.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static NkTextEdit.Buffer create(int capacity)
NkTextEdit.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static NkTextEdit.Buffer create(long address, int capacity)
NkTextEdit.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NkTextEdit.Buffer createSafe(long address, int capacity)
public static NkTextEdit mallocStack()
NkTextEdit instance allocated on the thread-local MemoryStack.public static NkTextEdit callocStack()
NkTextEdit instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static NkTextEdit mallocStack(org.lwjgl.system.MemoryStack stack)
NkTextEdit instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static NkTextEdit callocStack(org.lwjgl.system.MemoryStack stack)
NkTextEdit instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static NkTextEdit.Buffer mallocStack(int capacity)
NkTextEdit.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static NkTextEdit.Buffer callocStack(int capacity)
NkTextEdit.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static NkTextEdit.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
NkTextEdit.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static NkTextEdit.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
NkTextEdit.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static NkClipboard nclip(long struct)
clip().@Nullable public static NkPluginFilter nfilter(long struct)
filter().public static NkVec2 nscrollbar(long struct)
scrollbar().public static int ncursor(long struct)
cursor().public static int nselect_start(long struct)
select_start().public static int nselect_end(long struct)
select_end().public static byte nmode(long struct)
mode().public static boolean ncursor_at_end_of_line(long struct)
cursor_at_end_of_line().public static boolean ninitialized(long struct)
initialized().public static boolean nhas_preferred_x(long struct)
has_preferred_x().public static boolean nsingle_line(long struct)
single_line().public static boolean nactive(long struct)
active().public static float npreferred_x(long struct)
preferred_x().public static NkTextUndoState nundo(long struct)
undo().Copyright LWJGL. All Rights Reserved. License terms.