Package org.lwjgl.system.windows
Class MONITORINFOEX
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.system.windows.MONITORINFOEX
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class MONITORINFOEX extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceContains information about a display monitor.Layout
struct MONITORINFOEX { DWORDcbSize();RECTrcMonitor();RECTrcWork(); DWORDdwFlags(); TCHARszDevice()[32]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMONITORINFOEX.BufferAn array ofMONITORINFOEXstructs.
-
Constructor Summary
Constructors Constructor Description MONITORINFOEX(java.nio.ByteBuffer container)Creates aMONITORINFOEXinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static 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 MONITORINFOEXcallocStack()Deprecated.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.MONITORINFOEXcbSize(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 MONITORINFOEXcreateSafe(long address)static 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 MONITORINFOEXmallocStack()Deprecated.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 java.nio.ByteBuffernszDevice(long struct)Unsafe version ofszDevice().static java.lang.StringnszDeviceString(long struct)Unsafe version ofszDeviceString().RECTrcMonitor()aRECTstructure that specifies the display monitor rectangle, expressed in virtual-screen coordinates.RECTrcWork()aRECTstructure that specifies the work area rectangle of the display monitor that can be used by applications, expressed in virtual-screen coordinates.MONITORINFOEXset(MONITORINFOEX src)Copies the specified struct data to this struct.intsizeof()java.nio.ByteBufferszDevice()a string that specifies the device name of the monitor being usedjava.lang.StringszDeviceString()a string that specifies the device name of the monitor being used
-
-
-
Constructor Detail
-
MONITORINFOEX
public MONITORINFOEX(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
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
public RECT 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
public RECT 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, szDeviceString
public java.nio.ByteBuffer szDevice() public java.lang.String szDeviceString()
a string that specifies the device name of the monitor being used
-
cbSize
public MONITORINFOEX cbSize(int value)
Sets the specified value to thecbSize()field.
-
set
public MONITORINFOEX set(MONITORINFOEX src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static MONITORINFOEX malloc()
Returns a newMONITORINFOEXinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static MONITORINFOEX calloc()
Returns a newMONITORINFOEXinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static MONITORINFOEX create()
Returns a newMONITORINFOEXinstance allocated withBufferUtils.
-
create
public static MONITORINFOEX create(long address)
Returns a newMONITORINFOEXinstance for the specified memory address.
-
createSafe
@Nullable public static MONITORINFOEX createSafe(long address)
-
malloc
public static MONITORINFOEX.Buffer malloc(int capacity)
Returns a newMONITORINFOEX.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static MONITORINFOEX.Buffer calloc(int capacity)
Returns a newMONITORINFOEX.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static MONITORINFOEX.Buffer create(int capacity)
Returns a newMONITORINFOEX.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static MONITORINFOEX.Buffer create(long address, int capacity)
Create aMONITORINFOEX.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static MONITORINFOEX.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static MONITORINFOEX mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static MONITORINFOEX callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static MONITORINFOEX mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static MONITORINFOEX callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static MONITORINFOEX.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static MONITORINFOEX.Buffer callocStack(int capacity)
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
public static MONITORINFOEX malloc(org.lwjgl.system.MemoryStack stack)
Returns a newMONITORINFOEXinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static MONITORINFOEX calloc(org.lwjgl.system.MemoryStack stack)
Returns a newMONITORINFOEXinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static MONITORINFOEX.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newMONITORINFOEX.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static MONITORINFOEX.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newMONITORINFOEX.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ncbSize
public static int ncbSize(long struct)
Unsafe version ofcbSize().
-
nrcMonitor
public static RECT nrcMonitor(long struct)
Unsafe version ofrcMonitor().
-
ndwFlags
public static int ndwFlags(long struct)
Unsafe version ofdwFlags().
-
nszDevice
public static java.nio.ByteBuffer nszDevice(long struct)
Unsafe version ofszDevice().
-
nszDeviceString
public static java.lang.String nszDeviceString(long struct)
Unsafe version ofszDeviceString().
-
ncbSize
public static void ncbSize(long struct, int value)Unsafe version ofcbSize.
-
-