public class MONITORINFOEX
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
cbSize –
the size, in bytes, of the structure.
Set this member to 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_PRIMARYszDevice[32] – a string that specifies the device name of the monitor being used
struct MONITORINFOEX {
DWORD cbSize;
RECT rcMonitor;
RECT rcWork;
DWORD dwFlags;
TCHAR szDevice[32];
}| Modifier and Type | Class and Description |
|---|---|
static class |
MONITORINFOEX.Buffer
An array of
MONITORINFOEX structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
CBSIZE
The struct member offsets.
|
static int |
DWFLAGS
The struct member offsets.
|
static int |
RCMONITOR
The struct member offsets.
|
static int |
RCWORK
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
SZDEVICE
The struct member offsets.
|
| Constructor and Description |
|---|
MONITORINFOEX(java.nio.ByteBuffer container)
Creates a
MONITORINFOEX instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static MONITORINFOEX |
calloc()
Returns a new
MONITORINFOEX instance allocated with memCalloc. |
static MONITORINFOEX.Buffer |
calloc(int capacity)
Returns a new
MONITORINFOEX.Buffer instance allocated with memCalloc. |
static MONITORINFOEX |
callocStack()
Returns a new
MONITORINFOEX instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static MONITORINFOEX.Buffer |
callocStack(int capacity)
Returns a new
MONITORINFOEX.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static MONITORINFOEX.Buffer |
callocStack(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. |
static MONITORINFOEX |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
MONITORINFOEX instance allocated on the specified MemoryStack and initializes all its bits to zero. |
int |
cbSize()
Returns the value of the
cbSize field. |
MONITORINFOEX |
cbSize(int value)
Sets the specified value to the
cbSize field. |
static MONITORINFOEX |
create()
Returns a new
MONITORINFOEX instance allocated with BufferUtils. |
static MONITORINFOEX.Buffer |
create(int capacity)
Returns a new
MONITORINFOEX.Buffer instance allocated with BufferUtils. |
static MONITORINFOEX |
create(long address)
Returns a new
MONITORINFOEX instance for the specified memory address. |
static MONITORINFOEX.Buffer |
create(long address,
int capacity)
Create a
MONITORINFOEX.Buffer instance at the specified memory. |
static MONITORINFOEX |
createSafe(long address)
|
static MONITORINFOEX.Buffer |
createSafe(long address,
int capacity)
|
int |
dwFlags()
Returns the value of the
dwFlags field. |
static MONITORINFOEX |
malloc()
Returns a new
MONITORINFOEX instance allocated with memAlloc. |
static MONITORINFOEX.Buffer |
malloc(int capacity)
Returns a new
MONITORINFOEX.Buffer instance allocated with memAlloc. |
static MONITORINFOEX |
mallocStack()
Returns a new
MONITORINFOEX instance allocated on the thread-local MemoryStack. |
static MONITORINFOEX.Buffer |
mallocStack(int capacity)
Returns a new
MONITORINFOEX.Buffer instance allocated on the thread-local MemoryStack. |
static MONITORINFOEX.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
MONITORINFOEX.Buffer instance allocated on the specified MemoryStack. |
static MONITORINFOEX |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
MONITORINFOEX instance allocated on the specified MemoryStack. |
static int |
ncbSize(long struct)
Unsafe version of
cbSize(). |
static void |
ncbSize(long struct,
int value)
Unsafe version of
cbSize. |
static int |
ndwFlags(long struct)
Unsafe version of
dwFlags(). |
static RECT |
nrcMonitor(long struct)
Unsafe version of
rcMonitor(). |
static RECT |
nrcWork(long struct)
Unsafe version of
rcWork(). |
static java.nio.ByteBuffer |
nszDevice(long struct)
Unsafe version of
szDevice(). |
static java.lang.String |
nszDeviceString(long struct)
Unsafe version of
szDeviceString(). |
RECT |
rcMonitor()
Returns a
RECT view of the rcMonitor field. |
RECT |
rcWork()
Returns a
RECT view of the rcWork field. |
MONITORINFOEX |
set(MONITORINFOEX src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
java.nio.ByteBuffer |
szDevice()
Returns a
ByteBuffer view of the szDevice field. |
java.lang.String |
szDeviceString()
Decodes the null-terminated string stored in the
szDevice field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int CBSIZE
public static final int RCMONITOR
public static final int RCWORK
public static final int DWFLAGS
public static final int SZDEVICE
public MONITORINFOEX(java.nio.ByteBuffer container)
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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int cbSize()
cbSize field.public int dwFlags()
dwFlags field.public java.nio.ByteBuffer szDevice()
ByteBuffer view of the szDevice field.public java.lang.String szDeviceString()
szDevice field.public MONITORINFOEX cbSize(int value)
cbSize field.public MONITORINFOEX set(MONITORINFOEX src)
src - the source structpublic static MONITORINFOEX malloc()
MONITORINFOEX instance allocated with memAlloc. The instance must be explicitly freed.public static MONITORINFOEX calloc()
MONITORINFOEX instance allocated with memCalloc. The instance must be explicitly freed.public static MONITORINFOEX create()
MONITORINFOEX instance allocated with BufferUtils.public static MONITORINFOEX create(long address)
MONITORINFOEX instance for the specified memory address.@Nullable public static MONITORINFOEX createSafe(long address)
public static MONITORINFOEX.Buffer malloc(int capacity)
MONITORINFOEX.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static MONITORINFOEX.Buffer calloc(int capacity)
MONITORINFOEX.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static MONITORINFOEX.Buffer create(int capacity)
MONITORINFOEX.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static MONITORINFOEX.Buffer create(long address, int capacity)
MONITORINFOEX.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static MONITORINFOEX.Buffer createSafe(long address, int capacity)
public static MONITORINFOEX mallocStack()
MONITORINFOEX instance allocated on the thread-local MemoryStack.public static MONITORINFOEX callocStack()
MONITORINFOEX instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static MONITORINFOEX mallocStack(org.lwjgl.system.MemoryStack stack)
MONITORINFOEX instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static MONITORINFOEX callocStack(org.lwjgl.system.MemoryStack stack)
MONITORINFOEX instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static MONITORINFOEX.Buffer mallocStack(int capacity)
MONITORINFOEX.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static MONITORINFOEX.Buffer callocStack(int capacity)
MONITORINFOEX.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static MONITORINFOEX.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
MONITORINFOEX.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static MONITORINFOEX.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
MONITORINFOEX.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int ncbSize(long struct)
cbSize().public static RECT nrcMonitor(long struct)
rcMonitor().public static int ndwFlags(long struct)
dwFlags().public static java.nio.ByteBuffer nszDevice(long struct)
szDevice().public static java.lang.String nszDeviceString(long struct)
szDeviceString().public static void ncbSize(long struct,
int value)
cbSize.Copyright LWJGL. All Rights Reserved. License terms.