Class WINDOWPLACEMENT

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

    public class WINDOWPLACEMENT
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Contains information about the placement of a window on the screen.

    Layout

    
     struct WINDOWPLACEMENT {
         UINT length();
         UINT flags();
         UINT showCmd();
         POINT ptMinPosition();
         POINT ptMaxPosition();
         RECT rcNormalPosition();
     }
    • 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()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • showCmd

        public int showCmd()
        the current show state of the window
      • ptMinPosition

        public POINT ptMinPosition()
        the coordinates of the window's upper-left corner when the window is minimized
      • ptMaxPosition

        public POINT ptMaxPosition()
        the coordinates of the window's upper-left corner when the window is maximized
      • rcNormalPosition

        public RECT rcNormalPosition()
        the window's coordinates when the window is in the restored position
      • 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
      • malloc

        public static WINDOWPLACEMENT malloc()
        Returns a new WINDOWPLACEMENT instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static WINDOWPLACEMENT calloc()
        Returns a new WINDOWPLACEMENT instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static WINDOWPLACEMENT create()
        Returns a new WINDOWPLACEMENT instance allocated with BufferUtils.
      • create

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

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

        public static WINDOWPLACEMENT.Buffer malloc​(int capacity)
        Returns a new WINDOWPLACEMENT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
        Parameters:
        capacity - the buffer capacity
      • calloc

        public static WINDOWPLACEMENT.Buffer calloc​(int capacity)
        Returns a new WINDOWPLACEMENT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
        Parameters:
        capacity - the buffer capacity
      • 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.
      • mallocStack

        @Deprecated
        public static WINDOWPLACEMENT mallocStack​(org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
      • callocStack

        @Deprecated
        public static WINDOWPLACEMENT callocStack​(org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
      • malloc

        public static WINDOWPLACEMENT malloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new WINDOWPLACEMENT instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • calloc

        public static WINDOWPLACEMENT calloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new WINDOWPLACEMENT instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • malloc

        public static WINDOWPLACEMENT.Buffer malloc​(int capacity,
                                                    org.lwjgl.system.MemoryStack stack)
        Returns a new WINDOWPLACEMENT.Buffer instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • calloc

        public static WINDOWPLACEMENT.Buffer calloc​(int capacity,
                                                    org.lwjgl.system.MemoryStack stack)
        Returns a new WINDOWPLACEMENT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • 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.