Package org.lwjgl.nuklear
Class NkTextEdit
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.nuklear.NkTextEdit
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class NkTextEdit extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct nk_text_edit {struct nk_clipboardclip;struct nk_strstring;nk_plugin_filterfilter;struct nk_vec2scrollbar; 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_stateundo; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNkTextEdit.BufferAn array ofNkTextEditstructs.
-
Field Summary
Fields Modifier and Type Field Description static intACTIVEThe struct member offsets.static intALIGNOFThe struct alignment in bytes.static intCLIP
CURSOR
CURSOR_AT_END_OF_LINE
FILTER
HAS_PREFERRED_X
INITIALIZED
MODE
PREFERRED_X
SCROLLBAR
SELECT_END
SELECT_START
SINGLE_LINEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTRING
UNDOThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description NkTextEdit(java.nio.ByteBuffer container)Creates aNkTextEditinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanactive()static NkTextEditcalloc()Returns a newNkTextEditinstance allocated withmemCalloc.static NkTextEdit.Buffercalloc(int capacity)Returns a newNkTextEdit.Bufferinstance allocated withmemCalloc.static NkTextEdit.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newNkTextEdit.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkTextEditcalloc(org.lwjgl.system.MemoryStack stack)Returns a newNkTextEditinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkTextEditcallocStack()Deprecated.static NkTextEdit.BuffercallocStack(int capacity)Deprecated.static NkTextEdit.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static NkTextEditcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.NkClipboardclip()static NkTextEditcreate()Returns a newNkTextEditinstance allocated withBufferUtils.static NkTextEdit.Buffercreate(int capacity)Returns a newNkTextEdit.Bufferinstance allocated withBufferUtils.static NkTextEditcreate(long address)Returns a newNkTextEditinstance for the specified memory address.static NkTextEdit.Buffercreate(long address, int capacity)Create aNkTextEdit.Bufferinstance at the specified memory.static NkTextEditcreateSafe(long address)static NkTextEdit.BuffercreateSafe(long address, int capacity)intcursor()booleancursor_at_end_of_line()NkPluginFilterfilter()booleanhas_preferred_x()booleaninitialized()static NkTextEditmalloc()Returns a newNkTextEditinstance allocated withmemAlloc.static NkTextEdit.Buffermalloc(int capacity)Returns a newNkTextEdit.Bufferinstance allocated withmemAlloc.static NkTextEdit.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newNkTextEdit.Bufferinstance allocated on the specifiedMemoryStack.static NkTextEditmalloc(org.lwjgl.system.MemoryStack stack)Returns a newNkTextEditinstance allocated on the specifiedMemoryStack.static NkTextEditmallocStack()Deprecated.static NkTextEdit.BuffermallocStack(int capacity)Deprecated.static NkTextEdit.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static NkTextEditmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.bytemode()static booleannactive(long struct)Unsafe version ofactive().static NkClipboardnclip(long struct)Unsafe version ofclip().static intncursor(long struct)Unsafe version ofcursor().static booleanncursor_at_end_of_line(long struct)Unsafe version ofcursor_at_end_of_line().static NkPluginFilternfilter(long struct)Unsafe version offilter().static booleannhas_preferred_x(long struct)Unsafe version ofhas_preferred_x().static booleanninitialized(long struct)Unsafe version ofinitialized().static bytenmode(long struct)Unsafe version ofmode().static floatnpreferred_x(long struct)Unsafe version ofpreferred_x().static NkVec2nscrollbar(long struct)Unsafe version ofscrollbar().static intnselect_end(long struct)Unsafe version ofselect_end().static intnselect_start(long struct)Unsafe version ofselect_start().static booleannsingle_line(long struct)Unsafe version ofsingle_line().static NkStrnstring(long struct)Unsafe version ofstring().static NkTextUndoStatenundo(long struct)Unsafe version ofundo().floatpreferred_x()NkVec2scrollbar()intselect_end()intselect_start()booleansingle_line()intsizeof()NkStrstring()NkTextUndoStateundo()
-
-
-
Constructor Detail
-
NkTextEdit
public NkTextEdit(java.nio.ByteBuffer container)
Creates aNkTextEditinstance 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
clip
public NkClipboard clip()
- Returns:
- a
NkClipboardview of theclipfield.
-
filter
@Nullable public NkPluginFilter filter()
- Returns:
- the value of the
filterfield.
-
cursor
public int cursor()
- Returns:
- the value of the
cursorfield.
-
select_start
public int select_start()
- Returns:
- the value of the
select_startfield.
-
select_end
public int select_end()
- Returns:
- the value of the
select_endfield.
-
mode
public byte mode()
- Returns:
- the value of the
modefield.
-
cursor_at_end_of_line
public boolean cursor_at_end_of_line()
- Returns:
- the value of the
cursor_at_end_of_linefield.
-
initialized
public boolean initialized()
- Returns:
- the value of the
initializedfield.
-
has_preferred_x
public boolean has_preferred_x()
- Returns:
- the value of the
has_preferred_xfield.
-
single_line
public boolean single_line()
- Returns:
- the value of the
single_linefield.
-
active
public boolean active()
- Returns:
- the value of the
activefield.
-
preferred_x
public float preferred_x()
- Returns:
- the value of the
preferred_xfield.
-
undo
public NkTextUndoState undo()
- Returns:
- a
NkTextUndoStateview of theundofield.
-
malloc
public static NkTextEdit malloc()
Returns a newNkTextEditinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static NkTextEdit calloc()
Returns a newNkTextEditinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static NkTextEdit create()
Returns a newNkTextEditinstance allocated withBufferUtils.
-
create
public static NkTextEdit create(long address)
Returns a newNkTextEditinstance for the specified memory address.
-
createSafe
@Nullable public static NkTextEdit createSafe(long address)
-
malloc
public static NkTextEdit.Buffer malloc(int capacity)
Returns a newNkTextEdit.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static NkTextEdit.Buffer calloc(int capacity)
Returns a newNkTextEdit.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static NkTextEdit.Buffer create(int capacity)
Returns a newNkTextEdit.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static NkTextEdit.Buffer create(long address, int capacity)
Create aNkTextEdit.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static NkTextEdit.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static NkTextEdit mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static NkTextEdit callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static NkTextEdit mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static NkTextEdit callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static NkTextEdit.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static NkTextEdit.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static NkTextEdit.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static NkTextEdit.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static NkTextEdit malloc(org.lwjgl.system.MemoryStack stack)
Returns a newNkTextEditinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static NkTextEdit calloc(org.lwjgl.system.MemoryStack stack)
Returns a newNkTextEditinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static NkTextEdit.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkTextEdit.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static NkTextEdit.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkTextEdit.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nclip
public static NkClipboard nclip(long struct)
Unsafe version ofclip().
-
nfilter
@Nullable public static NkPluginFilter nfilter(long struct)
Unsafe version offilter().
-
nscrollbar
public static NkVec2 nscrollbar(long struct)
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
public static NkTextUndoState nundo(long struct)
Unsafe version ofundo().
-
-