Class JAWTWin32DrawingSurfaceInfo

  • All Implemented Interfaces:
    org.lwjgl.system.Pointer

    public class JAWTWin32DrawingSurfaceInfo
    extends org.lwjgl.system.Struct
    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 
      Modifier and Type Class Description
      static class  JAWTWin32DrawingSurfaceInfo.Buffer
      An array of JAWTWin32DrawingSurfaceInfo structs.
      • Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer

        org.lwjgl.system.Pointer.Default
      • Nested classes/interfaces inherited from class org.lwjgl.system.Struct

        org.lwjgl.system.Struct.StructValidation
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ALIGNOF
      The struct alignment in bytes.
      static int HBITMAP
      HDC
      HPALETTE
      HWND
      PBITS
      The struct member offsets.
      static int SIZEOF
      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

      Constructors 
      Constructor Description
      JAWTWin32DrawingSurfaceInfo​(java.nio.ByteBuffer container)
      Creates a JAWTWin32DrawingSurfaceInfo instance at the current position of the specified ByteBuffer container.
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • HWND, HBITMAP, PBITS, HDC, HPALETTE

        The struct member offsets.
    • Constructor Detail

      • JAWTWin32DrawingSurfaceInfo

        public JAWTWin32DrawingSurfaceInfo​(java.nio.ByteBuffer container)
        Creates a JAWTWin32DrawingSurfaceInfo instance at the current position of the specified ByteBuffer 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 Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.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 from BeginPaint() or any calls to User32.GetDC(long).
      • hpalette

        public long hpalette()
        the palette handle
      • create

        public static JAWTWin32DrawingSurfaceInfo create​(long address)
        Returns a new JAWTWin32DrawingSurfaceInfo instance for the specified memory address.
      • nhwnd

        public static long nhwnd​(long struct)
        Unsafe version of hwnd().
      • nhbitmap

        public static long nhbitmap​(long struct)
        Unsafe version of hbitmap().
      • npbits

        public static java.nio.ByteBuffer npbits​(long struct,
                                                 int capacity)
        Unsafe version of pbits.
      • nhdc

        public static long nhdc​(long struct)
        Unsafe version of hdc().
      • nhpalette

        public static long nhpalette​(long struct)
        Unsafe version of hpalette().