public class POINT
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
x – the x-coordinate of the pointy – the y-coordinate of the point
struct POINT {
LONG x;
LONG y;
}| Modifier and Type | Class and Description |
|---|---|
static class |
POINT.Buffer
An array of
POINT structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
X
The struct member offsets.
|
static int |
Y
The struct member offsets.
|
| Constructor and Description |
|---|
POINT(java.nio.ByteBuffer container)
Creates a
POINT instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static POINT |
calloc()
Returns a new
POINT instance allocated with memCalloc. |
static POINT.Buffer |
calloc(int capacity)
Returns a new
POINT.Buffer instance allocated with memCalloc. |
static POINT |
callocStack()
Returns a new
POINT instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static POINT.Buffer |
callocStack(int capacity)
Returns a new
POINT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static POINT.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
POINT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static POINT |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
POINT instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static POINT |
create()
Returns a new
POINT instance allocated with BufferUtils. |
static POINT.Buffer |
create(int capacity)
Returns a new
POINT.Buffer instance allocated with BufferUtils. |
static POINT |
create(long address)
Returns a new
POINT instance for the specified memory address. |
static POINT.Buffer |
create(long address,
int capacity)
Create a
POINT.Buffer instance at the specified memory. |
static POINT |
createSafe(long address)
|
static POINT.Buffer |
createSafe(long address,
int capacity)
|
static POINT |
malloc()
Returns a new
POINT instance allocated with memAlloc. |
static POINT.Buffer |
malloc(int capacity)
Returns a new
POINT.Buffer instance allocated with memAlloc. |
static POINT |
mallocStack()
Returns a new
POINT instance allocated on the thread-local MemoryStack. |
static POINT.Buffer |
mallocStack(int capacity)
Returns a new
POINT.Buffer instance allocated on the thread-local MemoryStack. |
static POINT.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
POINT.Buffer instance allocated on the specified MemoryStack. |
static POINT |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
POINT instance allocated on the specified MemoryStack. |
static int |
nx(long struct)
Unsafe version of
x(). |
static void |
nx(long struct,
int value)
Unsafe version of
x. |
static int |
ny(long struct)
Unsafe version of
y(). |
static void |
ny(long struct,
int value)
Unsafe version of
y. |
POINT |
set(int x,
int y)
Initializes this struct with the specified values.
|
POINT |
set(POINT src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
x()
Returns the value of the
x field. |
POINT |
x(int value)
Sets the specified value to the
x field. |
int |
y()
Returns the value of the
y field. |
POINT |
y(int value)
Sets the specified value to the
y field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int X
public static final int Y
public POINT(java.nio.ByteBuffer container)
POINT 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 x()
x field.public int y()
y field.public POINT x(int value)
x field.public POINT y(int value)
y field.public POINT set(int x, int y)
public POINT set(POINT src)
src - the source structpublic static POINT malloc()
POINT instance allocated with memAlloc. The instance must be explicitly freed.public static POINT calloc()
POINT instance allocated with memCalloc. The instance must be explicitly freed.public static POINT create()
POINT instance allocated with BufferUtils.public static POINT create(long address)
POINT instance for the specified memory address.@Nullable public static POINT createSafe(long address)
public static POINT.Buffer malloc(int capacity)
POINT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static POINT.Buffer calloc(int capacity)
POINT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static POINT.Buffer create(int capacity)
POINT.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static POINT.Buffer create(long address, int capacity)
POINT.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static POINT.Buffer createSafe(long address, int capacity)
public static POINT mallocStack()
POINT instance allocated on the thread-local MemoryStack.public static POINT callocStack()
POINT instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static POINT mallocStack(org.lwjgl.system.MemoryStack stack)
POINT instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static POINT callocStack(org.lwjgl.system.MemoryStack stack)
POINT instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static POINT.Buffer mallocStack(int capacity)
POINT.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static POINT.Buffer callocStack(int capacity)
POINT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static POINT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
POINT.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static POINT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
POINT.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 nx(long struct)
x().public static int ny(long struct)
y().public static void nx(long struct,
int value)
x.public static void ny(long struct,
int value)
y.Copyright LWJGL. All Rights Reserved. License terms.