Class MONITORINFOEX

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

    public class MONITORINFOEX
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Contains information about a display monitor.

    Layout

    
     struct MONITORINFOEX {
         DWORD cbSize();
         RECT rcMonitor();
         RECT rcWork();
         DWORD dwFlags();
         TCHAR szDevice()[32];
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • CBSIZE, RCMONITOR, RCWORK, DWFLAGS, SZDEVICE

        The struct member offsets.
    • Constructor Detail

      • MONITORINFOEX

        public MONITORINFOEX​(java.nio.ByteBuffer container)
        Creates a MONITORINFOEX 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
      • rcMonitor

        public RECT rcMonitor()
        a RECT structure that specifies the display monitor rectangle, expressed in virtual-screen coordinates. Note that if the monitor is not the primary display monitor, some of the rectangle's coordinates may be negative values.
      • rcWork

        public RECT rcWork()
        a RECT structure that specifies the work area rectangle of the display monitor that can be used by applications, expressed in virtual-screen coordinates. Windows uses this rectangle to maximize an application on the monitor. The rest of the area in rcMonitor contains system windows such as the task bar and side bars. Note that if the monitor is not the primary display monitor, some of the rectangle's coordinates may be negative values.
      • szDevice, szDeviceString

        public java.nio.ByteBuffer szDevice()
        
        public java.lang.String szDeviceString()
        
        a string that specifies the device name of the monitor being used
      • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public static MONITORINFOEX.Buffer calloc​(int capacity,
                                                  org.lwjgl.system.MemoryStack stack)
        Returns a new MONITORINFOEX.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
      • ncbSize

        public static int ncbSize​(long struct)
        Unsafe version of cbSize().
      • nrcMonitor

        public static RECT nrcMonitor​(long struct)
        Unsafe version of rcMonitor().
      • nrcWork

        public static RECT nrcWork​(long struct)
        Unsafe version of rcWork().
      • ndwFlags

        public static int ndwFlags​(long struct)
        Unsafe version of dwFlags().
      • nszDevice

        public static java.nio.ByteBuffer nszDevice​(long struct)
        Unsafe version of szDevice().
      • nszDeviceString

        public static java.lang.String nszDeviceString​(long struct)
        Unsafe version of szDeviceString().
      • ncbSize

        public static void ncbSize​(long struct,
                                   int value)
        Unsafe version of cbSize.