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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe 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 aMONITORINFOEXinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic MONITORINFOEXcalloc()Returns a newMONITORINFOEXinstance allocated withmemCalloc.static MONITORINFOEX.Buffercalloc(int capacity) Returns a newMONITORINFOEX.Bufferinstance allocated withmemCalloc.static MONITORINFOEX.Buffercalloc(int capacity, MemoryStack stack) Returns a newMONITORINFOEX.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static MONITORINFOEXcalloc(MemoryStack stack) Returns a newMONITORINFOEXinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static MONITORINFOEXDeprecated.static MONITORINFOEX.BuffercallocStack(int capacity) Deprecated.static MONITORINFOEX.BuffercallocStack(int capacity, MemoryStack stack) Deprecated.static MONITORINFOEXcallocStack(MemoryStack stack) Deprecated.intcbSize()cbSize(int value) Sets the specified value to thecbSizefield.static MONITORINFOEXcreate()Returns a newMONITORINFOEXinstance allocated withBufferUtils.static MONITORINFOEX.Buffercreate(int capacity) Returns a newMONITORINFOEX.Bufferinstance allocated withBufferUtils.static MONITORINFOEXcreate(long address) Returns a newMONITORINFOEXinstance for the specified memory address.static MONITORINFOEX.Buffercreate(long address, int capacity) Create aMONITORINFOEX.Bufferinstance at the specified memory.static @Nullable MONITORINFOEXcreateSafe(long address) static @Nullable MONITORINFOEX.BuffercreateSafe(long address, int capacity) intdwFlags()static MONITORINFOEXmalloc()Returns a newMONITORINFOEXinstance allocated withmemAlloc.static MONITORINFOEX.Buffermalloc(int capacity) Returns a newMONITORINFOEX.Bufferinstance allocated withmemAlloc.static MONITORINFOEX.Buffermalloc(int capacity, MemoryStack stack) Returns a newMONITORINFOEX.Bufferinstance allocated on the specifiedMemoryStack.static MONITORINFOEXmalloc(MemoryStack stack) Returns a newMONITORINFOEXinstance allocated on the specifiedMemoryStack.static MONITORINFOEXDeprecated.static MONITORINFOEX.BuffermallocStack(int capacity) Deprecated.static MONITORINFOEX.BuffermallocStack(int capacity, MemoryStack stack) Deprecated.static MONITORINFOEXmallocStack(MemoryStack stack) Deprecated.static intncbSize(long struct) Unsafe version ofcbSize().static voidncbSize(long struct, int value) Unsafe version ofcbSize.static intndwFlags(long struct) Unsafe version ofdwFlags().static RECTnrcMonitor(long struct) Unsafe version ofrcMonitor().static RECTnrcWork(long struct) Unsafe version ofrcWork().static ByteBuffernszDevice(long struct) Unsafe version ofszDevice().static StringnszDeviceString(long struct) Unsafe version ofszDeviceString().rcWork()set(MONITORINFOEX src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).szDevice()Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 aMONITORINFOEXinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<MONITORINFOEX>
-
cbSize
public int cbSize()- Returns:
- the value of the
cbSizefield.
-
rcMonitor
- Returns:
- a
RECTview of thercMonitorfield.
-
rcWork
- Returns:
- a
RECTview of thercWorkfield.
-
dwFlags
public int dwFlags()- Returns:
- the value of the
dwFlagsfield.
-
szDevice
- Returns:
- a
ByteBufferview of theszDevicefield.
-
szDeviceString
- Returns:
- the null-terminated string stored in the
szDevicefield.
-
cbSize
Sets the specified value to thecbSizefield. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newMONITORINFOEXinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newMONITORINFOEXinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newMONITORINFOEXinstance allocated withBufferUtils. -
create
Returns a newMONITORINFOEXinstance for the specified memory address. -
createSafe
-
malloc
Returns a newMONITORINFOEX.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newMONITORINFOEX.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newMONITORINFOEX.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aMONITORINFOEX.Bufferinstance 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 newMONITORINFOEXinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newMONITORINFOEXinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newMONITORINFOEX.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newMONITORINFOEX.Bufferinstance allocated on the specifiedMemoryStackand 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.
-