Package org.lwjgl.system.jawt
Class JAWTWin32DrawingSurfaceInfo
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<JAWTWin32DrawingSurfaceInfo>
org.lwjgl.system.jawt.JAWTWin32DrawingSurfaceInfo
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class JAWTWin32DrawingSurfaceInfo
extends org.lwjgl.system.Struct<JAWTWin32DrawingSurfaceInfo>
Win32-specific declarations for AWT native interface.
Layout
struct JAWT_Win32DrawingSurfaceInfo {
union {
HWND hwnd();
HBITMAP hbitmap();
void * pbits(int);
};
HDC hdc();
HPALETTE hpalette();
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionJAWTWin32DrawingSurfaceInfo(ByteBuffer container) Creates aJAWTWin32DrawingSurfaceInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic JAWTWin32DrawingSurfaceInfocreate(long address) Returns a newJAWTWin32DrawingSurfaceInfoinstance for the specified memory address.create(long address, int capacity) Create aJAWTWin32DrawingSurfaceInfo.Bufferinstance at the specified memory.static JAWTWin32DrawingSurfaceInfocreateSafe(long address) createSafe(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 ByteBuffernpbits(long struct, int capacity) Unsafe version ofpbits.pbits(int capacity) intsizeof()Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
HWND
public static final int HWNDThe struct member offsets. -
HBITMAP
public static final int HBITMAPThe struct member offsets. -
PBITS
public static final int PBITSThe struct member offsets. -
HDC
public static final int HDCThe struct member offsets. -
HPALETTE
public static final int HPALETTEThe struct member offsets.
-
-
Constructor Details
-
JAWTWin32DrawingSurfaceInfo
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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<JAWTWin32DrawingSurfaceInfo>
-
hwnd
public long hwnd()the native window handle -
hbitmap
public long hbitmap()the DDB handle -
pbits
- 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
Returns a newJAWTWin32DrawingSurfaceInfoinstance for the specified memory address. -
createSafe
-
create
Create aJAWTWin32DrawingSurfaceInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
nhwnd
public static long nhwnd(long struct) Unsafe version ofhwnd(). -
nhbitmap
public static long nhbitmap(long struct) Unsafe version ofhbitmap(). -
npbits
Unsafe version ofpbits. -
nhdc
public static long nhdc(long struct) Unsafe version ofhdc(). -
nhpalette
public static long nhpalette(long struct) Unsafe version ofhpalette().
-