Package org.lwjgl.system.windows
Class MONITORINFOEX
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
Contains information about a display monitor.
Layout
struct MONITORINFOEX {
DWORD cbSize()
;
RECT
rcMonitor()
;
RECT
rcWork()
;
DWORD dwFlags()
;
TCHAR szDevice()
[32];
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionMONITORINFOEX
(ByteBuffer container) Creates aMONITORINFOEX
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic MONITORINFOEX
calloc()
Returns a newMONITORINFOEX
instance allocated withmemCalloc
.static MONITORINFOEX.Buffer
calloc
(int capacity) Returns a newMONITORINFOEX.Buffer
instance allocated withmemCalloc
.static MONITORINFOEX.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newMONITORINFOEX.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static MONITORINFOEX
calloc
(MemoryStack stack) Returns a newMONITORINFOEX
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static MONITORINFOEX
Deprecated.static MONITORINFOEX.Buffer
callocStack
(int capacity) Deprecated.static MONITORINFOEX.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static MONITORINFOEX
callocStack
(MemoryStack stack) Deprecated.int
cbSize()
the size, in bytes, of the structure.cbSize
(int value) Sets the specified value to thecbSize()
field.static MONITORINFOEX
create()
Returns a newMONITORINFOEX
instance allocated withBufferUtils
.static MONITORINFOEX.Buffer
create
(int capacity) Returns a newMONITORINFOEX.Buffer
instance allocated withBufferUtils
.static MONITORINFOEX
create
(long address) Returns a newMONITORINFOEX
instance for the specified memory address.static MONITORINFOEX.Buffer
create
(long address, int capacity) Create aMONITORINFOEX.Buffer
instance at the specified memory.static MONITORINFOEX
createSafe
(long address) static MONITORINFOEX.Buffer
createSafe
(long address, int capacity) int
dwFlags()
the attributes of the display monitor.static MONITORINFOEX
malloc()
Returns a newMONITORINFOEX
instance allocated withmemAlloc
.static MONITORINFOEX.Buffer
malloc
(int capacity) Returns a newMONITORINFOEX.Buffer
instance allocated withmemAlloc
.static MONITORINFOEX.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newMONITORINFOEX.Buffer
instance allocated on the specifiedMemoryStack
.static MONITORINFOEX
malloc
(MemoryStack stack) Returns a newMONITORINFOEX
instance allocated on the specifiedMemoryStack
.static MONITORINFOEX
Deprecated.static MONITORINFOEX.Buffer
mallocStack
(int capacity) Deprecated.static MONITORINFOEX.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static MONITORINFOEX
mallocStack
(MemoryStack stack) Deprecated.static int
ncbSize
(long struct) Unsafe version ofcbSize()
.static void
ncbSize
(long struct, int value) Unsafe version ofcbSize
.static int
ndwFlags
(long struct) Unsafe version ofdwFlags()
.static RECT
nrcMonitor
(long struct) Unsafe version ofrcMonitor()
.static RECT
nrcWork
(long struct) Unsafe version ofrcWork()
.static ByteBuffer
nszDevice
(long struct) Unsafe version ofszDevice()
.static String
nszDeviceString
(long struct) Unsafe version ofszDeviceString()
.aRECT
structure that specifies the display monitor rectangle, expressed in virtual-screen coordinates.rcWork()
aRECT
structure that specifies the work area rectangle of the display monitor that can be used by applications, expressed in virtual-screen coordinates.set
(MONITORINFOEX src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.szDevice()
a string that specifies the device name of the monitor being useda string that specifies the device name of the monitor being usedMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
CBSIZE
public static final int CBSIZEThe struct member offsets. -
RCMONITOR
public static final int RCMONITORThe struct member offsets. -
RCWORK
public static final int RCWORKThe struct member offsets. -
DWFLAGS
public static final int DWFLAGSThe struct member offsets. -
SZDEVICE
public static final int SZDEVICEThe struct member offsets.
-
-
Constructor Details
-
MONITORINFOEX
Creates aMONITORINFOEX
instance at the current position of the specifiedByteBuffer
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<MONITORINFOEX>
-
cbSize
public int cbSize()the size, in bytes, of the structure.Set this member to
SIZEOF
before calling theUser32.GetMonitorInfo(long, org.lwjgl.system.windows.MONITORINFOEX)
function. Doing so lets the function determine the type of structure you are passing to it. -
rcMonitor
aRECT
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
aRECT
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 inrcMonitor
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
public int 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 -
szDeviceString
a string that specifies the device name of the monitor being used -
cbSize
Sets the specified value to thecbSize()
field. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newMONITORINFOEX
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newMONITORINFOEX
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newMONITORINFOEX
instance allocated withBufferUtils
. -
create
Returns a newMONITORINFOEX
instance for the specified memory address. -
createSafe
-
malloc
Returns a newMONITORINFOEX.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newMONITORINFOEX.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newMONITORINFOEX.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aMONITORINFOEX.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newMONITORINFOEX
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newMONITORINFOEX
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newMONITORINFOEX.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newMONITORINFOEX.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
ncbSize
public static int ncbSize(long struct) Unsafe version ofcbSize()
. -
nrcMonitor
Unsafe version ofrcMonitor()
. -
nrcWork
Unsafe version ofrcWork()
. -
ndwFlags
public static int ndwFlags(long struct) Unsafe version ofdwFlags()
. -
nszDevice
Unsafe version ofszDevice()
. -
nszDeviceString
Unsafe version ofszDeviceString()
. -
ncbSize
public static void ncbSize(long struct, int value) Unsafe version ofcbSize
.
-