Package org.lwjgl.system.windows
Class DISPLAY_DEVICE.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<DISPLAY_DEVICE,DISPLAY_DEVICE.Buffer>
-
- org.lwjgl.system.windows.DISPLAY_DEVICE.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<DISPLAY_DEVICE>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- DISPLAY_DEVICE
public static class DISPLAY_DEVICE.Buffer extends org.lwjgl.system.StructBuffer<DISPLAY_DEVICE,DISPLAY_DEVICE.Buffer> implements org.lwjgl.system.NativeResource
An array ofDISPLAY_DEVICEstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcb()DISPLAY_DEVICE.Buffercb(int value)Sets the specified value to theDISPLAY_DEVICE.cb()field.java.nio.ByteBufferDeviceID()java.lang.StringDeviceIDString()java.nio.ByteBufferDeviceKey()java.lang.StringDeviceKeyString()java.nio.ByteBufferDeviceName()java.lang.StringDeviceNameString()java.nio.ByteBufferDeviceString()java.lang.StringDeviceStringString()intStateFlags()
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newDISPLAY_DEVICE.Bufferinstance backed by the specified container. Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided byDISPLAY_DEVICE.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Detail
-
cb
public int cb()
- Returns:
- the value of the
DISPLAY_DEVICE.cb()field.
-
DeviceName
public java.nio.ByteBuffer DeviceName()
- Returns:
- a
ByteBufferview of theDISPLAY_DEVICE.DeviceName()field.
-
DeviceNameString
public java.lang.String DeviceNameString()
- Returns:
- the null-terminated string stored in the
DISPLAY_DEVICE.DeviceName()field.
-
DeviceString
public java.nio.ByteBuffer DeviceString()
- Returns:
- a
ByteBufferview of theDISPLAY_DEVICE.DeviceString()field.
-
DeviceStringString
public java.lang.String DeviceStringString()
- Returns:
- the null-terminated string stored in the
DISPLAY_DEVICE.DeviceString()field.
-
StateFlags
public int StateFlags()
- Returns:
- the value of the
DISPLAY_DEVICE.StateFlags()field.
-
DeviceID
public java.nio.ByteBuffer DeviceID()
- Returns:
- a
ByteBufferview of theDISPLAY_DEVICE.DeviceID()field.
-
DeviceIDString
public java.lang.String DeviceIDString()
- Returns:
- the null-terminated string stored in the
DISPLAY_DEVICE.DeviceID()field.
-
DeviceKey
public java.nio.ByteBuffer DeviceKey()
- Returns:
- a
ByteBufferview of theDISPLAY_DEVICE.DeviceKey()field.
-
DeviceKeyString
public java.lang.String DeviceKeyString()
- Returns:
- the null-terminated string stored in the
DISPLAY_DEVICE.DeviceKey()field.
-
cb
public DISPLAY_DEVICE.Buffer cb(int value)
Sets the specified value to theDISPLAY_DEVICE.cb()field.
-
-