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 |
|---|---|
| public static class | NkTextEdit.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ACTIVE
The struct member offsets. |
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | CLIP
The struct member offsets. |
| public static final int | CURSOR
The struct member offsets. |
| public static final int | CURSOR_AT_END_OF_LINE
The struct member offsets. |
| public static final int | FILTER
The struct member offsets. |
| public static final int | HAS_PREFERRED_X
The struct member offsets. |
| public static final int | INITIALIZED
The struct member offsets. |
| public static final int | MODE
The struct member offsets. |
| public static final int | PREFERRED_X
The struct member offsets. |
| public static final int | SCROLLBAR
The struct member offsets. |
| public static final int | SELECT_END
The struct member offsets. |
| public static final int | SELECT_START
The struct member offsets. |
| public static final int | SINGLE_LINE
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | STRING
The struct member offsets. |
| public static final int | UNDO
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | NkTextEdit(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public static NkTextEdit | |
| public static NkTextEdit. | calloc(int
the buffer capacity capacity)Returns a new |
| public static NkTextEdit | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static NkTextEdit. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static NkTextEdit | |
| public static NkTextEdit | |
| public static NkTextEdit. | |
| public static NkTextEdit. | |
| public NkClipboard | |
| protected NkTextEdit | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static NkTextEdit | |
| public static NkTextEdit | |
| public static NkTextEdit. | create(int
the buffer capacity capacity)Returns a new |
| public static NkTextEdit. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static NkTextEdit | |
| public static NkTextEdit. | |
| public int | |
| public boolean | |
| public NkPluginFilter | |
| public boolean | |
| public boolean | |
| public static NkTextEdit | |
| public static NkTextEdit. | malloc(int
the buffer capacity capacity)Returns a new |
| public static NkTextEdit | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static NkTextEdit. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static NkTextEdit | |
| public static NkTextEdit | |
| public static NkTextEdit. | |
| public static NkTextEdit. | |
| public byte | |
| public static boolean | |
| public static NkClipboard | |
| public static int | |
| public static boolean | |
| public static NkPluginFilter | |
| public static boolean | |
| public static boolean | |
| public static byte | |
| public static float | |
| public static NkVec2 | |
| public static int | |
| public static int | |
| public static boolean | |
| public static NkStr | |
| public static NkTextUndoState | |
| public float | |
| public NkVec2 | |
| public int | |
| public int | |
| public boolean | |
| public int | |
| public NkStr | |
| public NkTextUndoState |
| ACTIVE | back to summary |
|---|---|
| public static final int ACTIVE The struct member offsets. | |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| CLIP | back to summary |
|---|---|
| public static final int CLIP The struct member offsets. | |
| CURSOR | back to summary |
|---|---|
| public static final int CURSOR The struct member offsets. | |
| CURSOR_AT_END_OF_LINE | back to summary |
|---|---|
| public static final int CURSOR_AT_END_OF_LINE The struct member offsets. | |
| FILTER | back to summary |
|---|---|
| public static final int FILTER The struct member offsets. | |
| HAS_PREFERRED_X | back to summary |
|---|---|
| public static final int HAS_PREFERRED_X The struct member offsets. | |
| INITIALIZED | back to summary |
|---|---|
| public static final int INITIALIZED The struct member offsets. | |
| MODE | back to summary |
|---|---|
| public static final int MODE The struct member offsets. | |
| PREFERRED_X | back to summary |
|---|---|
| public static final int PREFERRED_X The struct member offsets. | |
| SCROLLBAR | back to summary |
|---|---|
| public static final int SCROLLBAR The struct member offsets. | |
| SELECT_END | back to summary |
|---|---|
| public static final int SELECT_END The struct member offsets. | |
| SELECT_START | back to summary |
|---|---|
| public static final int SELECT_START The struct member offsets. | |
| SINGLE_LINE | back to summary |
|---|---|
| public static final int SINGLE_LINE The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| STRING | back to summary |
|---|---|
| public static final int STRING The struct member offsets. | |
| UNDO | back to summary |
|---|---|
| public static final int UNDO The struct member offsets. | |
| NkTextEdit | back to summary |
|---|---|
| protected NkTextEdit(long address, ByteBuffer container) | |
| NkTextEdit | back to summary |
|---|---|
| public NkTextEdit(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| active | back to summary |
|---|---|
public boolean active()
| |
| calloc | back to summary |
|---|---|
| public static NkTextEdit calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static NkTextEdit. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static NkTextEdit calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static NkTextEdit. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static NkTextEdit callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static NkTextEdit callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static NkTextEdit. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static NkTextEdit. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| clip | back to summary |
|---|---|
public NkClipboard clip()
| |
| create | back to summary |
|---|---|
| protected NkTextEdit create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static NkTextEdit create() Returns a new | |
| create | back to summary |
|---|---|
| public static NkTextEdit create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static NkTextEdit. Returns a new
| |
| create | back to summary |
|---|---|
| public static NkTextEdit. Create a
| |
| createSafe | back to summary |
|---|---|
| public static NkTextEdit createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static NkTextEdit. Like
| |
| cursor | back to summary |
|---|---|
public int cursor()
| |
| cursor_at_end_of_line | back to summary |
|---|---|
public boolean cursor_at_end_of_line()
| |
| filter | back to summary |
|---|---|
public NkPluginFilter filter()
| |
| has_preferred_x | back to summary |
|---|---|
public boolean has_preferred_x()
| |
| initialized | back to summary |
|---|---|
public boolean initialized()
| |
| malloc | back to summary |
|---|---|
| public static NkTextEdit malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static NkTextEdit. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static NkTextEdit malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static NkTextEdit. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static NkTextEdit mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static NkTextEdit mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static NkTextEdit. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static NkTextEdit. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mode | back to summary |
|---|---|
public byte mode()
| |
| nactive | back to summary |
|---|---|
| public static boolean nactive(long struct) Unsafe version of | |
| nclip | back to summary |
|---|---|
| public static NkClipboard nclip(long struct) Unsafe version of | |
| ncursor | back to summary |
|---|---|
| public static int ncursor(long struct) Unsafe version of | |
| ncursor_at_end_of_line | back to summary |
|---|---|
| public static boolean ncursor_at_end_of_line(long struct) Unsafe version of | |
| nfilter | back to summary |
|---|---|
| public static NkPluginFilter nfilter(long struct) Unsafe version of
| |
| nhas_preferred_x | back to summary |
|---|---|
| public static boolean nhas_preferred_x(long struct) Unsafe version of | |
| ninitialized | back to summary |
|---|---|
| public static boolean ninitialized(long struct) Unsafe version of | |
| nmode | back to summary |
|---|---|
| public static byte nmode(long struct) Unsafe version of | |
| npreferred_x | back to summary |
|---|---|
| public static float npreferred_x(long struct) Unsafe version of | |
| nscrollbar | back to summary |
|---|---|
| public static NkVec2 nscrollbar(long struct) Unsafe version of | |
| nselect_end | back to summary |
|---|---|
| public static int nselect_end(long struct) Unsafe version of | |
| nselect_start | back to summary |
|---|---|
| public static int nselect_start(long struct) Unsafe version of | |
| nsingle_line | back to summary |
|---|---|
| public static boolean nsingle_line(long struct) Unsafe version of | |
| nstring | back to summary |
|---|---|
| public static NkStr nstring(long struct) Unsafe version of | |
| nundo | back to summary |
|---|---|
| public static NkTextUndoState nundo(long struct) Unsafe version of | |
| preferred_x | back to summary |
|---|---|
public float preferred_x()
| |
| scrollbar | back to summary |
|---|---|
public NkVec2 scrollbar()
| |
| select_end | back to summary |
|---|---|
public int select_end()
| |
| select_start | back to summary |
|---|---|
public int select_start()
| |
| single_line | back to summary |
|---|---|
public boolean single_line()
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| string | back to summary |
|---|---|
public NkStr string()
| |
| undo | back to summary |
|---|---|
public NkTextUndoState undo()
| |
NkTextEdit structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final NkTextEdit |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public NkClipboard | |
| public int | |
| public boolean | |
| public NkPluginFilter | |
| protected NkTextEdit | |
| public boolean | |
| public boolean | |
| public byte | |
| public float | |
| public NkVec2 | |
| public int | |
| public int | |
| protected NkTextEdit. | |
| public boolean | |
| public NkStr | |
| public NkTextUndoState |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final NkTextEdit ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| active | back to summary |
|---|---|
public boolean active()
| |
| clip | back to summary |
|---|---|
public NkClipboard clip()
| |
| cursor | back to summary |
|---|---|
public int cursor()
| |
| cursor_at_end_of_line | back to summary |
|---|---|
public boolean cursor_at_end_of_line()
| |
| filter | back to summary |
|---|---|
public NkPluginFilter filter()
| |
| getElementFactory | back to summary |
|---|---|
| protected NkTextEdit getElementFactory() Implements abstract org.
| |
| has_preferred_x | back to summary |
|---|---|
public boolean has_preferred_x()
| |
| initialized | back to summary |
|---|---|
public boolean initialized()
| |
| mode | back to summary |
|---|---|
public byte mode()
| |
| preferred_x | back to summary |
|---|---|
public float preferred_x()
| |
| scrollbar | back to summary |
|---|---|
public NkVec2 scrollbar()
| |
| select_end | back to summary |
|---|---|
public int select_end()
| |
| select_start | back to summary |
|---|---|
public int select_start()
| |
| self | back to summary |
|---|---|
| protected NkTextEdit. Implements abstract org.
| |
| single_line | back to summary |
|---|---|
public boolean single_line()
| |
| string | back to summary |
|---|---|
public NkStr string()
| |
| undo | back to summary |
|---|---|
public NkTextUndoState undo()
| |