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 classJAWTWin32DrawingSurfaceInfo.BufferAn array ofJAWTWin32DrawingSurfaceInfostructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe 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 aJAWTWin32DrawingSurfaceInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static JAWTWin32DrawingSurfaceInfocalloc()Returns a newJAWTWin32DrawingSurfaceInfoinstance allocated withmemCalloc.static JAWTWin32DrawingSurfaceInfo.Buffercalloc(int capacity)Returns a newJAWTWin32DrawingSurfaceInfo.Bufferinstance allocated withmemCalloc.static JAWTWin32DrawingSurfaceInfocallocStack()Returns a newJAWTWin32DrawingSurfaceInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static JAWTWin32DrawingSurfaceInfo.BuffercallocStack(int capacity)Returns a newJAWTWin32DrawingSurfaceInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static JAWTWin32DrawingSurfaceInfo.BuffercallocStack(int capacity, MemoryStack stack)Returns a newJAWTWin32DrawingSurfaceInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static JAWTWin32DrawingSurfaceInfocallocStack(MemoryStack stack)Returns a newJAWTWin32DrawingSurfaceInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static JAWTWin32DrawingSurfaceInfocreate()Returns a newJAWTWin32DrawingSurfaceInfoinstance allocated withBufferUtils.static JAWTWin32DrawingSurfaceInfo.Buffercreate(int capacity)Returns a newJAWTWin32DrawingSurfaceInfo.Bufferinstance allocated withBufferUtils.static JAWTWin32DrawingSurfaceInfocreate(long address)Returns a newJAWTWin32DrawingSurfaceInfoinstance for the specified memory address ornullif the address isNULL.static JAWTWin32DrawingSurfaceInfo.Buffercreate(long address, int capacity)Create aJAWTWin32DrawingSurfaceInfo.Bufferinstance at the specified memory.longhbitmap()Returns the value of thehbitmapfield.longhdc()Returns the value of thehdcfield.longhpalette()Returns the value of thehpalettefield.longhwnd()Returns the value of thehwndfield.static JAWTWin32DrawingSurfaceInfomalloc()Returns a newJAWTWin32DrawingSurfaceInfoinstance allocated withmemAlloc.static JAWTWin32DrawingSurfaceInfo.Buffermalloc(int capacity)Returns a newJAWTWin32DrawingSurfaceInfo.Bufferinstance allocated withmemAlloc.static JAWTWin32DrawingSurfaceInfomallocStack()Returns a newJAWTWin32DrawingSurfaceInfoinstance allocated on the thread-localMemoryStack.static JAWTWin32DrawingSurfaceInfo.BuffermallocStack(int capacity)Returns a newJAWTWin32DrawingSurfaceInfo.Bufferinstance allocated on the thread-localMemoryStack.static JAWTWin32DrawingSurfaceInfo.BuffermallocStack(int capacity, MemoryStack stack)Returns a newJAWTWin32DrawingSurfaceInfo.Bufferinstance allocated on the specifiedMemoryStack.static JAWTWin32DrawingSurfaceInfomallocStack(MemoryStack stack)Returns a newJAWTWin32DrawingSurfaceInfoinstance allocated on the specifiedMemoryStack.java.nio.ByteBufferpbits(int capacity)Returns aByteBufferview of the data pointed to by thepbitsfield.intsizeof()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 aJAWTWin32DrawingSurfaceInfoinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturns thesizeof(struct).
-
hwnd
public long hwnd()
Returns the value of thehwndfield.
-
hbitmap
public long hbitmap()
Returns the value of thehbitmapfield.
-
pbits
public java.nio.ByteBuffer pbits(int capacity)
Returns aByteBufferview of the data pointed to by thepbitsfield.- Parameters:
capacity- the number of elements in the returned buffer
-
hdc
public long hdc()
Returns the value of thehdcfield.
-
hpalette
public long hpalette()
Returns the value of thehpalettefield.
-
malloc
public static JAWTWin32DrawingSurfaceInfo malloc()
Returns a newJAWTWin32DrawingSurfaceInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static JAWTWin32DrawingSurfaceInfo calloc()
Returns a newJAWTWin32DrawingSurfaceInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static JAWTWin32DrawingSurfaceInfo create()
Returns a newJAWTWin32DrawingSurfaceInfoinstance allocated withBufferUtils.
-
create
public static JAWTWin32DrawingSurfaceInfo create(long address)
Returns a newJAWTWin32DrawingSurfaceInfoinstance for the specified memory address ornullif the address isNULL.
-
malloc
public static JAWTWin32DrawingSurfaceInfo.Buffer malloc(int capacity)
Returns a newJAWTWin32DrawingSurfaceInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static JAWTWin32DrawingSurfaceInfo.Buffer calloc(int capacity)
Returns a newJAWTWin32DrawingSurfaceInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static JAWTWin32DrawingSurfaceInfo.Buffer create(int capacity)
Returns a newJAWTWin32DrawingSurfaceInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static JAWTWin32DrawingSurfaceInfo.Buffer create(long address, int capacity)
Create aJAWTWin32DrawingSurfaceInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static JAWTWin32DrawingSurfaceInfo mallocStack()
Returns a newJAWTWin32DrawingSurfaceInfoinstance allocated on the thread-localMemoryStack.
-
callocStack
public static JAWTWin32DrawingSurfaceInfo callocStack()
Returns a newJAWTWin32DrawingSurfaceInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static JAWTWin32DrawingSurfaceInfo mallocStack(MemoryStack stack)
Returns a newJAWTWin32DrawingSurfaceInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static JAWTWin32DrawingSurfaceInfo callocStack(MemoryStack stack)
Returns a newJAWTWin32DrawingSurfaceInfoinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static JAWTWin32DrawingSurfaceInfo.Buffer callocStack(int capacity)
Returns a newJAWTWin32DrawingSurfaceInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static JAWTWin32DrawingSurfaceInfo.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newJAWTWin32DrawingSurfaceInfo.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-