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.NativeResource
Contains information about a display monitor.Layout
struct MONITORINFOEX { DWORD
cbSize()
;RECT
rcMonitor()
;RECT
rcWork()
; DWORDdwFlags()
; TCHARszDevice()
[32]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MONITORINFOEX.Buffer
An array ofMONITORINFOEX
structs.
-
Constructor Summary
Constructors Constructor Description MONITORINFOEX(java.nio.ByteBuffer container)
Creates aMONITORINFOEX
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static 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, org.lwjgl.system.MemoryStack stack)
Returns a newMONITORINFOEX.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static MONITORINFOEX
calloc(org.lwjgl.system.MemoryStack stack)
Returns a newMONITORINFOEX
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static MONITORINFOEX
callocStack()
Deprecated.static MONITORINFOEX.Buffer
callocStack(int capacity)
Deprecated.static MONITORINFOEX.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.static MONITORINFOEX
callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.int
cbSize()
the size, in bytes, of the structure.MONITORINFOEX
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, org.lwjgl.system.MemoryStack stack)
Returns a newMONITORINFOEX.Buffer
instance allocated on the specifiedMemoryStack
.static MONITORINFOEX
malloc(org.lwjgl.system.MemoryStack stack)
Returns a newMONITORINFOEX
instance allocated on the specifiedMemoryStack
.static MONITORINFOEX
mallocStack()
Deprecated.static MONITORINFOEX.Buffer
mallocStack(int capacity)
Deprecated.static MONITORINFOEX.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.static MONITORINFOEX
mallocStack(org.lwjgl.system.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 java.nio.ByteBuffer
nszDevice(long struct)
Unsafe version ofszDevice()
.static java.lang.String
nszDeviceString(long struct)
Unsafe version ofszDeviceString()
.RECT
rcMonitor()
aRECT
structure that specifies the display monitor rectangle, expressed in virtual-screen coordinates.RECT
rcWork()
aRECT
structure that specifies the work area rectangle of the display monitor that can be used by applications, expressed in virtual-screen coordinates.MONITORINFOEX
set(MONITORINFOEX src)
Copies the specified struct data to this struct.int
sizeof()
java.nio.ByteBuffer
szDevice()
a string that specifies the device name of the monitor being usedjava.lang.String
szDeviceString()
a string that specifies the device name of the monitor being used
-
-
-
Constructor Detail
-
MONITORINFOEX
public MONITORINFOEX(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
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
public RECT 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
public RECT 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, 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 newMONITORINFOEX
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static MONITORINFOEX calloc()
Returns a newMONITORINFOEX
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static MONITORINFOEX create()
Returns a newMONITORINFOEX
instance allocated withBufferUtils
.
-
create
public static MONITORINFOEX create(long address)
Returns a newMONITORINFOEX
instance for the specified memory address.
-
createSafe
@Nullable public static MONITORINFOEX createSafe(long address)
-
malloc
public static MONITORINFOEX.Buffer malloc(int capacity)
Returns a newMONITORINFOEX.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static MONITORINFOEX.Buffer calloc(int capacity)
Returns a newMONITORINFOEX.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static MONITORINFOEX.Buffer create(int capacity)
Returns a newMONITORINFOEX.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static MONITORINFOEX.Buffer create(long address, int capacity)
Create aMONITORINFOEX.Buffer
instance 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 newMONITORINFOEX
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
public static MONITORINFOEX calloc(org.lwjgl.system.MemoryStack stack)
Returns a newMONITORINFOEX
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-
-