Class MONITORINFOEX

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


    public class MONITORINFOEX
    extends Struct
    Contains information about a display monitor.

    Member documentation

    • cbSize – the size, in bytes, of the structure.

      Set this member to MONITORINFOEX.SIZEOF before calling the User32.GetMonitorInfo(long, org.lwjgl.system.windows.MONITORINFOEX) function. Doing so lets the function determine the type of structure you are passing to it.

    • 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 – 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.
    • dwFlags – the attributes of the display monitor. May be:
      User32.MONITORINFOF_PRIMARY
    • szDevice – a string that specifies the device name of the monitor being used

    Layout

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

      • SIZEOF

        public static final int SIZEOF
        The struct size in bytes.
    • 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.