Package org.lwjgl.system.windows
Class GDI32
java.lang.Object
org.lwjgl.system.windows.GDI32
Native bindings to wingdi.h and gdi32.dll.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classContains the function pointers loaded from the gdi32SharedLibrary. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intChild display device state flags.static final intChild display device state flags.static final intDisplay device state flags.static final intDisplay device state flags.static final intDisplay device state flags.static final intDisplay device state flags.static final intDisplay device state flags.static final intDisplay device state flags.static final intDisplay device state flags.static final intDisplay device state flags.static final intDisplay device state flags.static final intDisplay device state flags.static final intDisplay device state flags.static final intDEVMODEfield selection bits.static final intDEVMODEfield selection bits.static final intDEVMODEfield selection bits.static final intDEVMODEfield selection bits.static final intDEVMODEfield selection bits.static final intDEVMODEfield selection bits.static final intDEVMODEfield selection bits.static final intDEVMODEfield selection bits.static final intDEVMODEfield selection bits.static final intDEVMODEfield selection bits.static final intDEVMODEfield selection bits.static final intDEVMODEfield selection bits.static final intDEVMODEfield selection bits.static final intDEVMODEfield selection bits.static final intDEVMODEdmDisplayFlagsflags.static final intDEVMODEfield selection bits.static final intDEVMODEfield selection bits.static final intDEVMODEfield selection bits.static final intDEVMODEfield selection bits.static final intDEVMODEfield selection bits.static final intDEVMODEfield selection bits.static final intDEVMODEfield selection bits.static final intDEVMODEfield selection bits.static final intDEVMODEfield selection bits.static final intDEVMODEfield selection bits.static final intDEVMODEfield selection bits.static final intDEVMODEfield selection bits.static final intDEVMODEfield selection bits.static final intDEVMODEfield selection bits.static final intDEVMODEspecification version.static final intDEVMODEfield selection bits.static final intDEVMODEfield selection bits.static final intDEVMODEdmDisplayFixedOutputspecifications.static final intDEVMODEdmDisplayFixedOutputspecifications.static final intDEVMODEdmDisplayFixedOutputspecifications.static final intDEVMODEdmDisplayFlagsflags.static final intDEVMODEdmDisplayOrientationspecifications.static final intDEVMODEdmDisplayOrientationspecifications.static final intDEVMODEdmDisplayOrientationspecifications.static final intDEVMODEdmDisplayOrientationspecifications.static final intPIXELFORMATDESCRIPTORflags.static final intPIXELFORMATDESCRIPTORflags.static final intPIXELFORMATDESCRIPTORflags.static final intPIXELFORMATDESCRIPTORflags.static final intPIXELFORMATDESCRIPTORflags.static final intPIXELFORMATDESCRIPTORflags.static final intPIXELFORMATDESCRIPTORflags.static final intPIXELFORMATDESCRIPTORflags.static final bytePIXELFORMATDESCRIPTORlayer types.static final intPIXELFORMATDESCRIPTORflags.static final intPIXELFORMATDESCRIPTORflags.static final bytePIXELFORMATDESCRIPTORlayer types.static final intPIXELFORMATDESCRIPTORflags.static final intPIXELFORMATDESCRIPTORflags.static final intPIXELFORMATDESCRIPTORflags.static final intPIXELFORMATDESCRIPTORflags.static final intPIXELFORMATDESCRIPTORflags.static final intPIXELFORMATDESCRIPTORflags.static final intPIXELFORMATDESCRIPTORflags.static final intPIXELFORMATDESCRIPTORflags.static final intPIXELFORMATDESCRIPTORflags.static final bytePIXELFORMATDESCRIPTORpixel types.static final bytePIXELFORMATDESCRIPTORpixel types.static final bytePIXELFORMATDESCRIPTORlayer types. -
Method Summary
Modifier and TypeMethodDescriptionstatic intChoosePixelFormat(@Nullable IntBuffer _GetLastError, long hdc, PIXELFORMATDESCRIPTOR pixelFormatDescriptor) Attempts to match an appropriate pixel format supported by a device context to a given pixel format specification.static intDescribePixelFormat(@Nullable IntBuffer _GetLastError, long hdc, int pixelFormat, int bytes, @Nullable PIXELFORMATDESCRIPTOR pixelFormatDescriptor) Obtains information about the pixel format identified by pixelFormat of the device associated with dc.static intDescribePixelFormat(@Nullable IntBuffer _GetLastError, long hdc, int pixelFormat, @Nullable PIXELFORMATDESCRIPTOR pixelFormatDescriptor) Obtains information about the pixel format identified by pixelFormat of the device associated with dc.static org.lwjgl.system.SharedLibraryReturns the gdi32SharedLibrary.static intGetPixelFormat(@Nullable IntBuffer _GetLastError, long hdc) Obtains the index of the currently selected pixel format of the specified device context.static intnChoosePixelFormat(long _GetLastError, long hdc, long pixelFormatDescriptor) static intnChoosePixelFormat(long _GetLastError, long hdc, long pixelFormatDescriptor, long __functionAddress) static intnDescribePixelFormat(long _GetLastError, long hdc, int pixelFormat, int bytes, long pixelFormatDescriptor) static intnDescribePixelFormat(long _GetLastError, long hdc, int pixelFormat, int bytes, long pixelFormatDescriptor, long __functionAddress) static intnGetPixelFormat(long _GetLastError, long hdc) Unsafe version of:GetPixelFormat(java.nio.IntBuffer, long)static intnGetPixelFormat(long _GetLastError, long hdc, long __functionAddress) Unsafe version of:GetPixelFormat(java.nio.IntBuffer, long)static intnSetPixelFormat(long _GetLastError, long hdc, int pixelFormat, long pixelFormatDescriptor) static intnSetPixelFormat(long _GetLastError, long hdc, int pixelFormat, long pixelFormatDescriptor, long __functionAddress) static intnSwapBuffers(long _GetLastError, long dc) Unsafe version of:SwapBuffers(java.nio.IntBuffer, long)static intnSwapBuffers(long _GetLastError, long dc, long __functionAddress) Unsafe version of:SwapBuffers(java.nio.IntBuffer, long)static booleanSetPixelFormat(@Nullable IntBuffer _GetLastError, long hdc, int pixelFormat, @Nullable PIXELFORMATDESCRIPTOR pixelFormatDescriptor) Sets the pixel format of the specified device context to the format specified by the pixelFormat index.static booleanSwapBuffers(@Nullable IntBuffer _GetLastError, long dc) Exchanges the front and back buffers if the current pixel format for the window referenced by the specified device context includes a back buffer.
-
Field Details
-
DISPLAY_DEVICE_ATTACHED_TO_DESKTOP
public static final int DISPLAY_DEVICE_ATTACHED_TO_DESKTOPDisplay device state flags.- See Also:
-
DISPLAY_DEVICE_MULTI_DRIVER
public static final int DISPLAY_DEVICE_MULTI_DRIVERDisplay device state flags.- See Also:
-
DISPLAY_DEVICE_PRIMARY_DEVICE
public static final int DISPLAY_DEVICE_PRIMARY_DEVICEDisplay device state flags.- See Also:
-
DISPLAY_DEVICE_MIRRORING_DRIVER
public static final int DISPLAY_DEVICE_MIRRORING_DRIVERDisplay device state flags.- See Also:
-
DISPLAY_DEVICE_VGA_COMPATIBLE
public static final int DISPLAY_DEVICE_VGA_COMPATIBLEDisplay device state flags.- See Also:
-
DISPLAY_DEVICE_REMOVABLE
public static final int DISPLAY_DEVICE_REMOVABLEDisplay device state flags.- See Also:
-
DISPLAY_DEVICE_MODESPRUNED
public static final int DISPLAY_DEVICE_MODESPRUNEDDisplay device state flags.- See Also:
-
DISPLAY_DEVICE_REMOTE
public static final int DISPLAY_DEVICE_REMOTEDisplay device state flags.- See Also:
-
DISPLAY_DEVICE_DISCONNECT
public static final int DISPLAY_DEVICE_DISCONNECTDisplay device state flags.- See Also:
-
DISPLAY_DEVICE_TS_COMPATIBLE
public static final int DISPLAY_DEVICE_TS_COMPATIBLEDisplay device state flags.- See Also:
-
DISPLAY_DEVICE_UNSAFE_MODES_ON
public static final int DISPLAY_DEVICE_UNSAFE_MODES_ONDisplay device state flags.- See Also:
-
DISPLAY_DEVICE_ACTIVE
public static final int DISPLAY_DEVICE_ACTIVEChild display device state flags.- See Also:
-
DISPLAY_DEVICE_ATTACHED
public static final int DISPLAY_DEVICE_ATTACHEDChild display device state flags.- See Also:
-
DM_SPECVERSION
public static final int DM_SPECVERSIONDEVMODEspecification version.- See Also:
-
DM_ORIENTATION
public static final int DM_ORIENTATIONDEVMODEfield selection bits.- See Also:
-
DM_PAPERSIZE
public static final int DM_PAPERSIZEDEVMODEfield selection bits.- See Also:
-
DM_PAPERLENGTH
public static final int DM_PAPERLENGTHDEVMODEfield selection bits.- See Also:
-
DM_PAPERWIDTH
public static final int DM_PAPERWIDTHDEVMODEfield selection bits.- See Also:
-
DM_SCALE
public static final int DM_SCALEDEVMODEfield selection bits.- See Also:
-
DM_POSITION
public static final int DM_POSITIONDEVMODEfield selection bits.- See Also:
-
DM_NUP
public static final int DM_NUPDEVMODEfield selection bits.- See Also:
-
DM_DISPLAYORIENTATION
public static final int DM_DISPLAYORIENTATIONDEVMODEfield selection bits.- See Also:
-
DM_COPIES
public static final int DM_COPIESDEVMODEfield selection bits.- See Also:
-
DM_DEFAULTSOURCE
public static final int DM_DEFAULTSOURCEDEVMODEfield selection bits.- See Also:
-
DM_PRINTQUALITY
public static final int DM_PRINTQUALITYDEVMODEfield selection bits.- See Also:
-
DM_COLOR
public static final int DM_COLORDEVMODEfield selection bits.- See Also:
-
DM_DUPLEX
public static final int DM_DUPLEXDEVMODEfield selection bits.- See Also:
-
DM_YRESOLUTION
public static final int DM_YRESOLUTIONDEVMODEfield selection bits.- See Also:
-
DM_TTOPTION
public static final int DM_TTOPTIONDEVMODEfield selection bits.- See Also:
-
DM_COLLATE
public static final int DM_COLLATEDEVMODEfield selection bits.- See Also:
-
DM_FORMNAME
public static final int DM_FORMNAMEDEVMODEfield selection bits.- See Also:
-
DM_LOGPIXELS
public static final int DM_LOGPIXELSDEVMODEfield selection bits.- See Also:
-
DM_BITSPERPEL
public static final int DM_BITSPERPELDEVMODEfield selection bits.- See Also:
-
DM_PELSWIDTH
public static final int DM_PELSWIDTHDEVMODEfield selection bits.- See Also:
-
DM_PELSHEIGHT
public static final int DM_PELSHEIGHTDEVMODEfield selection bits.- See Also:
-
DM_DISPLAYFLAGS
public static final int DM_DISPLAYFLAGSDEVMODEfield selection bits.- See Also:
-
DM_DISPLAYFREQUENCY
public static final int DM_DISPLAYFREQUENCYDEVMODEfield selection bits.- See Also:
-
DM_ICMMETHOD
public static final int DM_ICMMETHODDEVMODEfield selection bits.- See Also:
-
DM_ICMINTENT
public static final int DM_ICMINTENTDEVMODEfield selection bits.- See Also:
-
DM_MEDIATYPE
public static final int DM_MEDIATYPEDEVMODEfield selection bits.- See Also:
-
DM_DITHERTYPE
public static final int DM_DITHERTYPEDEVMODEfield selection bits.- See Also:
-
DM_PANNINGWIDTH
public static final int DM_PANNINGWIDTHDEVMODEfield selection bits.- See Also:
-
DM_PANNINGHEIGHT
public static final int DM_PANNINGHEIGHTDEVMODEfield selection bits.- See Also:
-
DM_DISPLAYFIXEDOUTPUT
public static final int DM_DISPLAYFIXEDOUTPUTDEVMODEfield selection bits.- See Also:
-
DMDO_DEFAULT
public static final int DMDO_DEFAULTDEVMODEdmDisplayOrientationspecifications.- See Also:
-
DMDO_90
public static final int DMDO_90DEVMODEdmDisplayOrientationspecifications.- See Also:
-
DMDO_180
public static final int DMDO_180DEVMODEdmDisplayOrientationspecifications.- See Also:
-
DMDO_270
public static final int DMDO_270DEVMODEdmDisplayOrientationspecifications.- See Also:
-
DMDFO_DEFAULT
public static final int DMDFO_DEFAULTDEVMODEdmDisplayFixedOutputspecifications.- See Also:
-
DMDFO_STRETCH
public static final int DMDFO_STRETCHDEVMODEdmDisplayFixedOutputspecifications.- See Also:
-
DMDFO_CENTER
public static final int DMDFO_CENTERDEVMODEdmDisplayFixedOutputspecifications.- See Also:
-
DM_INTERLACED
public static final int DM_INTERLACEDDEVMODEdmDisplayFlagsflags.- See Also:
-
DMDISPLAYFLAGS_TEXTMODE
public static final int DMDISPLAYFLAGS_TEXTMODEDEVMODEdmDisplayFlagsflags.- See Also:
-
PFD_DOUBLEBUFFER
public static final int PFD_DOUBLEBUFFERPIXELFORMATDESCRIPTORflags.- See Also:
-
PFD_STEREO
public static final int PFD_STEREOPIXELFORMATDESCRIPTORflags.- See Also:
-
PFD_DRAW_TO_WINDOW
public static final int PFD_DRAW_TO_WINDOWPIXELFORMATDESCRIPTORflags.- See Also:
-
PFD_DRAW_TO_BITMAP
public static final int PFD_DRAW_TO_BITMAPPIXELFORMATDESCRIPTORflags.- See Also:
-
PFD_SUPPORT_GDI
public static final int PFD_SUPPORT_GDIPIXELFORMATDESCRIPTORflags.- See Also:
-
PFD_SUPPORT_OPENGL
public static final int PFD_SUPPORT_OPENGLPIXELFORMATDESCRIPTORflags.- See Also:
-
PFD_GENERIC_FORMAT
public static final int PFD_GENERIC_FORMATPIXELFORMATDESCRIPTORflags.- See Also:
-
PFD_NEED_PALETTE
public static final int PFD_NEED_PALETTEPIXELFORMATDESCRIPTORflags.- See Also:
-
PFD_NEED_SYSTEM_PALETTE
public static final int PFD_NEED_SYSTEM_PALETTEPIXELFORMATDESCRIPTORflags.- See Also:
-
PFD_SWAP_EXCHANGE
public static final int PFD_SWAP_EXCHANGEPIXELFORMATDESCRIPTORflags.- See Also:
-
PFD_SWAP_COPY
public static final int PFD_SWAP_COPYPIXELFORMATDESCRIPTORflags.- See Also:
-
PFD_SWAP_LAYER_BUFFERS
public static final int PFD_SWAP_LAYER_BUFFERSPIXELFORMATDESCRIPTORflags.- See Also:
-
PFD_GENERIC_ACCELERATED
public static final int PFD_GENERIC_ACCELERATEDPIXELFORMATDESCRIPTORflags.- See Also:
-
PFD_SUPPORT_DIRECTDRAW
public static final int PFD_SUPPORT_DIRECTDRAWPIXELFORMATDESCRIPTORflags.- See Also:
-
PFD_DIRECT3D_ACCELERATED
public static final int PFD_DIRECT3D_ACCELERATEDPIXELFORMATDESCRIPTORflags.- See Also:
-
PFD_SUPPORT_COMPOSITION
public static final int PFD_SUPPORT_COMPOSITIONPIXELFORMATDESCRIPTORflags.- See Also:
-
PFD_DEPTH_DONTCARE
public static final int PFD_DEPTH_DONTCAREPIXELFORMATDESCRIPTORflags.- See Also:
-
PFD_DOUBLEBUFFER_DONTCARE
public static final int PFD_DOUBLEBUFFER_DONTCAREPIXELFORMATDESCRIPTORflags.- See Also:
-
PFD_STEREO_DONTCARE
public static final int PFD_STEREO_DONTCAREPIXELFORMATDESCRIPTORflags.- See Also:
-
PFD_TYPE_RGBA
public static final byte PFD_TYPE_RGBAPIXELFORMATDESCRIPTORpixel types.- See Also:
-
PFD_TYPE_COLORINDEX
public static final byte PFD_TYPE_COLORINDEXPIXELFORMATDESCRIPTORpixel types.- See Also:
-
PFD_MAIN_PLANE
public static final byte PFD_MAIN_PLANEPIXELFORMATDESCRIPTORlayer types.- See Also:
-
PFD_OVERLAY_PLANE
public static final byte PFD_OVERLAY_PLANEPIXELFORMATDESCRIPTORlayer types.- See Also:
-
PFD_UNDERLAY_PLANE
public static final byte PFD_UNDERLAY_PLANEPIXELFORMATDESCRIPTORlayer types.- See Also:
-
-
Method Details
-
getLibrary
public static org.lwjgl.system.SharedLibrary getLibrary()Returns the gdi32SharedLibrary. -
nChoosePixelFormat
public static int nChoosePixelFormat(long _GetLastError, long hdc, long pixelFormatDescriptor, long __functionAddress) -
nChoosePixelFormat
public static int nChoosePixelFormat(long _GetLastError, long hdc, long pixelFormatDescriptor) -
ChoosePixelFormat
public static int ChoosePixelFormat(@Nullable IntBuffer _GetLastError, long hdc, PIXELFORMATDESCRIPTOR pixelFormatDescriptor) Attempts to match an appropriate pixel format supported by a device context to a given pixel format specification.- Parameters:
_GetLastError- optionally returns the result ofGetLastError()after this function is calledhdc- the device context that the function examines to determine the best match for the pixel format descriptor pointed to bypixelFormatDescriptorpixelFormatDescriptor- aPIXELFORMATDESCRIPTORstructure that specifies the requested pixel format
-
nDescribePixelFormat
public static int nDescribePixelFormat(long _GetLastError, long hdc, int pixelFormat, int bytes, long pixelFormatDescriptor, long __functionAddress) -
nDescribePixelFormat
public static int nDescribePixelFormat(long _GetLastError, long hdc, int pixelFormat, int bytes, long pixelFormatDescriptor) -
DescribePixelFormat
public static int DescribePixelFormat(@Nullable IntBuffer _GetLastError, long hdc, int pixelFormat, int bytes, @Nullable PIXELFORMATDESCRIPTOR pixelFormatDescriptor) Obtains information about the pixel format identified by pixelFormat of the device associated with dc. The function sets the members of thePIXELFORMATDESCRIPTORstructure pointed to by pixelFormatDescriptor with that pixel format data. The return value is the maximum pixel format index of the device context.- Parameters:
_GetLastError- optionally returns the result ofGetLastError()after this function is calledhdc- the device contextpixelFormat- index that specifies the pixel format. The pixel formats that a device context supports are identified by positive one-based integer indexes.bytes- the size, in bytes, of the structure pointed to bypixelFormatDescriptor. ThewglDescribePixelFormatfunction stores no more thanbytesbytes of data to that structure. Set this value toPIXELFORMATDESCRIPTOR.SIZEOF.pixelFormatDescriptor- aPIXELFORMATDESCRIPTORstructure whose members the function sets with pixel format data. The function stores the number of bytes copied to the structure in the structure'ssizemember. If, upon entry,pixelFormatDescriptorisNULL, the function writes no data to the structure. This is useful when you only want to obtain the maximum pixel format index of a device context.
-
DescribePixelFormat
public static int DescribePixelFormat(@Nullable IntBuffer _GetLastError, long hdc, int pixelFormat, @Nullable PIXELFORMATDESCRIPTOR pixelFormatDescriptor) Obtains information about the pixel format identified by pixelFormat of the device associated with dc. The function sets the members of thePIXELFORMATDESCRIPTORstructure pointed to by pixelFormatDescriptor with that pixel format data. The return value is the maximum pixel format index of the device context.- Parameters:
_GetLastError- optionally returns the result ofGetLastError()after this function is calledhdc- the device contextpixelFormat- index that specifies the pixel format. The pixel formats that a device context supports are identified by positive one-based integer indexes.pixelFormatDescriptor- aPIXELFORMATDESCRIPTORstructure whose members the function sets with pixel format data. The function stores the number of bytes copied to the structure in the structure'ssizemember. If, upon entry,pixelFormatDescriptorisNULL, the function writes no data to the structure. This is useful when you only want to obtain the maximum pixel format index of a device context.
-
nGetPixelFormat
public static int nGetPixelFormat(long _GetLastError, long hdc, long __functionAddress) Unsafe version of:GetPixelFormat(java.nio.IntBuffer, long) -
nGetPixelFormat
public static int nGetPixelFormat(long _GetLastError, long hdc) Unsafe version of:GetPixelFormat(java.nio.IntBuffer, long) -
GetPixelFormat
Obtains the index of the currently selected pixel format of the specified device context.- Parameters:
_GetLastError- optionally returns the result ofGetLastError()after this function is calledhdc- the device context of the currently selected pixel format index returned by the function
-
nSetPixelFormat
public static int nSetPixelFormat(long _GetLastError, long hdc, int pixelFormat, long pixelFormatDescriptor, long __functionAddress) -
nSetPixelFormat
public static int nSetPixelFormat(long _GetLastError, long hdc, int pixelFormat, long pixelFormatDescriptor) -
SetPixelFormat
public static boolean SetPixelFormat(@Nullable IntBuffer _GetLastError, long hdc, int pixelFormat, @Nullable PIXELFORMATDESCRIPTOR pixelFormatDescriptor) Sets the pixel format of the specified device context to the format specified by the pixelFormat index.- Parameters:
_GetLastError- optionally returns the result ofGetLastError()after this function is calledhdc- the device context whose pixel format the function attempts to setpixelFormat- index that identifies the pixel format to set. The various pixel formats supported by a device context are identified by one-based indexes.pixelFormatDescriptor- aPIXELFORMATDESCRIPTORstructure that contains the logical pixel format specification. The system's metafile component uses this structure to record the logical pixel format specification. The structure has no other effect upon the behavior of the SetPixelFormat function.
-
nSwapBuffers
public static int nSwapBuffers(long _GetLastError, long dc, long __functionAddress) Unsafe version of:SwapBuffers(java.nio.IntBuffer, long) -
nSwapBuffers
public static int nSwapBuffers(long _GetLastError, long dc) Unsafe version of:SwapBuffers(java.nio.IntBuffer, long) -
SwapBuffers
Exchanges the front and back buffers if the current pixel format for the window referenced by the specified device context includes a back buffer.- Parameters:
_GetLastError- optionally returns the result ofGetLastError()after this function is calleddc- a device context. If the current pixel format for the window referenced by this device context includes a back buffer, the function exchanges the front and back buffers.
-