Package org.lwjgl.nuklear
Class NkTextEdit.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<NkTextEdit,NkTextEdit.Buffer>
-
- org.lwjgl.nuklear.NkTextEdit.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.lang.Iterable<NkTextEdit>
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
- Enclosing class:
- NkTextEdit
public static class NkTextEdit.Buffer extends org.lwjgl.system.StructBuffer<NkTextEdit,NkTextEdit.Buffer> implements org.lwjgl.system.NativeResource
An array ofNkTextEdit
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
active()
Returns the value of theactive
field.NkClipboard
clip()
Returns aNkClipboard
view of theclip
field.int
cursor()
Returns the value of thecursor
field.boolean
cursor_at_end_of_line()
Returns the value of thecursor_at_end_of_line
field.NkPluginFilter
filter()
Returns the value of thefilter
field.boolean
has_preferred_x()
Returns the value of thehas_preferred_x
field.boolean
initialized()
Returns the value of theinitialized
field.byte
mode()
Returns the value of themode
field.float
preferred_x()
Returns the value of thepreferred_x
field.NkVec2
scrollbar()
Returns aNkVec2
view of thescrollbar
field.int
select_end()
Returns the value of theselect_end
field.int
select_start()
Returns the value of theselect_start
field.boolean
single_line()
Returns the value of thesingle_line
field.NkStr
string()
Returns aNkStr
view of thestring
field.NkTextUndoState
undo()
Returns aNkTextUndoState
view of theundo
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNkTextEdit.Buffer
instance backed by the specified container. 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 byNkTextEdit.SIZEOF
, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Detail
-
clip
public NkClipboard clip()
Returns aNkClipboard
view of theclip
field.
-
filter
@Nullable public NkPluginFilter filter()
Returns the value of thefilter
field.
-
cursor
public int cursor()
Returns the value of thecursor
field.
-
select_start
public int select_start()
Returns the value of theselect_start
field.
-
select_end
public int select_end()
Returns the value of theselect_end
field.
-
mode
public byte mode()
Returns the value of themode
field.
-
cursor_at_end_of_line
public boolean cursor_at_end_of_line()
Returns the value of thecursor_at_end_of_line
field.
-
initialized
public boolean initialized()
Returns the value of theinitialized
field.
-
has_preferred_x
public boolean has_preferred_x()
Returns the value of thehas_preferred_x
field.
-
single_line
public boolean single_line()
Returns the value of thesingle_line
field.
-
active
public boolean active()
Returns the value of theactive
field.
-
preferred_x
public float preferred_x()
Returns the value of thepreferred_x
field.
-
undo
public NkTextUndoState undo()
Returns aNkTextUndoState
view of theundo
field.
-
-