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:
Pointer
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 classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionJAWTWin32DrawingSurfaceInfo
(ByteBuffer container) Creates aJAWTWin32DrawingSurfaceInfo
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic JAWTWin32DrawingSurfaceInfo
create
(long address) Returns a newJAWTWin32DrawingSurfaceInfo
instance for the specified memory address.create
(long address, int capacity) Create aJAWTWin32DrawingSurfaceInfo.Buffer
instance at the specified memory.static JAWTWin32DrawingSurfaceInfo
createSafe
(long address) createSafe
(long address, int capacity) long
hbitmap()
the DDB handlelong
hdc()
the device context handle.long
hpalette()
the palette handlelong
hwnd()
the native window handlestatic long
nhbitmap
(long struct) Unsafe version ofhbitmap()
.static long
nhdc
(long struct) Unsafe version ofhdc()
.static long
nhpalette
(long struct) Unsafe version ofhpalette()
.static long
nhwnd
(long struct) Unsafe version ofhwnd()
.static ByteBuffer
npbits
(long struct, int capacity) Unsafe version ofpbits
.pbits
(int capacity) int
sizeof()
Returnssizeof(struct)
.Methods 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 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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<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 newJAWTWin32DrawingSurfaceInfo
instance for the specified memory address. -
createSafe
-
create
Create aJAWTWin32DrawingSurfaceInfo.Buffer
instance 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()
.
-