Package org.lwjgl.system.jawt
Class JAWTWin32DrawingSurfaceInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.system.jawt.JAWTWin32DrawingSurfaceInfo
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class JAWTWin32DrawingSurfaceInfo extends Struct
Win32-specific declarations for AWT native interface.Member documentation
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 fromBeginPaint()
or any calls toUser32.GetDC(long)
.hpalette
– the palette handle
Layout
struct JAWT_Win32DrawingSurfaceInfo { union { HWND hwnd; HBITMAP hbitmap; void * pbits; }; HDC hdc; HPALETTE hpalette; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
JAWTWin32DrawingSurfaceInfo.Buffer
An array ofJAWTWin32DrawingSurfaceInfo
structs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static int
SIZEOF
The struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and Description JAWTWin32DrawingSurfaceInfo(java.nio.ByteBuffer container)
Creates aJAWTWin32DrawingSurfaceInfo
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static JAWTWin32DrawingSurfaceInfo
calloc()
Returns a newJAWTWin32DrawingSurfaceInfo
instance allocated withmemCalloc
.static JAWTWin32DrawingSurfaceInfo.Buffer
calloc(int capacity)
Returns a newJAWTWin32DrawingSurfaceInfo.Buffer
instance allocated withmemCalloc
.static JAWTWin32DrawingSurfaceInfo
callocStack()
Returns a newJAWTWin32DrawingSurfaceInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static JAWTWin32DrawingSurfaceInfo.Buffer
callocStack(int capacity)
Returns a newJAWTWin32DrawingSurfaceInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static JAWTWin32DrawingSurfaceInfo.Buffer
callocStack(int capacity, MemoryStack stack)
Returns a newJAWTWin32DrawingSurfaceInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static JAWTWin32DrawingSurfaceInfo
callocStack(MemoryStack stack)
Returns a newJAWTWin32DrawingSurfaceInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static JAWTWin32DrawingSurfaceInfo
create()
Returns a newJAWTWin32DrawingSurfaceInfo
instance allocated withBufferUtils
.static JAWTWin32DrawingSurfaceInfo.Buffer
create(int capacity)
Returns a newJAWTWin32DrawingSurfaceInfo.Buffer
instance allocated withBufferUtils
.static JAWTWin32DrawingSurfaceInfo
create(long address)
Returns a newJAWTWin32DrawingSurfaceInfo
instance for the specified memory address ornull
if the address isNULL
.static JAWTWin32DrawingSurfaceInfo.Buffer
create(long address, int capacity)
Create aJAWTWin32DrawingSurfaceInfo.Buffer
instance at the specified memory.long
hbitmap()
Returns the value of thehbitmap
field.long
hdc()
Returns the value of thehdc
field.long
hpalette()
Returns the value of thehpalette
field.long
hwnd()
Returns the value of thehwnd
field.static JAWTWin32DrawingSurfaceInfo
malloc()
Returns a newJAWTWin32DrawingSurfaceInfo
instance allocated withmemAlloc
.static JAWTWin32DrawingSurfaceInfo.Buffer
malloc(int capacity)
Returns a newJAWTWin32DrawingSurfaceInfo.Buffer
instance allocated withmemAlloc
.static JAWTWin32DrawingSurfaceInfo
mallocStack()
Returns a newJAWTWin32DrawingSurfaceInfo
instance allocated on the thread-localMemoryStack
.static JAWTWin32DrawingSurfaceInfo.Buffer
mallocStack(int capacity)
Returns a newJAWTWin32DrawingSurfaceInfo.Buffer
instance allocated on the thread-localMemoryStack
.static JAWTWin32DrawingSurfaceInfo.Buffer
mallocStack(int capacity, MemoryStack stack)
Returns a newJAWTWin32DrawingSurfaceInfo.Buffer
instance allocated on the specifiedMemoryStack
.static JAWTWin32DrawingSurfaceInfo
mallocStack(MemoryStack stack)
Returns a newJAWTWin32DrawingSurfaceInfo
instance allocated on the specifiedMemoryStack
.java.nio.ByteBuffer
pbits(int capacity)
Returns aByteBuffer
view of the data pointed to by thepbits
field.int
sizeof()
Returns thesizeof(struct)
.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Constructor Detail
-
JAWTWin32DrawingSurfaceInfo
public JAWTWin32DrawingSurfaceInfo(java.nio.ByteBuffer container)
Creates aJAWTWin32DrawingSurfaceInfo
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
Description copied from class:Struct
Returns thesizeof(struct)
.
-
hwnd
public long hwnd()
Returns the value of thehwnd
field.
-
hbitmap
public long hbitmap()
Returns the value of thehbitmap
field.
-
pbits
public java.nio.ByteBuffer pbits(int capacity)
Returns aByteBuffer
view of the data pointed to by thepbits
field.- Parameters:
capacity
- the number of elements in the returned buffer
-
hdc
public long hdc()
Returns the value of thehdc
field.
-
hpalette
public long hpalette()
Returns the value of thehpalette
field.
-
malloc
public static JAWTWin32DrawingSurfaceInfo malloc()
Returns a newJAWTWin32DrawingSurfaceInfo
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static JAWTWin32DrawingSurfaceInfo calloc()
Returns a newJAWTWin32DrawingSurfaceInfo
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static JAWTWin32DrawingSurfaceInfo create()
Returns a newJAWTWin32DrawingSurfaceInfo
instance allocated withBufferUtils
.
-
create
public static JAWTWin32DrawingSurfaceInfo create(long address)
Returns a newJAWTWin32DrawingSurfaceInfo
instance for the specified memory address ornull
if the address isNULL
.
-
malloc
public static JAWTWin32DrawingSurfaceInfo.Buffer malloc(int capacity)
Returns a newJAWTWin32DrawingSurfaceInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static JAWTWin32DrawingSurfaceInfo.Buffer calloc(int capacity)
Returns a newJAWTWin32DrawingSurfaceInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static JAWTWin32DrawingSurfaceInfo.Buffer create(int capacity)
Returns a newJAWTWin32DrawingSurfaceInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static JAWTWin32DrawingSurfaceInfo.Buffer create(long address, int capacity)
Create aJAWTWin32DrawingSurfaceInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
mallocStack
public static JAWTWin32DrawingSurfaceInfo mallocStack()
Returns a newJAWTWin32DrawingSurfaceInfo
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static JAWTWin32DrawingSurfaceInfo callocStack()
Returns a newJAWTWin32DrawingSurfaceInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static JAWTWin32DrawingSurfaceInfo mallocStack(MemoryStack stack)
Returns a newJAWTWin32DrawingSurfaceInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static JAWTWin32DrawingSurfaceInfo callocStack(MemoryStack stack)
Returns a newJAWTWin32DrawingSurfaceInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static JAWTWin32DrawingSurfaceInfo.Buffer mallocStack(int capacity)
Returns a newJAWTWin32DrawingSurfaceInfo.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static JAWTWin32DrawingSurfaceInfo.Buffer callocStack(int capacity)
Returns a newJAWTWin32DrawingSurfaceInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static JAWTWin32DrawingSurfaceInfo.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newJAWTWin32DrawingSurfaceInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static JAWTWin32DrawingSurfaceInfo.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newJAWTWin32DrawingSurfaceInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
-