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:
org.lwjgl.system.Pointer
public class JAWTWin32DrawingSurfaceInfo extends org.lwjgl.system.StructWin32-specific declarations for AWT native interface.Layout
struct JAWT_Win32DrawingSurfaceInfo { union { HWNDhwnd(); HBITMAPhbitmap(); void *pbits(int); }; HDChdc(); HPALETTEhpalette(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJAWTWin32DrawingSurfaceInfo.BufferAn array ofJAWTWin32DrawingSurfaceInfostructs.
-
Constructor Summary
Constructors Constructor 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 Description static JAWTWin32DrawingSurfaceInfocreate(long address)Returns a newJAWTWin32DrawingSurfaceInfoinstance for the specified memory address.static JAWTWin32DrawingSurfaceInfo.Buffercreate(long address, int capacity)Create aJAWTWin32DrawingSurfaceInfo.Bufferinstance at the specified memory.static JAWTWin32DrawingSurfaceInfocreateSafe(long address)static JAWTWin32DrawingSurfaceInfo.BuffercreateSafe(long address, int capacity)longhbitmap()the DDB handlelonghdc()the device context handle.longhpalette()the palette handlelonghwnd()the native window handlestatic longnhbitmap(long struct)Unsafe version ofhbitmap().static longnhdc(long struct)Unsafe version ofhdc().static longnhpalette(long struct)Unsafe version ofhpalette().static longnhwnd(long struct)Unsafe version ofhwnd().static java.nio.ByteBuffernpbits(long struct, int capacity)Unsafe version ofpbits.java.nio.ByteBufferpbits(int capacity)intsizeof()
-
-
-
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()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
hwnd
public long hwnd()
the native window handle
-
hbitmap
public long hbitmap()
the DDB handle
-
pbits
public java.nio.ByteBuffer pbits(int capacity)
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- the DIB handle
-
hdc
public long hdc()
the device context handle. This HDC should always be used instead of the HDC returned fromBeginPaint()or any calls toUser32.GetDC(long).
-
hpalette
public long hpalette()
the palette handle
-
create
public static JAWTWin32DrawingSurfaceInfo create(long address)
Returns a newJAWTWin32DrawingSurfaceInfoinstance for the specified memory address.
-
createSafe
@Nullable public static JAWTWin32DrawingSurfaceInfo createSafe(long address)
-
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
-
createSafe
@Nullable public static JAWTWin32DrawingSurfaceInfo.Buffer createSafe(long address, int capacity)
-
nhwnd
public static long nhwnd(long struct)
Unsafe version ofhwnd().
-
nhbitmap
public static long nhbitmap(long struct)
Unsafe version ofhbitmap().
-
npbits
public static java.nio.ByteBuffer npbits(long struct, int capacity)Unsafe version ofpbits.
-
nhdc
public static long nhdc(long struct)
Unsafe version ofhdc().
-
nhpalette
public static long nhpalette(long struct)
Unsafe version ofhpalette().
-
-