Package org.lwjgl.system.windows
Class MONITORINFOEX
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<MONITORINFOEX>
org.lwjgl.system.windows.MONITORINFOEX
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class MONITORINFOEX
extends org.lwjgl.system.Struct<MONITORINFOEX>
implements org.lwjgl.system.NativeResource
Contains information about a display monitor.
Layout
struct MONITORINFOEX {
DWORD cbSize();
RECT rcMonitor();
RECT rcWork();
DWORD dwFlags();
TCHAR szDevice()[32];
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.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, org.lwjgl.system.MemoryStack stack) Returns a newMONITORINFOEX.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static MONITORINFOEXcalloc(org.lwjgl.system.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, org.lwjgl.system.MemoryStack stack) Deprecated.static MONITORINFOEXcallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.intcbSize()the size, in bytes, of the structure.cbSize(int value) Sets the specified value to thecbSize()field.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()the attributes of the display monitor.static MONITORINFOEXmalloc()Returns a newMONITORINFOEXinstance allocated withmemAlloc.static MONITORINFOEX.Buffermalloc(int capacity) Returns a newMONITORINFOEX.Bufferinstance allocated withmemAlloc.static MONITORINFOEX.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newMONITORINFOEX.Bufferinstance allocated on the specifiedMemoryStack.static MONITORINFOEXmalloc(org.lwjgl.system.MemoryStack stack) Returns a newMONITORINFOEXinstance allocated on the specifiedMemoryStack.static MONITORINFOEXDeprecated.static MONITORINFOEX.BuffermallocStack(int capacity) Deprecated.static MONITORINFOEX.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static MONITORINFOEXmallocStack(org.lwjgl.system.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().aRECTstructure that specifies the display monitor rectangle, expressed in virtual-screen coordinates.rcWork()aRECTstructure 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.intsizeof()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.Struct
clear, free, isNull, validate, validateMethods 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()- Specified by:
sizeofin classorg.lwjgl.system.Struct<MONITORINFOEX>
-
cbSize
public int cbSize()the size, in bytes, of the structure.Set this member to
SIZEOFbefore 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
aRECTstructure 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
aRECTstructure 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 inrcMonitorcontains 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 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 public static MONITORINFOEX.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
@Deprecated public static MONITORINFOEX.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) 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.
-