Package org.lwjgl.system.windows
Class DISPLAY_DEVICE
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<DISPLAY_DEVICE>
org.lwjgl.system.windows.DISPLAY_DEVICE
- All Implemented Interfaces:
AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class DISPLAY_DEVICE
extends org.lwjgl.system.Struct<DISPLAY_DEVICE>
implements org.lwjgl.system.NativeResource
Receives information about the display device specified by the
iDevNum
parameter of the User32.EnumDisplayDevices(java.nio.ByteBuffer, int, org.lwjgl.system.windows.DISPLAY_DEVICE, int)
function.
The four string members are set based on the parameters passed to EnumDisplayDevices
. If the lpDevice
param is NULL
, then
DISPLAY_DEVICE
is filled in with information about the display adapter(s). If it is a valid device name, then it is filled in with information
about the monitor(s) for that device.
Layout
struct DISPLAY_DEVICE {
DWORD cb()
;
TCHAR DeviceName()
[32];
TCHAR DeviceString()
[128];
DWORD StateFlags()
;
TCHAR DeviceID()
[128];
TCHAR DeviceKey()
[128];
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default
-
Field Summary
Modifier 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 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
ConstructorDescriptionDISPLAY_DEVICE
(ByteBuffer container) Creates aDISPLAY_DEVICE
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic DISPLAY_DEVICE
calloc()
Returns a newDISPLAY_DEVICE
instance allocated withmemCalloc
.static DISPLAY_DEVICE.Buffer
calloc
(int capacity) Returns a newDISPLAY_DEVICE.Buffer
instance allocated withmemCalloc
.static DISPLAY_DEVICE.Buffer
calloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newDISPLAY_DEVICE.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static DISPLAY_DEVICE
calloc
(org.lwjgl.system.MemoryStack stack) Returns a newDISPLAY_DEVICE
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static DISPLAY_DEVICE
Deprecated.static DISPLAY_DEVICE.Buffer
callocStack
(int capacity) Deprecated.static DISPLAY_DEVICE.Buffer
callocStack
(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static DISPLAY_DEVICE
callocStack
(org.lwjgl.system.MemoryStack stack) Deprecated.int
cb()
size, in bytes, of theDISPLAY_DEVICE
structure.cb
(int value) Sets the specified value to thecb()
field.static DISPLAY_DEVICE
create()
Returns a newDISPLAY_DEVICE
instance allocated withBufferUtils
.static DISPLAY_DEVICE.Buffer
create
(int capacity) Returns a newDISPLAY_DEVICE.Buffer
instance allocated withBufferUtils
.static DISPLAY_DEVICE
create
(long address) Returns a newDISPLAY_DEVICE
instance for the specified memory address.static DISPLAY_DEVICE.Buffer
create
(long address, int capacity) Create aDISPLAY_DEVICE.Buffer
instance at the specified memory.static DISPLAY_DEVICE
createSafe
(long address) static DISPLAY_DEVICE.Buffer
createSafe
(long address, int capacity) DeviceID()
not usednot usedreservedreservedan array of characters identifying the device name.an array of characters identifying the device name.an array of characters containing the device context string.an array of characters containing the device context string.static DISPLAY_DEVICE
malloc()
Returns a newDISPLAY_DEVICE
instance allocated withmemAlloc
.static DISPLAY_DEVICE.Buffer
malloc
(int capacity) Returns a newDISPLAY_DEVICE.Buffer
instance allocated withmemAlloc
.static DISPLAY_DEVICE.Buffer
malloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newDISPLAY_DEVICE.Buffer
instance allocated on the specifiedMemoryStack
.static DISPLAY_DEVICE
malloc
(org.lwjgl.system.MemoryStack stack) Returns a newDISPLAY_DEVICE
instance allocated on the specifiedMemoryStack
.static DISPLAY_DEVICE
Deprecated.static DISPLAY_DEVICE.Buffer
mallocStack
(int capacity) Deprecated.static DISPLAY_DEVICE.Buffer
mallocStack
(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static DISPLAY_DEVICE
mallocStack
(org.lwjgl.system.MemoryStack stack) Deprecated.static int
ncb
(long struct) Unsafe version ofcb()
.static void
ncb
(long struct, int value) Unsafe version ofcb
.static ByteBuffer
nDeviceID
(long struct) Unsafe version ofDeviceID()
.static String
nDeviceIDString
(long struct) Unsafe version ofDeviceIDString()
.static ByteBuffer
nDeviceKey
(long struct) Unsafe version ofDeviceKey()
.static String
nDeviceKeyString
(long struct) Unsafe version ofDeviceKeyString()
.static ByteBuffer
nDeviceName
(long struct) Unsafe version ofDeviceName()
.static String
nDeviceNameString
(long struct) Unsafe version ofDeviceNameString()
.static ByteBuffer
nDeviceString
(long struct) Unsafe version ofDeviceString()
.static String
nDeviceStringString
(long struct) Unsafe version ofDeviceStringString()
.static int
nStateFlags
(long struct) Unsafe version ofStateFlags()
.set
(DISPLAY_DEVICE src) Copies the specified struct data to this struct.int
sizeof()
int
device state flagsMethods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate
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. -
CB
public static final int CBThe struct member offsets. -
DEVICENAME
public static final int DEVICENAMEThe struct member offsets. -
DEVICESTRING
public static final int DEVICESTRINGThe struct member offsets. -
STATEFLAGS
public static final int STATEFLAGSThe struct member offsets. -
DEVICEID
public static final int DEVICEIDThe struct member offsets. -
DEVICEKEY
public static final int DEVICEKEYThe struct member offsets.
-
-
Constructor Details
-
DISPLAY_DEVICE
Creates aDISPLAY_DEVICE
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()- Specified by:
sizeof
in classorg.lwjgl.system.Struct<DISPLAY_DEVICE>
-
cb
public int cb()size, in bytes, of theDISPLAY_DEVICE
structure. This must be initialized prior to callingUser32.EnumDisplayDevices(java.nio.ByteBuffer, int, org.lwjgl.system.windows.DISPLAY_DEVICE, int)
. -
DeviceName
an array of characters identifying the device name. This is either the adapter device or the monitor device. -
DeviceNameString
an array of characters identifying the device name. This is either the adapter device or the monitor device. -
DeviceString
an array of characters containing the device context string. This is either a description of the display adapter or of the display monitor. -
DeviceStringString
an array of characters containing the device context string. This is either a description of the display adapter or of the display monitor. -
StateFlags
public int StateFlags()device state flags -
DeviceID
not used -
DeviceIDString
not used -
DeviceKey
reserved -
DeviceKeyString
reserved -
cb
Sets the specified value to thecb()
field. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newDISPLAY_DEVICE
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newDISPLAY_DEVICE
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newDISPLAY_DEVICE
instance allocated withBufferUtils
. -
create
Returns a newDISPLAY_DEVICE
instance for the specified memory address. -
createSafe
-
malloc
Returns a newDISPLAY_DEVICE.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newDISPLAY_DEVICE.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newDISPLAY_DEVICE.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aDISPLAY_DEVICE.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 public static DISPLAY_DEVICE.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 DISPLAY_DEVICE.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newDISPLAY_DEVICE
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newDISPLAY_DEVICE
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newDISPLAY_DEVICE.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newDISPLAY_DEVICE.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
ncb
public static int ncb(long struct) Unsafe version ofcb()
. -
nDeviceName
Unsafe version ofDeviceName()
. -
nDeviceNameString
Unsafe version ofDeviceNameString()
. -
nDeviceString
Unsafe version ofDeviceString()
. -
nDeviceStringString
Unsafe version ofDeviceStringString()
. -
nStateFlags
public static int nStateFlags(long struct) Unsafe version ofStateFlags()
. -
nDeviceID
Unsafe version ofDeviceID()
. -
nDeviceIDString
Unsafe version ofDeviceIDString()
. -
nDeviceKey
Unsafe version ofDeviceKey()
. -
nDeviceKeyString
Unsafe version ofDeviceKeyString()
. -
ncb
public static void ncb(long struct, int value) Unsafe version ofcb
.
-