Package org.lwjgl.system.windows
Class DEVMODE
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct DEVMODE {
TCHAR dmDeviceName[32];
WORD dmSpecVersion;
WORD dmDriverVersion;
WORD dmSize;
WORD dmDriverExtra;
DWORD dmFields;
union {
struct {
short dmOrientation;
short dmPaperSize;
short dmPaperLength;
short dmPaperWidth;
short dmScale;
short dmCopies;
short dmDefaultSource;
short dmPrintQuality;
};
struct {
POINTL dmPosition;
DWORD dmDisplayOrientation;
DWORD dmDisplayFixedOutput;
};
};
short dmColor;
short dmDuplex;
short dmYResolution;
short dmTTOption;
short dmCollate;
TCHAR dmFormName[32];
WORD dmLogPixels;
DWORD dmBitsPerPel;
DWORD dmPelsWidth;
DWORD dmPelsHeight;
union {
DWORD dmDisplayFlags;
DWORD dmNup;
};
DWORD dmDisplayFrequency;
DWORD dmICMMethod;
DWORD dmICMIntent;
DWORD dmMediaType;
DWORD dmDitherType;
DWORD dmReserved1;
DWORD dmReserved2;
DWORD dmPanningWidth;
DWORD dmPanningHeight;
}-
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 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 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 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 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 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 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 member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionDEVMODE(ByteBuffer container) Creates aDEVMODEinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic DEVMODEcalloc()Returns a newDEVMODEinstance allocated withmemCalloc.static DEVMODE.Buffercalloc(int capacity) Returns a newDEVMODE.Bufferinstance allocated withmemCalloc.static DEVMODE.Buffercalloc(int capacity, MemoryStack stack) Returns a newDEVMODE.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static DEVMODEcalloc(MemoryStack stack) Returns a newDEVMODEinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static DEVMODEcreate()Returns a newDEVMODEinstance allocated withBufferUtils.static DEVMODE.Buffercreate(int capacity) Returns a newDEVMODE.Bufferinstance allocated withBufferUtils.static DEVMODEcreate(long address) Returns a newDEVMODEinstance for the specified memory address.static DEVMODE.Buffercreate(long address, int capacity) Create aDEVMODE.Bufferinstance at the specified memory.static @Nullable DEVMODEcreateSafe(long address) static @Nullable DEVMODE.BuffercreateSafe(long address, int capacity) intshortshortdmColor()shortdmCopies()shortintintintintintshortdmDriverExtra(short value) Sets the specified value to thedmDriverExtrafield.shortshortdmDuplex()intdmFields()intintshortintintdmNup()shortintintshortshortshortintintshortintintshortdmScale()shortdmSize()dmSize(short value) Sets the specified value to thedmSizefield.shortdmSpecVersion(short value) Sets the specified value to thedmSpecVersionfield.shortshortstatic DEVMODEmalloc()Returns a newDEVMODEinstance allocated withmemAlloc.static DEVMODE.Buffermalloc(int capacity) Returns a newDEVMODE.Bufferinstance allocated withmemAlloc.static DEVMODE.Buffermalloc(int capacity, MemoryStack stack) Returns a newDEVMODE.Bufferinstance allocated on the specifiedMemoryStack.static DEVMODEmalloc(MemoryStack stack) Returns a newDEVMODEinstance allocated on the specifiedMemoryStack.static intndmBitsPerPel(long struct) Unsafe version ofdmBitsPerPel().static shortndmCollate(long struct) Unsafe version ofdmCollate().static shortndmColor(long struct) Unsafe version ofdmColor().static shortndmCopies(long struct) Unsafe version ofdmCopies().static shortndmDefaultSource(long struct) Unsafe version ofdmDefaultSource().static ByteBufferndmDeviceName(long struct) Unsafe version ofdmDeviceName().static StringndmDeviceNameString(long struct) Unsafe version ofdmDeviceNameString().static intndmDisplayFixedOutput(long struct) Unsafe version ofdmDisplayFixedOutput().static intndmDisplayFlags(long struct) Unsafe version ofdmDisplayFlags().static intndmDisplayFrequency(long struct) Unsafe version ofdmDisplayFrequency().static intndmDisplayOrientation(long struct) Unsafe version ofdmDisplayOrientation().static intndmDitherType(long struct) Unsafe version ofdmDitherType().static shortndmDriverExtra(long struct) Unsafe version ofdmDriverExtra().static voidndmDriverExtra(long struct, short value) Unsafe version ofdmDriverExtra.static shortndmDriverVersion(long struct) Unsafe version ofdmDriverVersion().static shortndmDuplex(long struct) Unsafe version ofdmDuplex().static intndmFields(long struct) Unsafe version ofdmFields().static ByteBufferndmFormName(long struct) Unsafe version ofdmFormName().static StringndmFormNameString(long struct) Unsafe version ofdmFormNameString().static intndmICMIntent(long struct) Unsafe version ofdmICMIntent().static intndmICMMethod(long struct) Unsafe version ofdmICMMethod().static shortndmLogPixels(long struct) Unsafe version ofdmLogPixels().static intndmMediaType(long struct) Unsafe version ofdmMediaType().static intndmNup(long struct) Unsafe version ofdmNup().static shortndmOrientation(long struct) Unsafe version ofdmOrientation().static intndmPanningHeight(long struct) Unsafe version ofdmPanningHeight().static intndmPanningWidth(long struct) Unsafe version ofdmPanningWidth().static shortndmPaperLength(long struct) Unsafe version ofdmPaperLength().static shortndmPaperSize(long struct) Unsafe version ofdmPaperSize().static shortndmPaperWidth(long struct) Unsafe version ofdmPaperWidth().static intndmPelsHeight(long struct) Unsafe version ofdmPelsHeight().static intndmPelsWidth(long struct) Unsafe version ofdmPelsWidth().static POINTLndmPosition(long struct) Unsafe version ofdmPosition().static shortndmPrintQuality(long struct) Unsafe version ofdmPrintQuality().static intndmReserved1(long struct) Unsafe version ofdmReserved1().static intndmReserved2(long struct) Unsafe version ofdmReserved2().static shortndmScale(long struct) Unsafe version ofdmScale().static shortndmSize(long struct) Unsafe version ofdmSize().static voidndmSize(long struct, short value) Unsafe version ofdmSize.static shortndmSpecVersion(long struct) Unsafe version ofdmSpecVersion().static voidndmSpecVersion(long struct, short value) Unsafe version ofdmSpecVersion.static shortndmTTOption(long struct) Unsafe version ofdmTTOption().static shortndmYResolution(long struct) Unsafe version ofdmYResolution().Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).Methods 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. -
DMDEVICENAME
public static final int DMDEVICENAMEThe struct member offsets. -
DMSPECVERSION
public static final int DMSPECVERSIONThe struct member offsets. -
DMDRIVERVERSION
public static final int DMDRIVERVERSIONThe struct member offsets. -
DMSIZE
public static final int DMSIZEThe struct member offsets. -
DMDRIVEREXTRA
public static final int DMDRIVEREXTRAThe struct member offsets. -
DMFIELDS
public static final int DMFIELDSThe struct member offsets. -
DMORIENTATION
public static final int DMORIENTATIONThe struct member offsets. -
DMPAPERSIZE
public static final int DMPAPERSIZEThe struct member offsets. -
DMPAPERLENGTH
public static final int DMPAPERLENGTHThe struct member offsets. -
DMPAPERWIDTH
public static final int DMPAPERWIDTHThe struct member offsets. -
DMSCALE
public static final int DMSCALEThe struct member offsets. -
DMCOPIES
public static final int DMCOPIESThe struct member offsets. -
DMDEFAULTSOURCE
public static final int DMDEFAULTSOURCEThe struct member offsets. -
DMPRINTQUALITY
public static final int DMPRINTQUALITYThe struct member offsets. -
DMPOSITION
public static final int DMPOSITIONThe struct member offsets. -
DMDISPLAYORIENTATION
public static final int DMDISPLAYORIENTATIONThe struct member offsets. -
DMDISPLAYFIXEDOUTPUT
public static final int DMDISPLAYFIXEDOUTPUTThe struct member offsets. -
DMCOLOR
public static final int DMCOLORThe struct member offsets. -
DMDUPLEX
public static final int DMDUPLEXThe struct member offsets. -
DMYRESOLUTION
public static final int DMYRESOLUTIONThe struct member offsets. -
DMTTOPTION
public static final int DMTTOPTIONThe struct member offsets. -
DMCOLLATE
public static final int DMCOLLATEThe struct member offsets. -
DMFORMNAME
public static final int DMFORMNAMEThe struct member offsets. -
DMLOGPIXELS
public static final int DMLOGPIXELSThe struct member offsets. -
DMBITSPERPEL
public static final int DMBITSPERPELThe struct member offsets. -
DMPELSWIDTH
public static final int DMPELSWIDTHThe struct member offsets. -
DMPELSHEIGHT
public static final int DMPELSHEIGHTThe struct member offsets. -
DMDISPLAYFLAGS
public static final int DMDISPLAYFLAGSThe struct member offsets. -
DMNUP
public static final int DMNUPThe struct member offsets. -
DMDISPLAYFREQUENCY
public static final int DMDISPLAYFREQUENCYThe struct member offsets. -
DMICMMETHOD
public static final int DMICMMETHODThe struct member offsets. -
DMICMINTENT
public static final int DMICMINTENTThe struct member offsets. -
DMMEDIATYPE
public static final int DMMEDIATYPEThe struct member offsets. -
DMDITHERTYPE
public static final int DMDITHERTYPEThe struct member offsets. -
DMRESERVED1
public static final int DMRESERVED1The struct member offsets. -
DMRESERVED2
public static final int DMRESERVED2The struct member offsets. -
DMPANNINGWIDTH
public static final int DMPANNINGWIDTHThe struct member offsets. -
DMPANNINGHEIGHT
public static final int DMPANNINGHEIGHTThe struct member offsets.
-
-
Constructor Details
-
DEVMODE
Creates aDEVMODEinstance 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). -
dmDeviceName
- Returns:
- a
ByteBufferview of thedmDeviceNamefield.
-
dmDeviceNameString
- Returns:
- the null-terminated string stored in the
dmDeviceNamefield.
-
dmSpecVersion
public short dmSpecVersion()- Returns:
- the value of the
dmSpecVersionfield.
-
dmDriverVersion
public short dmDriverVersion()- Returns:
- the value of the
dmDriverVersionfield.
-
dmSize
public short dmSize()- Returns:
- the value of the
dmSizefield.
-
dmDriverExtra
public short dmDriverExtra()- Returns:
- the value of the
dmDriverExtrafield.
-
dmFields
public int dmFields()- Returns:
- the value of the
dmFieldsfield.
-
dmOrientation
public short dmOrientation()- Returns:
- the value of the
dmOrientationfield.
-
dmPaperSize
public short dmPaperSize()- Returns:
- the value of the
dmPaperSizefield.
-
dmPaperLength
public short dmPaperLength()- Returns:
- the value of the
dmPaperLengthfield.
-
dmPaperWidth
public short dmPaperWidth()- Returns:
- the value of the
dmPaperWidthfield.
-
dmScale
public short dmScale()- Returns:
- the value of the
dmScalefield.
-
dmCopies
public short dmCopies()- Returns:
- the value of the
dmCopiesfield.
-
dmDefaultSource
public short dmDefaultSource()- Returns:
- the value of the
dmDefaultSourcefield.
-
dmPrintQuality
public short dmPrintQuality()- Returns:
- the value of the
dmPrintQualityfield.
-
dmPosition
- Returns:
- a
POINTLview of thedmPositionfield.
-
dmDisplayOrientation
public int dmDisplayOrientation()- Returns:
- the value of the
dmDisplayOrientationfield.
-
dmDisplayFixedOutput
public int dmDisplayFixedOutput()- Returns:
- the value of the
dmDisplayFixedOutputfield.
-
dmColor
public short dmColor()- Returns:
- the value of the
dmColorfield.
-
dmDuplex
public short dmDuplex()- Returns:
- the value of the
dmDuplexfield.
-
dmYResolution
public short dmYResolution()- Returns:
- the value of the
dmYResolutionfield.
-
dmTTOption
public short dmTTOption()- Returns:
- the value of the
dmTTOptionfield.
-
dmCollate
public short dmCollate()- Returns:
- the value of the
dmCollatefield.
-
dmFormName
- Returns:
- a
ByteBufferview of thedmFormNamefield.
-
dmFormNameString
- Returns:
- the null-terminated string stored in the
dmFormNamefield.
-
dmLogPixels
public short dmLogPixels()- Returns:
- the value of the
dmLogPixelsfield.
-
dmBitsPerPel
public int dmBitsPerPel()- Returns:
- the value of the
dmBitsPerPelfield.
-
dmPelsWidth
public int dmPelsWidth()- Returns:
- the value of the
dmPelsWidthfield.
-
dmPelsHeight
public int dmPelsHeight()- Returns:
- the value of the
dmPelsHeightfield.
-
dmDisplayFlags
public int dmDisplayFlags()- Returns:
- the value of the
dmDisplayFlagsfield.
-
dmNup
public int dmNup()- Returns:
- the value of the
dmNupfield.
-
dmDisplayFrequency
public int dmDisplayFrequency()- Returns:
- the value of the
dmDisplayFrequencyfield.
-
dmICMMethod
public int dmICMMethod()- Returns:
- the value of the
dmICMMethodfield.
-
dmICMIntent
public int dmICMIntent()- Returns:
- the value of the
dmICMIntentfield.
-
dmMediaType
public int dmMediaType()- Returns:
- the value of the
dmMediaTypefield.
-
dmDitherType
public int dmDitherType()- Returns:
- the value of the
dmDitherTypefield.
-
dmReserved1
public int dmReserved1()- Returns:
- the value of the
dmReserved1field.
-
dmReserved2
public int dmReserved2()- Returns:
- the value of the
dmReserved2field.
-
dmPanningWidth
public int dmPanningWidth()- Returns:
- the value of the
dmPanningWidthfield.
-
dmPanningHeight
public int dmPanningHeight()- Returns:
- the value of the
dmPanningHeightfield.
-
dmSpecVersion
Sets the specified value to thedmSpecVersionfield. -
dmSize
Sets the specified value to thedmSizefield. -
dmDriverExtra
Sets the specified value to thedmDriverExtrafield. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newDEVMODEinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newDEVMODEinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newDEVMODEinstance allocated withBufferUtils. -
create
Returns a newDEVMODEinstance for the specified memory address. -
createSafe
-
malloc
Returns a newDEVMODE.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newDEVMODE.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newDEVMODE.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aDEVMODE.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newDEVMODEinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newDEVMODEinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newDEVMODE.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newDEVMODE.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ndmDeviceName
Unsafe version ofdmDeviceName(). -
ndmDeviceNameString
Unsafe version ofdmDeviceNameString(). -
ndmSpecVersion
public static short ndmSpecVersion(long struct) Unsafe version ofdmSpecVersion(). -
ndmDriverVersion
public static short ndmDriverVersion(long struct) Unsafe version ofdmDriverVersion(). -
ndmSize
public static short ndmSize(long struct) Unsafe version ofdmSize(). -
ndmDriverExtra
public static short ndmDriverExtra(long struct) Unsafe version ofdmDriverExtra(). -
ndmFields
public static int ndmFields(long struct) Unsafe version ofdmFields(). -
ndmOrientation
public static short ndmOrientation(long struct) Unsafe version ofdmOrientation(). -
ndmPaperSize
public static short ndmPaperSize(long struct) Unsafe version ofdmPaperSize(). -
ndmPaperLength
public static short ndmPaperLength(long struct) Unsafe version ofdmPaperLength(). -
ndmPaperWidth
public static short ndmPaperWidth(long struct) Unsafe version ofdmPaperWidth(). -
ndmScale
public static short ndmScale(long struct) Unsafe version ofdmScale(). -
ndmCopies
public static short ndmCopies(long struct) Unsafe version ofdmCopies(). -
ndmDefaultSource
public static short ndmDefaultSource(long struct) Unsafe version ofdmDefaultSource(). -
ndmPrintQuality
public static short ndmPrintQuality(long struct) Unsafe version ofdmPrintQuality(). -
ndmPosition
Unsafe version ofdmPosition(). -
ndmDisplayOrientation
public static int ndmDisplayOrientation(long struct) Unsafe version ofdmDisplayOrientation(). -
ndmDisplayFixedOutput
public static int ndmDisplayFixedOutput(long struct) Unsafe version ofdmDisplayFixedOutput(). -
ndmColor
public static short ndmColor(long struct) Unsafe version ofdmColor(). -
ndmDuplex
public static short ndmDuplex(long struct) Unsafe version ofdmDuplex(). -
ndmYResolution
public static short ndmYResolution(long struct) Unsafe version ofdmYResolution(). -
ndmTTOption
public static short ndmTTOption(long struct) Unsafe version ofdmTTOption(). -
ndmCollate
public static short ndmCollate(long struct) Unsafe version ofdmCollate(). -
ndmFormName
Unsafe version ofdmFormName(). -
ndmFormNameString
Unsafe version ofdmFormNameString(). -
ndmLogPixels
public static short ndmLogPixels(long struct) Unsafe version ofdmLogPixels(). -
ndmBitsPerPel
public static int ndmBitsPerPel(long struct) Unsafe version ofdmBitsPerPel(). -
ndmPelsWidth
public static int ndmPelsWidth(long struct) Unsafe version ofdmPelsWidth(). -
ndmPelsHeight
public static int ndmPelsHeight(long struct) Unsafe version ofdmPelsHeight(). -
ndmDisplayFlags
public static int ndmDisplayFlags(long struct) Unsafe version ofdmDisplayFlags(). -
ndmNup
public static int ndmNup(long struct) Unsafe version ofdmNup(). -
ndmDisplayFrequency
public static int ndmDisplayFrequency(long struct) Unsafe version ofdmDisplayFrequency(). -
ndmICMMethod
public static int ndmICMMethod(long struct) Unsafe version ofdmICMMethod(). -
ndmICMIntent
public static int ndmICMIntent(long struct) Unsafe version ofdmICMIntent(). -
ndmMediaType
public static int ndmMediaType(long struct) Unsafe version ofdmMediaType(). -
ndmDitherType
public static int ndmDitherType(long struct) Unsafe version ofdmDitherType(). -
ndmReserved1
public static int ndmReserved1(long struct) Unsafe version ofdmReserved1(). -
ndmReserved2
public static int ndmReserved2(long struct) Unsafe version ofdmReserved2(). -
ndmPanningWidth
public static int ndmPanningWidth(long struct) Unsafe version ofdmPanningWidth(). -
ndmPanningHeight
public static int ndmPanningHeight(long struct) Unsafe version ofdmPanningHeight(). -
ndmSpecVersion
public static void ndmSpecVersion(long struct, short value) Unsafe version ofdmSpecVersion. -
ndmSize
public static void ndmSize(long struct, short value) Unsafe version ofdmSize. -
ndmDriverExtra
public static void ndmDriverExtra(long struct, short value) Unsafe version ofdmDriverExtra.
-