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
struct JAWT_Win32DrawingSurfaceInfo {
union {
HWND hwnd;
HBITMAP hbitmap;
void * pbits;
};
HDC hdc;
HPALETTE hpalette;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
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 @Nullable JAWTWin32DrawingSurfaceInfocreateSafe(long address) static @Nullable JAWTWin32DrawingSurfaceInfo.BuffercreateSafe(long address, int capacity) longhbitmap()longhdc()longhpalette()longhwnd()static 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()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 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()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<JAWTWin32DrawingSurfaceInfo>
-
hwnd
public long hwnd()- Returns:
- the value of the
hwndfield.
-
hbitmap
public long hbitmap()- Returns:
- the value of the
hbitmapfield.
-
pbits
- Returns:
- a
ByteBufferview of the data pointed to by thepbitsfield.
-
hdc
public long hdc()- Returns:
- the value of the
hdcfield.
-
hpalette
public long hpalette()- Returns:
- the value of the
hpalettefield.
-
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().
-