public class CXCompletionResult
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
CursorKind –
the kind of entity that this completion refers to.
The cursor kind will be a macro, keyword, or a declaration (one of the *Decl cursor kinds), describing the entity that the completion is
referring to.
CompletionString – the code-completion string that describes how to insert this code-completion result into the editing buffer
struct CXCompletionResult {
enum CXCursorKind CursorKind;
CXCompletionString CompletionString;
}| Modifier and Type | Class and Description |
|---|---|
static class |
CXCompletionResult.Buffer
An array of
CXCompletionResult structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
COMPLETIONSTRING
The struct member offsets.
|
static int |
CURSORKIND
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
CXCompletionResult(java.nio.ByteBuffer container)
Creates a
CXCompletionResult instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static CXCompletionResult |
calloc()
Returns a new
CXCompletionResult instance allocated with memCalloc. |
static CXCompletionResult.Buffer |
calloc(int capacity)
Returns a new
CXCompletionResult.Buffer instance allocated with memCalloc. |
static CXCompletionResult |
callocStack()
Returns a new
CXCompletionResult instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CXCompletionResult.Buffer |
callocStack(int capacity)
Returns a new
CXCompletionResult.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CXCompletionResult.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CXCompletionResult.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CXCompletionResult |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CXCompletionResult instance allocated on the specified MemoryStack and initializes all its bits to zero. |
long |
CompletionString()
Returns the value of the
CompletionString field. |
static CXCompletionResult |
create()
Returns a new
CXCompletionResult instance allocated with BufferUtils. |
static CXCompletionResult.Buffer |
create(int capacity)
Returns a new
CXCompletionResult.Buffer instance allocated with BufferUtils. |
static CXCompletionResult |
create(long address)
Returns a new
CXCompletionResult instance for the specified memory address. |
static CXCompletionResult.Buffer |
create(long address,
int capacity)
Create a
CXCompletionResult.Buffer instance at the specified memory. |
static CXCompletionResult |
createSafe(long address)
|
static CXCompletionResult.Buffer |
createSafe(long address,
int capacity)
|
int |
CursorKind()
Returns the value of the
CursorKind field. |
static CXCompletionResult |
malloc()
Returns a new
CXCompletionResult instance allocated with memAlloc. |
static CXCompletionResult.Buffer |
malloc(int capacity)
Returns a new
CXCompletionResult.Buffer instance allocated with memAlloc. |
static CXCompletionResult |
mallocStack()
Returns a new
CXCompletionResult instance allocated on the thread-local MemoryStack. |
static CXCompletionResult.Buffer |
mallocStack(int capacity)
Returns a new
CXCompletionResult.Buffer instance allocated on the thread-local MemoryStack. |
static CXCompletionResult.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CXCompletionResult.Buffer instance allocated on the specified MemoryStack. |
static CXCompletionResult |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CXCompletionResult instance allocated on the specified MemoryStack. |
static long |
nCompletionString(long struct)
Unsafe version of
CompletionString(). |
static int |
nCursorKind(long struct)
Unsafe version of
CursorKind(). |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int CURSORKIND
public static final int COMPLETIONSTRING
public CXCompletionResult(java.nio.ByteBuffer container)
CXCompletionResult 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 int CursorKind()
CursorKind field.public long CompletionString()
CompletionString field.public static CXCompletionResult malloc()
CXCompletionResult instance allocated with memAlloc. The instance must be explicitly freed.public static CXCompletionResult calloc()
CXCompletionResult instance allocated with memCalloc. The instance must be explicitly freed.public static CXCompletionResult create()
CXCompletionResult instance allocated with BufferUtils.public static CXCompletionResult create(long address)
CXCompletionResult instance for the specified memory address.@Nullable public static CXCompletionResult createSafe(long address)
public static CXCompletionResult.Buffer malloc(int capacity)
CXCompletionResult.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CXCompletionResult.Buffer calloc(int capacity)
CXCompletionResult.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CXCompletionResult.Buffer create(int capacity)
CXCompletionResult.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static CXCompletionResult.Buffer create(long address, int capacity)
CXCompletionResult.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static CXCompletionResult.Buffer createSafe(long address, int capacity)
public static CXCompletionResult mallocStack()
CXCompletionResult instance allocated on the thread-local MemoryStack.public static CXCompletionResult callocStack()
CXCompletionResult instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static CXCompletionResult mallocStack(org.lwjgl.system.MemoryStack stack)
CXCompletionResult instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static CXCompletionResult callocStack(org.lwjgl.system.MemoryStack stack)
CXCompletionResult instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static CXCompletionResult.Buffer mallocStack(int capacity)
CXCompletionResult.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static CXCompletionResult.Buffer callocStack(int capacity)
CXCompletionResult.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static CXCompletionResult.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CXCompletionResult.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static CXCompletionResult.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CXCompletionResult.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 int nCursorKind(long struct)
CursorKind().public static long nCompletionString(long struct)
CompletionString().Copyright LWJGL. All Rights Reserved. License terms.