public class POINTL
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
x – the horizontal (x) coordinate of the pointy – the vertical (y) coordinate of the point.
struct POINTL {
LONG x;
LONG y;
}| Modifier and Type | Class and Description |
|---|---|
static class |
POINTL.Buffer
An array of
POINTL 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 |
|---|
POINTL(java.nio.ByteBuffer container)
Creates a
POINTL instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static POINTL |
calloc()
Returns a new
POINTL instance allocated with memCalloc. |
static POINTL.Buffer |
calloc(int capacity)
Returns a new
POINTL.Buffer instance allocated with memCalloc. |
static POINTL |
callocStack()
Returns a new
POINTL instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static POINTL.Buffer |
callocStack(int capacity)
Returns a new
POINTL.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static POINTL.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
POINTL.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static POINTL |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
POINTL instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static POINTL |
create()
Returns a new
POINTL instance allocated with BufferUtils. |
static POINTL.Buffer |
create(int capacity)
Returns a new
POINTL.Buffer instance allocated with BufferUtils. |
static POINTL |
create(long address)
Returns a new
POINTL instance for the specified memory address. |
static POINTL.Buffer |
create(long address,
int capacity)
Create a
POINTL.Buffer instance at the specified memory. |
static POINTL |
createSafe(long address)
|
static POINTL.Buffer |
createSafe(long address,
int capacity)
|
static POINTL |
malloc()
Returns a new
POINTL instance allocated with memAlloc. |
static POINTL.Buffer |
malloc(int capacity)
Returns a new
POINTL.Buffer instance allocated with memAlloc. |
static POINTL |
mallocStack()
Returns a new
POINTL instance allocated on the thread-local MemoryStack. |
static POINTL.Buffer |
mallocStack(int capacity)
Returns a new
POINTL.Buffer instance allocated on the thread-local MemoryStack. |
static POINTL.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
POINTL.Buffer instance allocated on the specified MemoryStack. |
static POINTL |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
POINTL 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. |
POINTL |
set(int x,
int y)
Initializes this struct with the specified values.
|
POINTL |
set(POINTL src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
x()
Returns the value of the
x field. |
POINTL |
x(int value)
Sets the specified value to the
x field. |
int |
y()
Returns the value of the
y field. |
POINTL |
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 POINTL(java.nio.ByteBuffer container)
POINTL 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 POINTL x(int value)
x field.public POINTL y(int value)
y field.public POINTL set(int x, int y)
public POINTL set(POINTL src)
src - the source structpublic static POINTL malloc()
POINTL instance allocated with memAlloc. The instance must be explicitly freed.public static POINTL calloc()
POINTL instance allocated with memCalloc. The instance must be explicitly freed.public static POINTL create()
POINTL instance allocated with BufferUtils.public static POINTL create(long address)
POINTL instance for the specified memory address.@Nullable public static POINTL createSafe(long address)
public static POINTL.Buffer malloc(int capacity)
POINTL.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static POINTL.Buffer calloc(int capacity)
POINTL.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static POINTL.Buffer create(int capacity)
POINTL.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static POINTL.Buffer create(long address, int capacity)
POINTL.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static POINTL.Buffer createSafe(long address, int capacity)
public static POINTL mallocStack()
POINTL instance allocated on the thread-local MemoryStack.public static POINTL callocStack()
POINTL instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static POINTL mallocStack(org.lwjgl.system.MemoryStack stack)
POINTL instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static POINTL callocStack(org.lwjgl.system.MemoryStack stack)
POINTL instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static POINTL.Buffer mallocStack(int capacity)
POINTL.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static POINTL.Buffer callocStack(int capacity)
POINTL.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static POINTL.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
POINTL.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static POINTL.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
POINTL.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.