Package org.lwjgl.system.windows
Class MONITORINFOEX
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct MONITORINFOEX {
DWORD cbSize;
{@link RECT RECT} rcMonitor;
{@link RECT RECT} rcWork;
DWORD dwFlags;
TCHAR szDevice[32];
}
-
Nested Class Summary
Nested ClassesNested 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
FieldsModifier 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
ConstructorsConstructorDescriptionMONITORINFOEX
(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()
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 @Nullable MONITORINFOEX
createSafe
(long address) static @Nullable MONITORINFOEX.Buffer
createSafe
(long address, int capacity) int
dwFlags()
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()
.rcWork()
set
(MONITORINFOEX src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.szDevice()
Methods 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()- Returns:
- the value of the
cbSize
field.
-
rcMonitor
- Returns:
- a
RECT
view of thercMonitor
field.
-
rcWork
- Returns:
- a
RECT
view of thercWork
field.
-
dwFlags
public int dwFlags()- Returns:
- the value of the
dwFlags
field.
-
szDevice
- Returns:
- a
ByteBuffer
view of theszDevice
field.
-
szDeviceString
- Returns:
- the null-terminated string stored in the
szDevice
field.
-
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
.
-