Class WNDCLASSEX.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<WNDCLASSEX>, NativeResource, Pointer
Enclosing class:
WNDCLASSEX

public static class WNDCLASSEX.Buffer extends StructBuffer<WNDCLASSEX,WNDCLASSEX.Buffer> implements NativeResource
An array of WNDCLASSEX structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new WNDCLASSEX.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by WNDCLASSEX.SIZEOF, and its mark will be undefined.

      The created buffer instance holds a strong reference to the container object.

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • cbSize

      public int cbSize()
      Returns:
      the value of the cbSize field.
    • style

      public int style()
      Returns:
      the value of the style field.
    • lpfnWndProc

      public WindowProc lpfnWndProc()
      Returns:
      the value of the lpfnWndProc field.
    • cbClsExtra

      public int cbClsExtra()
      Returns:
      the value of the cbClsExtra field.
    • cbWndExtra

      public int cbWndExtra()
      Returns:
      the value of the cbWndExtra field.
    • hInstance

      public long hInstance()
      Returns:
      the value of the hInstance field.
    • hIcon

      public long hIcon()
      Returns:
      the value of the hIcon field.
    • hCursor

      public long hCursor()
      Returns:
      the value of the hCursor field.
    • hbrBackground

      public long hbrBackground()
      Returns:
      the value of the hbrBackground field.
    • lpszMenuName

      public @Nullable ByteBuffer lpszMenuName()
      Returns:
      a ByteBuffer view of the null-terminated string pointed to by the lpszMenuName field.
    • lpszMenuNameString

      public @Nullable String lpszMenuNameString()
      Returns:
      the null-terminated string pointed to by the lpszMenuName field.
    • lpszClassName

      public ByteBuffer lpszClassName()
      Returns:
      a ByteBuffer view of the null-terminated string pointed to by the lpszClassName field.
    • lpszClassNameString

      public String lpszClassNameString()
      Returns:
      the null-terminated string pointed to by the lpszClassName field.
    • hIconSm

      public long hIconSm()
      Returns:
      the value of the hIconSm field.
    • cbSize

      public WNDCLASSEX.Buffer cbSize(int value)
      Sets the specified value to the cbSize field.
    • style

      public WNDCLASSEX.Buffer style(int value)
      Sets the specified value to the style field.
    • lpfnWndProc

      public WNDCLASSEX.Buffer lpfnWndProc(WindowProcI value)
      Sets the specified value to the lpfnWndProc field.
    • cbClsExtra

      public WNDCLASSEX.Buffer cbClsExtra(int value)
      Sets the specified value to the cbClsExtra field.
    • cbWndExtra

      public WNDCLASSEX.Buffer cbWndExtra(int value)
      Sets the specified value to the cbWndExtra field.
    • hInstance

      public WNDCLASSEX.Buffer hInstance(long value)
      Sets the specified value to the hInstance field.
    • hIcon

      public WNDCLASSEX.Buffer hIcon(long value)
      Sets the specified value to the hIcon field.
    • hCursor

      public WNDCLASSEX.Buffer hCursor(long value)
      Sets the specified value to the hCursor field.
    • hbrBackground

      public WNDCLASSEX.Buffer hbrBackground(long value)
      Sets the specified value to the hbrBackground field.
    • lpszMenuName

      public WNDCLASSEX.Buffer lpszMenuName(@Nullable ByteBuffer value)
      Sets the address of the specified encoded string to the lpszMenuName field.
    • lpszClassName

      public WNDCLASSEX.Buffer lpszClassName(ByteBuffer value)
      Sets the address of the specified encoded string to the lpszClassName field.
    • hIconSm

      public WNDCLASSEX.Buffer hIconSm(long value)
      Sets the specified value to the hIconSm field.