public class DISPLAY_DEVICE
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
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.
cb – size, in bytes, of the DISPLAY_DEVICE structure. This must be initialized prior to calling User32.EnumDisplayDevices(java.nio.ByteBuffer, int, org.lwjgl.system.windows.DISPLAY_DEVICE, int).DeviceName[32] – an array of characters identifying the device name. This is either the adapter device or the monitor device.DeviceString[128] – an array of characters containing the device context string. This is either a description of the display adapter or of the display monitor.StateFlags – device state flagsDeviceID[128] – not usedDeviceKey[128] – reserved
struct DISPLAY_DEVICE {
DWORD cb;
TCHAR DeviceName[32];
TCHAR DeviceString[128];
DWORD StateFlags;
TCHAR DeviceID[128];
TCHAR DeviceKey[128];
}| Modifier and Type | Class and Description |
|---|---|
static class |
DISPLAY_DEVICE.Buffer
An array of
DISPLAY_DEVICE structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
CB
The struct member offsets.
|
static int |
DEVICEID
The struct member offsets.
|
static int |
DEVICEKEY
The struct member offsets.
|
static int |
DEVICENAME
The struct member offsets.
|
static int |
DEVICESTRING
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STATEFLAGS
The struct member offsets.
|
| Constructor and Description |
|---|
DISPLAY_DEVICE(java.nio.ByteBuffer container)
Creates a
DISPLAY_DEVICE instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static DISPLAY_DEVICE |
calloc()
Returns a new
DISPLAY_DEVICE instance allocated with memCalloc. |
static DISPLAY_DEVICE.Buffer |
calloc(int capacity)
Returns a new
DISPLAY_DEVICE.Buffer instance allocated with memCalloc. |
static DISPLAY_DEVICE |
callocStack()
Returns a new
DISPLAY_DEVICE instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static DISPLAY_DEVICE.Buffer |
callocStack(int capacity)
Returns a new
DISPLAY_DEVICE.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static DISPLAY_DEVICE.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
DISPLAY_DEVICE.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static DISPLAY_DEVICE |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
DISPLAY_DEVICE instance allocated on the specified MemoryStack and initializes all its bits to zero. |
int |
cb()
Returns the value of the
cb field. |
DISPLAY_DEVICE |
cb(int value)
Sets the specified value to the
cb field. |
static DISPLAY_DEVICE |
create()
Returns a new
DISPLAY_DEVICE instance allocated with BufferUtils. |
static DISPLAY_DEVICE.Buffer |
create(int capacity)
Returns a new
DISPLAY_DEVICE.Buffer instance allocated with BufferUtils. |
static DISPLAY_DEVICE |
create(long address)
Returns a new
DISPLAY_DEVICE instance for the specified memory address. |
static DISPLAY_DEVICE.Buffer |
create(long address,
int capacity)
Create a
DISPLAY_DEVICE.Buffer instance at the specified memory. |
static DISPLAY_DEVICE |
createSafe(long address)
|
static DISPLAY_DEVICE.Buffer |
createSafe(long address,
int capacity)
|
java.nio.ByteBuffer |
DeviceID()
Returns a
ByteBuffer view of the DeviceID field. |
java.lang.String |
DeviceIDString()
Decodes the null-terminated string stored in the
DeviceID field. |
java.nio.ByteBuffer |
DeviceKey()
Returns a
ByteBuffer view of the DeviceKey field. |
java.lang.String |
DeviceKeyString()
Decodes the null-terminated string stored in the
DeviceKey field. |
java.nio.ByteBuffer |
DeviceName()
Returns a
ByteBuffer view of the DeviceName field. |
java.lang.String |
DeviceNameString()
Decodes the null-terminated string stored in the
DeviceName field. |
java.nio.ByteBuffer |
DeviceString()
Returns a
ByteBuffer view of the DeviceString field. |
java.lang.String |
DeviceStringString()
Decodes the null-terminated string stored in the
DeviceString field. |
static DISPLAY_DEVICE |
malloc()
Returns a new
DISPLAY_DEVICE instance allocated with memAlloc. |
static DISPLAY_DEVICE.Buffer |
malloc(int capacity)
Returns a new
DISPLAY_DEVICE.Buffer instance allocated with memAlloc. |
static DISPLAY_DEVICE |
mallocStack()
Returns a new
DISPLAY_DEVICE instance allocated on the thread-local MemoryStack. |
static DISPLAY_DEVICE.Buffer |
mallocStack(int capacity)
Returns a new
DISPLAY_DEVICE.Buffer instance allocated on the thread-local MemoryStack. |
static DISPLAY_DEVICE.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
DISPLAY_DEVICE.Buffer instance allocated on the specified MemoryStack. |
static DISPLAY_DEVICE |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
DISPLAY_DEVICE instance allocated on the specified MemoryStack. |
static int |
ncb(long struct)
Unsafe version of
cb(). |
static void |
ncb(long struct,
int value)
Unsafe version of
cb. |
static java.nio.ByteBuffer |
nDeviceID(long struct)
Unsafe version of
DeviceID(). |
static java.lang.String |
nDeviceIDString(long struct)
Unsafe version of
DeviceIDString(). |
static java.nio.ByteBuffer |
nDeviceKey(long struct)
Unsafe version of
DeviceKey(). |
static java.lang.String |
nDeviceKeyString(long struct)
Unsafe version of
DeviceKeyString(). |
static java.nio.ByteBuffer |
nDeviceName(long struct)
Unsafe version of
DeviceName(). |
static java.lang.String |
nDeviceNameString(long struct)
Unsafe version of
DeviceNameString(). |
static java.nio.ByteBuffer |
nDeviceString(long struct)
Unsafe version of
DeviceString(). |
static java.lang.String |
nDeviceStringString(long struct)
Unsafe version of
DeviceStringString(). |
static int |
nStateFlags(long struct)
Unsafe version of
StateFlags(). |
DISPLAY_DEVICE |
set(DISPLAY_DEVICE src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
StateFlags()
Returns the value of the
StateFlags field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int CB
public static final int DEVICENAME
public static final int DEVICESTRING
public static final int STATEFLAGS
public static final int DEVICEID
public static final int DEVICEKEY
public DISPLAY_DEVICE(java.nio.ByteBuffer container)
DISPLAY_DEVICE instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int cb()
cb field.public java.nio.ByteBuffer DeviceName()
ByteBuffer view of the DeviceName field.public java.lang.String DeviceNameString()
DeviceName field.public java.nio.ByteBuffer DeviceString()
ByteBuffer view of the DeviceString field.public java.lang.String DeviceStringString()
DeviceString field.public int StateFlags()
StateFlags field.public java.nio.ByteBuffer DeviceID()
ByteBuffer view of the DeviceID field.public java.lang.String DeviceIDString()
DeviceID field.public java.nio.ByteBuffer DeviceKey()
ByteBuffer view of the DeviceKey field.public java.lang.String DeviceKeyString()
DeviceKey field.public DISPLAY_DEVICE cb(int value)
cb field.public DISPLAY_DEVICE set(DISPLAY_DEVICE src)
src - the source structpublic static DISPLAY_DEVICE malloc()
DISPLAY_DEVICE instance allocated with memAlloc. The instance must be explicitly freed.public static DISPLAY_DEVICE calloc()
DISPLAY_DEVICE instance allocated with memCalloc. The instance must be explicitly freed.public static DISPLAY_DEVICE create()
DISPLAY_DEVICE instance allocated with BufferUtils.public static DISPLAY_DEVICE create(long address)
DISPLAY_DEVICE instance for the specified memory address.@Nullable public static DISPLAY_DEVICE createSafe(long address)
public static DISPLAY_DEVICE.Buffer malloc(int capacity)
DISPLAY_DEVICE.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static DISPLAY_DEVICE.Buffer calloc(int capacity)
DISPLAY_DEVICE.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static DISPLAY_DEVICE.Buffer create(int capacity)
DISPLAY_DEVICE.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static DISPLAY_DEVICE.Buffer create(long address, int capacity)
DISPLAY_DEVICE.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static DISPLAY_DEVICE.Buffer createSafe(long address, int capacity)
public static DISPLAY_DEVICE mallocStack()
DISPLAY_DEVICE instance allocated on the thread-local MemoryStack.public static DISPLAY_DEVICE callocStack()
DISPLAY_DEVICE instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static DISPLAY_DEVICE mallocStack(org.lwjgl.system.MemoryStack stack)
DISPLAY_DEVICE instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static DISPLAY_DEVICE callocStack(org.lwjgl.system.MemoryStack stack)
DISPLAY_DEVICE instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static DISPLAY_DEVICE.Buffer mallocStack(int capacity)
DISPLAY_DEVICE.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static DISPLAY_DEVICE.Buffer callocStack(int capacity)
DISPLAY_DEVICE.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static DISPLAY_DEVICE.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
DISPLAY_DEVICE.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static DISPLAY_DEVICE.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
DISPLAY_DEVICE.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int ncb(long struct)
cb().public static java.nio.ByteBuffer nDeviceName(long struct)
DeviceName().public static java.lang.String nDeviceNameString(long struct)
DeviceNameString().public static java.nio.ByteBuffer nDeviceString(long struct)
DeviceString().public static java.lang.String nDeviceStringString(long struct)
DeviceStringString().public static int nStateFlags(long struct)
StateFlags().public static java.nio.ByteBuffer nDeviceID(long struct)
DeviceID().public static java.lang.String nDeviceIDString(long struct)
DeviceIDString().public static java.nio.ByteBuffer nDeviceKey(long struct)
DeviceKey().public static java.lang.String nDeviceKeyString(long struct)
DeviceKeyString().public static void ncb(long struct,
int value)
cb.Copyright LWJGL. All Rights Reserved. License terms.