Package org.lwjgl.system.windows
Class DISPLAY_DEVICE
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct DISPLAY_DEVICE {
DWORD cb;
TCHAR DeviceName[32];
TCHAR DeviceString[128];
DWORD StateFlags;
TCHAR DeviceID[128];
TCHAR DeviceKey[128];
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
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 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
ConstructorsConstructorDescriptionDISPLAY_DEVICE(ByteBuffer container) Creates aDISPLAY_DEVICEinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic DISPLAY_DEVICEcalloc()Returns a newDISPLAY_DEVICEinstance allocated withmemCalloc.static DISPLAY_DEVICE.Buffercalloc(int capacity) Returns a newDISPLAY_DEVICE.Bufferinstance allocated withmemCalloc.static DISPLAY_DEVICE.Buffercalloc(int capacity, MemoryStack stack) Returns a newDISPLAY_DEVICE.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static DISPLAY_DEVICEcalloc(MemoryStack stack) Returns a newDISPLAY_DEVICEinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static DISPLAY_DEVICEDeprecated.static DISPLAY_DEVICE.BuffercallocStack(int capacity) Deprecated.static DISPLAY_DEVICE.BuffercallocStack(int capacity, MemoryStack stack) Deprecated.static DISPLAY_DEVICEcallocStack(MemoryStack stack) Deprecated.intcb()cb(int value) Sets the specified value to thecbfield.static DISPLAY_DEVICEcreate()Returns a newDISPLAY_DEVICEinstance allocated withBufferUtils.static DISPLAY_DEVICE.Buffercreate(int capacity) Returns a newDISPLAY_DEVICE.Bufferinstance allocated withBufferUtils.static DISPLAY_DEVICEcreate(long address) Returns a newDISPLAY_DEVICEinstance for the specified memory address.static DISPLAY_DEVICE.Buffercreate(long address, int capacity) Create aDISPLAY_DEVICE.Bufferinstance at the specified memory.static @Nullable DISPLAY_DEVICEcreateSafe(long address) static @Nullable DISPLAY_DEVICE.BuffercreateSafe(long address, int capacity) DeviceID()static DISPLAY_DEVICEmalloc()Returns a newDISPLAY_DEVICEinstance allocated withmemAlloc.static DISPLAY_DEVICE.Buffermalloc(int capacity) Returns a newDISPLAY_DEVICE.Bufferinstance allocated withmemAlloc.static DISPLAY_DEVICE.Buffermalloc(int capacity, MemoryStack stack) Returns a newDISPLAY_DEVICE.Bufferinstance allocated on the specifiedMemoryStack.static DISPLAY_DEVICEmalloc(MemoryStack stack) Returns a newDISPLAY_DEVICEinstance allocated on the specifiedMemoryStack.static DISPLAY_DEVICEDeprecated.static DISPLAY_DEVICE.BuffermallocStack(int capacity) Deprecated.static DISPLAY_DEVICE.BuffermallocStack(int capacity, MemoryStack stack) Deprecated.static DISPLAY_DEVICEmallocStack(MemoryStack stack) Deprecated.static intncb(long struct) Unsafe version ofcb().static voidncb(long struct, int value) Unsafe version ofcb.static ByteBuffernDeviceID(long struct) Unsafe version ofDeviceID().static StringnDeviceIDString(long struct) Unsafe version ofDeviceIDString().static ByteBuffernDeviceKey(long struct) Unsafe version ofDeviceKey().static StringnDeviceKeyString(long struct) Unsafe version ofDeviceKeyString().static ByteBuffernDeviceName(long struct) Unsafe version ofDeviceName().static StringnDeviceNameString(long struct) Unsafe version ofDeviceNameString().static ByteBuffernDeviceString(long struct) Unsafe version ofDeviceString().static StringnDeviceStringString(long struct) Unsafe version ofDeviceStringString().static intnStateFlags(long struct) Unsafe version ofStateFlags().set(DISPLAY_DEVICE src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intMethods 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. -
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_DEVICEinstance 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()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<DISPLAY_DEVICE>
-
cb
public int cb()- Returns:
- the value of the
cbfield.
-
DeviceName
- Returns:
- a
ByteBufferview of theDeviceNamefield.
-
DeviceNameString
- Returns:
- the null-terminated string stored in the
DeviceNamefield.
-
DeviceString
- Returns:
- a
ByteBufferview of theDeviceStringfield.
-
DeviceStringString
- Returns:
- the null-terminated string stored in the
DeviceStringfield.
-
StateFlags
public int StateFlags()- Returns:
- the value of the
StateFlagsfield.
-
DeviceID
- Returns:
- a
ByteBufferview of theDeviceIDfield.
-
DeviceIDString
- Returns:
- the null-terminated string stored in the
DeviceIDfield.
-
DeviceKey
- Returns:
- a
ByteBufferview of theDeviceKeyfield.
-
DeviceKeyString
- Returns:
- the null-terminated string stored in the
DeviceKeyfield.
-
cb
Sets the specified value to thecbfield. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newDISPLAY_DEVICEinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newDISPLAY_DEVICEinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newDISPLAY_DEVICEinstance allocated withBufferUtils. -
create
Returns a newDISPLAY_DEVICEinstance for the specified memory address. -
createSafe
-
malloc
Returns a newDISPLAY_DEVICE.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newDISPLAY_DEVICE.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newDISPLAY_DEVICE.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aDISPLAY_DEVICE.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.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newDISPLAY_DEVICEinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newDISPLAY_DEVICEinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newDISPLAY_DEVICE.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newDISPLAY_DEVICE.Bufferinstance allocated on the specifiedMemoryStackand 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.
-