Class WINDOWPLACEMENT

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • LENGTH, FLAGS, SHOWCMD, PTMINPOSITION, PTMAXPOSITION, RCNORMALPOSITION

        The struct member offsets.
    • Constructor Detail

      • WINDOWPLACEMENT

        public WINDOWPLACEMENT​(java.nio.ByteBuffer container)
        Creates a WINDOWPLACEMENT 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()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • 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.
      • ptMinPosition

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

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

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

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

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

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

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

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

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

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

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

        public WINDOWPLACEMENT set​(int length,
                                   int flags,
                                   int showCmd,
                                   POINT ptMinPosition,
                                   POINT ptMaxPosition,
                                   RECT rcNormalPosition)
        Initializes this struct with the specified values.
      • set

        public WINDOWPLACEMENT set​(WINDOWPLACEMENT src)
        Copies the specified struct data to this struct.
        Parameters:
        src - the source struct
        Returns:
        this struct
      • createSafe

        @Nullable
        public static WINDOWPLACEMENT createSafe​(long address)
        Like create, but returns null if address is NULL.
      • create

        public static WINDOWPLACEMENT.Buffer create​(long address,
                                                    int capacity)
        Create a WINDOWPLACEMENT.Buffer instance at the specified memory.
        Parameters:
        address - the memory address
        capacity - the buffer capacity
      • createSafe

        @Nullable
        public static WINDOWPLACEMENT.Buffer createSafe​(long address,
                                                        int capacity)
        Like create, but returns null if address is NULL.
      • nlength

        public static int nlength​(long struct)
        Unsafe version of length().
      • nflags

        public static int nflags​(long struct)
        Unsafe version of flags().
      • nshowCmd

        public static int nshowCmd​(long struct)
        Unsafe version of showCmd().
      • nptMinPosition

        public static POINT nptMinPosition​(long struct)
        Unsafe version of ptMinPosition().
      • nptMaxPosition

        public static POINT nptMaxPosition​(long struct)
        Unsafe version of ptMaxPosition().
      • nrcNormalPosition

        public static RECT nrcNormalPosition​(long struct)
        Unsafe version of rcNormalPosition().
      • nlength

        public static void nlength​(long struct,
                                   int value)
        Unsafe version of length.
      • nflags

        public static void nflags​(long struct,
                                  int value)
        Unsafe version of flags.
      • nshowCmd

        public static void nshowCmd​(long struct,
                                    int value)
        Unsafe version of showCmd.
      • nptMinPosition

        public static void nptMinPosition​(long struct,
                                          POINT value)
        Unsafe version of ptMinPosition.
      • nptMaxPosition

        public static void nptMaxPosition​(long struct,
                                          POINT value)
        Unsafe version of ptMaxPosition.
      • nrcNormalPosition

        public static void nrcNormalPosition​(long struct,
                                             RECT value)
        Unsafe version of rcNormalPosition.