• Constructor Detail

      • Buffer

        public Buffer​(java.nio.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 Detail

      • 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.
      • showCmd

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

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

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

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