public class JAWTWin32DrawingSurfaceInfo
extends org.lwjgl.system.Struct
hwnd – the native window handlehbitmap – the DDB handlepbits – the DIB handlehdc – the device context handle. This HDC should always be used instead of the HDC returned from BeginPaint() or any calls to User32.GetDC(long).hpalette – the palette handle
struct JAWT_Win32DrawingSurfaceInfo {
union {
HWND hwnd;
HBITMAP hbitmap;
void * pbits;
};
HDC hdc;
HPALETTE hpalette;
}| Modifier and Type | Class and Description |
|---|---|
static class |
JAWTWin32DrawingSurfaceInfo.Buffer
An array of
JAWTWin32DrawingSurfaceInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
HBITMAP
The struct member offsets.
|
static int |
HDC
The struct member offsets.
|
static int |
HPALETTE
The struct member offsets.
|
static int |
HWND
The struct member offsets.
|
static int |
PBITS
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
JAWTWin32DrawingSurfaceInfo(java.nio.ByteBuffer container)
Creates a
JAWTWin32DrawingSurfaceInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static JAWTWin32DrawingSurfaceInfo |
create(long address)
Returns a new
JAWTWin32DrawingSurfaceInfo instance for the specified memory address. |
static JAWTWin32DrawingSurfaceInfo.Buffer |
create(long address,
int capacity)
Create a
JAWTWin32DrawingSurfaceInfo.Buffer instance at the specified memory. |
static JAWTWin32DrawingSurfaceInfo |
createSafe(long address)
|
static JAWTWin32DrawingSurfaceInfo.Buffer |
createSafe(long address,
int capacity)
|
long |
hbitmap()
Returns the value of the
hbitmap field. |
long |
hdc()
Returns the value of the
hdc field. |
long |
hpalette()
Returns the value of the
hpalette field. |
long |
hwnd()
Returns the value of the
hwnd field. |
static long |
nhbitmap(long struct)
Unsafe version of
hbitmap(). |
static long |
nhdc(long struct)
Unsafe version of
hdc(). |
static long |
nhpalette(long struct)
Unsafe version of
hpalette(). |
static long |
nhwnd(long struct)
Unsafe version of
hwnd(). |
static java.nio.ByteBuffer |
npbits(long struct,
int capacity)
Unsafe version of
pbits. |
java.nio.ByteBuffer |
pbits(int capacity)
Returns a
ByteBuffer view of the data pointed to by the pbits field. |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int HWND
public static final int HBITMAP
public static final int PBITS
public static final int HDC
public static final int HPALETTE
public JAWTWin32DrawingSurfaceInfo(java.nio.ByteBuffer container)
JAWTWin32DrawingSurfaceInfo 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 long hwnd()
hwnd field.public long hbitmap()
hbitmap field.public java.nio.ByteBuffer pbits(int capacity)
ByteBuffer view of the data pointed to by the pbits field.capacity - the number of elements in the returned bufferpublic long hdc()
hdc field.public long hpalette()
hpalette field.public static JAWTWin32DrawingSurfaceInfo create(long address)
JAWTWin32DrawingSurfaceInfo instance for the specified memory address.@Nullable public static JAWTWin32DrawingSurfaceInfo createSafe(long address)
public static JAWTWin32DrawingSurfaceInfo.Buffer create(long address, int capacity)
JAWTWin32DrawingSurfaceInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static JAWTWin32DrawingSurfaceInfo.Buffer createSafe(long address, int capacity)
public static long nhwnd(long struct)
hwnd().public static long nhbitmap(long struct)
hbitmap().public static java.nio.ByteBuffer npbits(long struct,
int capacity)
pbits.public static long nhdc(long struct)
hdc().public static long nhpalette(long struct)
hpalette().Copyright LWJGL. All Rights Reserved. License terms.