Class WINDOWPLACEMENT.Buffer

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

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

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new WINDOWPLACEMENT.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 WINDOWPLACEMENT.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

    • length

      public int length()
      Returns:
      the value of the length field.
    • flags

      public int flags()
      Returns:
      the value of the flags field.
    • showCmd

      public int showCmd()
      Returns:
      the value of the showCmd field.
    • ptMinPosition

      public POINT ptMinPosition()
      Returns:
      a POINT view of the ptMinPosition field.
    • ptMaxPosition

      public POINT ptMaxPosition()
      Returns:
      a POINT view of the ptMaxPosition field.
    • rcNormalPosition

      public RECT rcNormalPosition()
      Returns:
      a RECT view of the rcNormalPosition field.
    • length

      public WINDOWPLACEMENT.Buffer length(int value)
      Sets the specified value to the length field.
    • flags

      public WINDOWPLACEMENT.Buffer flags(int value)
      Sets the specified value to the flags field.
    • showCmd

      public WINDOWPLACEMENT.Buffer showCmd(int value)
      Sets the specified value to the showCmd field.
    • ptMinPosition

      public WINDOWPLACEMENT.Buffer ptMinPosition(POINT value)
      Copies the specified POINT to the ptMinPosition field.
    • ptMinPosition

      public WINDOWPLACEMENT.Buffer ptMinPosition(Consumer<POINT> consumer)
      Passes the ptMinPosition field to the specified Consumer.
    • ptMaxPosition

      public WINDOWPLACEMENT.Buffer ptMaxPosition(POINT value)
      Copies the specified POINT to the ptMaxPosition field.
    • ptMaxPosition

      public WINDOWPLACEMENT.Buffer ptMaxPosition(Consumer<POINT> consumer)
      Passes the ptMaxPosition field to the specified Consumer.
    • rcNormalPosition

      public WINDOWPLACEMENT.Buffer rcNormalPosition(RECT value)
      Copies the specified RECT to the rcNormalPosition field.
    • rcNormalPosition

      public WINDOWPLACEMENT.Buffer rcNormalPosition(Consumer<RECT> consumer)
      Passes the rcNormalPosition field to the specified Consumer.