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.Member documentation
- <union>
hwnd– the native window handlehbitmap– the DDB handlepbits– the DIB handle
hdc– 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 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()Returns the value of thehbitmapfield.longhdc()Returns the value of thehdcfield.longhpalette()Returns the value of thehpalettefield.longhwnd()Returns the value of thehwndfield.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 java.nio.ByteBuffernpbits(long struct, int capacity)Unsafe version ofpbits.java.nio.ByteBufferpbits(int capacity)Returns aByteBufferview of the data pointed to by thepbitsfield.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()
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.
-
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().
-
-