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
Modifier and TypeClassDescriptionstatic final class
Contains the function pointers loaded from the gdi32SharedLibrary
. -
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Child display device state flags.static final int
Child display device state flags.static final int
Display device state flags.static final int
Display device state flags.static final int
Display device state flags.static final int
Display device state flags.static final int
Display device state flags.static final int
Display device state flags.static final int
Display device state flags.static final int
Display device state flags.static final int
Display device state flags.static final int
Display device state flags.static final int
Display device state flags.static final int
DEVMODE
field selection bits.static final int
DEVMODE
field selection bits.static final int
DEVMODE
field selection bits.static final int
DEVMODE
field selection bits.static final int
DEVMODE
field selection bits.static final int
DEVMODE
field selection bits.static final int
DEVMODE
field selection bits.static final int
DEVMODE
field selection bits.static final int
DEVMODE
field selection bits.static final int
DEVMODE
field selection bits.static final int
DEVMODE
field selection bits.static final int
DEVMODE
field selection bits.static final int
DEVMODE
field selection bits.static final int
DEVMODE
field selection bits.static final int
DEVMODE
dmDisplayFlags
flags.static final int
DEVMODE
field selection bits.static final int
DEVMODE
field selection bits.static final int
DEVMODE
field selection bits.static final int
DEVMODE
field selection bits.static final int
DEVMODE
field selection bits.static final int
DEVMODE
field selection bits.static final int
DEVMODE
field selection bits.static final int
DEVMODE
field selection bits.static final int
DEVMODE
field selection bits.static final int
DEVMODE
field selection bits.static final int
DEVMODE
field selection bits.static final int
DEVMODE
field selection bits.static final int
DEVMODE
field selection bits.static final int
DEVMODE
field selection bits.static final int
DEVMODE
specification version.static final int
DEVMODE
field selection bits.static final int
DEVMODE
field selection bits.static final int
DEVMODE
dmDisplayFixedOutput
specifications.static final int
DEVMODE
dmDisplayFixedOutput
specifications.static final int
DEVMODE
dmDisplayFixedOutput
specifications.static final int
DEVMODE
dmDisplayFlags
flags.static final int
DEVMODE
dmDisplayOrientation
specifications.static final int
DEVMODE
dmDisplayOrientation
specifications.static final int
DEVMODE
dmDisplayOrientation
specifications.static final int
DEVMODE
dmDisplayOrientation
specifications.static final int
PIXELFORMATDESCRIPTOR
flags.static final int
PIXELFORMATDESCRIPTOR
flags.static final int
PIXELFORMATDESCRIPTOR
flags.static final int
PIXELFORMATDESCRIPTOR
flags.static final int
PIXELFORMATDESCRIPTOR
flags.static final int
PIXELFORMATDESCRIPTOR
flags.static final int
PIXELFORMATDESCRIPTOR
flags.static final int
PIXELFORMATDESCRIPTOR
flags.static final byte
PIXELFORMATDESCRIPTOR
layer types.static final int
PIXELFORMATDESCRIPTOR
flags.static final int
PIXELFORMATDESCRIPTOR
flags.static final byte
PIXELFORMATDESCRIPTOR
layer types.static final int
PIXELFORMATDESCRIPTOR
flags.static final int
PIXELFORMATDESCRIPTOR
flags.static final int
PIXELFORMATDESCRIPTOR
flags.static final int
PIXELFORMATDESCRIPTOR
flags.static final int
PIXELFORMATDESCRIPTOR
flags.static final int
PIXELFORMATDESCRIPTOR
flags.static final int
PIXELFORMATDESCRIPTOR
flags.static final int
PIXELFORMATDESCRIPTOR
flags.static final int
PIXELFORMATDESCRIPTOR
flags.static final byte
PIXELFORMATDESCRIPTOR
pixel types.static final byte
PIXELFORMATDESCRIPTOR
pixel types.static final byte
PIXELFORMATDESCRIPTOR
layer types. -
Method Summary
Modifier and TypeMethodDescriptionstatic int
ChoosePixelFormat
(long hdc, PIXELFORMATDESCRIPTOR pixelFormatDescriptor) Attempts to match an appropriate pixel format supported by a device context to a given pixel format specification.static int
DescribePixelFormat
(long hdc, int pixelFormat, int bytes, PIXELFORMATDESCRIPTOR pixelFormatDescriptor) Obtains information about the pixel format identified by pixelFormat of the device associated with dc.static int
DescribePixelFormat
(long hdc, int pixelFormat, PIXELFORMATDESCRIPTOR pixelFormatDescriptor) Obtains information about the pixel format identified by pixelFormat of the device associated with dc.static SharedLibrary
Returns the gdi32SharedLibrary
.static int
GetPixelFormat
(long hdc) Obtains the index of the currently selected pixel format of the specified device context.static int
nChoosePixelFormat
(long hdc, long pixelFormatDescriptor) Unsafe version of:ChoosePixelFormat(long, org.lwjgl.system.windows.PIXELFORMATDESCRIPTOR)
static int
nChoosePixelFormat
(long hdc, long pixelFormatDescriptor, long __functionAddress) Unsafe version of:ChoosePixelFormat(long, org.lwjgl.system.windows.PIXELFORMATDESCRIPTOR)
static int
nDescribePixelFormat
(long hdc, int pixelFormat, int bytes, long pixelFormatDescriptor) static int
nDescribePixelFormat
(long hdc, int pixelFormat, int bytes, long pixelFormatDescriptor, long __functionAddress) static int
nGetPixelFormat
(long hdc, long __functionAddress) Unsafe version of:GetPixelFormat(long)
static int
nSetPixelFormat
(long hdc, int pixelFormat, long pixelFormatDescriptor) Unsafe version of:SetPixelFormat(long, int, org.lwjgl.system.windows.PIXELFORMATDESCRIPTOR)
static int
nSetPixelFormat
(long hdc, int pixelFormat, long pixelFormatDescriptor, long __functionAddress) Unsafe version of:SetPixelFormat(long, int, org.lwjgl.system.windows.PIXELFORMATDESCRIPTOR)
static int
nSwapBuffers
(long dc, long __functionAddress) Unsafe version of:SwapBuffers(long)
static boolean
SetPixelFormat
(long hdc, int pixelFormat, PIXELFORMATDESCRIPTOR pixelFormatDescriptor) Sets the pixel format of the specified device context to the format specified by the pixelFormat index.static boolean
SwapBuffers
(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_SPECVERSIONDEVMODE
specification version.- See Also:
-
DM_ORIENTATION
public static final int DM_ORIENTATIONDEVMODE
field selection bits.- See Also:
-
DM_PAPERSIZE
public static final int DM_PAPERSIZEDEVMODE
field selection bits.- See Also:
-
DM_PAPERLENGTH
public static final int DM_PAPERLENGTHDEVMODE
field selection bits.- See Also:
-
DM_PAPERWIDTH
public static final int DM_PAPERWIDTHDEVMODE
field selection bits.- See Also:
-
DM_SCALE
public static final int DM_SCALEDEVMODE
field selection bits.- See Also:
-
DM_POSITION
public static final int DM_POSITIONDEVMODE
field selection bits.- See Also:
-
DM_NUP
public static final int DM_NUPDEVMODE
field selection bits.- See Also:
-
DM_DISPLAYORIENTATION
public static final int DM_DISPLAYORIENTATIONDEVMODE
field selection bits.- See Also:
-
DM_COPIES
public static final int DM_COPIESDEVMODE
field selection bits.- See Also:
-
DM_DEFAULTSOURCE
public static final int DM_DEFAULTSOURCEDEVMODE
field selection bits.- See Also:
-
DM_PRINTQUALITY
public static final int DM_PRINTQUALITYDEVMODE
field selection bits.- See Also:
-
DM_COLOR
public static final int DM_COLORDEVMODE
field selection bits.- See Also:
-
DM_DUPLEX
public static final int DM_DUPLEXDEVMODE
field selection bits.- See Also:
-
DM_YRESOLUTION
public static final int DM_YRESOLUTIONDEVMODE
field selection bits.- See Also:
-
DM_TTOPTION
public static final int DM_TTOPTIONDEVMODE
field selection bits.- See Also:
-
DM_COLLATE
public static final int DM_COLLATEDEVMODE
field selection bits.- See Also:
-
DM_FORMNAME
public static final int DM_FORMNAMEDEVMODE
field selection bits.- See Also:
-
DM_LOGPIXELS
public static final int DM_LOGPIXELSDEVMODE
field selection bits.- See Also:
-
DM_BITSPERPEL
public static final int DM_BITSPERPELDEVMODE
field selection bits.- See Also:
-
DM_PELSWIDTH
public static final int DM_PELSWIDTHDEVMODE
field selection bits.- See Also:
-
DM_PELSHEIGHT
public static final int DM_PELSHEIGHTDEVMODE
field selection bits.- See Also:
-
DM_DISPLAYFLAGS
public static final int DM_DISPLAYFLAGSDEVMODE
field selection bits.- See Also:
-
DM_DISPLAYFREQUENCY
public static final int DM_DISPLAYFREQUENCYDEVMODE
field selection bits.- See Also:
-
DM_ICMMETHOD
public static final int DM_ICMMETHODDEVMODE
field selection bits.- See Also:
-
DM_ICMINTENT
public static final int DM_ICMINTENTDEVMODE
field selection bits.- See Also:
-
DM_MEDIATYPE
public static final int DM_MEDIATYPEDEVMODE
field selection bits.- See Also:
-
DM_DITHERTYPE
public static final int DM_DITHERTYPEDEVMODE
field selection bits.- See Also:
-
DM_PANNINGWIDTH
public static final int DM_PANNINGWIDTHDEVMODE
field selection bits.- See Also:
-
DM_PANNINGHEIGHT
public static final int DM_PANNINGHEIGHTDEVMODE
field selection bits.- See Also:
-
DM_DISPLAYFIXEDOUTPUT
public static final int DM_DISPLAYFIXEDOUTPUTDEVMODE
field selection bits.- See Also:
-
DMDO_DEFAULT
public static final int DMDO_DEFAULTDEVMODE
dmDisplayOrientation
specifications.- See Also:
-
DMDO_90
public static final int DMDO_90DEVMODE
dmDisplayOrientation
specifications.- See Also:
-
DMDO_180
public static final int DMDO_180DEVMODE
dmDisplayOrientation
specifications.- See Also:
-
DMDO_270
public static final int DMDO_270DEVMODE
dmDisplayOrientation
specifications.- See Also:
-
DMDFO_DEFAULT
public static final int DMDFO_DEFAULTDEVMODE
dmDisplayFixedOutput
specifications.- See Also:
-
DMDFO_STRETCH
public static final int DMDFO_STRETCHDEVMODE
dmDisplayFixedOutput
specifications.- See Also:
-
DMDFO_CENTER
public static final int DMDFO_CENTERDEVMODE
dmDisplayFixedOutput
specifications.- See Also:
-
DM_INTERLACED
public static final int DM_INTERLACEDDEVMODE
dmDisplayFlags
flags.- See Also:
-
DMDISPLAYFLAGS_TEXTMODE
public static final int DMDISPLAYFLAGS_TEXTMODEDEVMODE
dmDisplayFlags
flags.- See Also:
-
PFD_DOUBLEBUFFER
public static final int PFD_DOUBLEBUFFERPIXELFORMATDESCRIPTOR
flags.- See Also:
-
PFD_STEREO
public static final int PFD_STEREOPIXELFORMATDESCRIPTOR
flags.- See Also:
-
PFD_DRAW_TO_WINDOW
public static final int PFD_DRAW_TO_WINDOWPIXELFORMATDESCRIPTOR
flags.- See Also:
-
PFD_DRAW_TO_BITMAP
public static final int PFD_DRAW_TO_BITMAPPIXELFORMATDESCRIPTOR
flags.- See Also:
-
PFD_SUPPORT_GDI
public static final int PFD_SUPPORT_GDIPIXELFORMATDESCRIPTOR
flags.- See Also:
-
PFD_SUPPORT_OPENGL
public static final int PFD_SUPPORT_OPENGLPIXELFORMATDESCRIPTOR
flags.- See Also:
-
PFD_GENERIC_FORMAT
public static final int PFD_GENERIC_FORMATPIXELFORMATDESCRIPTOR
flags.- See Also:
-
PFD_NEED_PALETTE
public static final int PFD_NEED_PALETTEPIXELFORMATDESCRIPTOR
flags.- See Also:
-
PFD_NEED_SYSTEM_PALETTE
public static final int PFD_NEED_SYSTEM_PALETTEPIXELFORMATDESCRIPTOR
flags.- See Also:
-
PFD_SWAP_EXCHANGE
public static final int PFD_SWAP_EXCHANGEPIXELFORMATDESCRIPTOR
flags.- See Also:
-
PFD_SWAP_COPY
public static final int PFD_SWAP_COPYPIXELFORMATDESCRIPTOR
flags.- See Also:
-
PFD_SWAP_LAYER_BUFFERS
public static final int PFD_SWAP_LAYER_BUFFERSPIXELFORMATDESCRIPTOR
flags.- See Also:
-
PFD_GENERIC_ACCELERATED
public static final int PFD_GENERIC_ACCELERATEDPIXELFORMATDESCRIPTOR
flags.- See Also:
-
PFD_SUPPORT_DIRECTDRAW
public static final int PFD_SUPPORT_DIRECTDRAWPIXELFORMATDESCRIPTOR
flags.- See Also:
-
PFD_DIRECT3D_ACCELERATED
public static final int PFD_DIRECT3D_ACCELERATEDPIXELFORMATDESCRIPTOR
flags.- See Also:
-
PFD_SUPPORT_COMPOSITION
public static final int PFD_SUPPORT_COMPOSITIONPIXELFORMATDESCRIPTOR
flags.- See Also:
-
PFD_DEPTH_DONTCARE
public static final int PFD_DEPTH_DONTCAREPIXELFORMATDESCRIPTOR
flags.- See Also:
-
PFD_DOUBLEBUFFER_DONTCARE
public static final int PFD_DOUBLEBUFFER_DONTCAREPIXELFORMATDESCRIPTOR
flags.- See Also:
-
PFD_STEREO_DONTCARE
public static final int PFD_STEREO_DONTCAREPIXELFORMATDESCRIPTOR
flags.- See Also:
-
PFD_TYPE_RGBA
public static final byte PFD_TYPE_RGBAPIXELFORMATDESCRIPTOR
pixel types.- See Also:
-
PFD_TYPE_COLORINDEX
public static final byte PFD_TYPE_COLORINDEXPIXELFORMATDESCRIPTOR
pixel types.- See Also:
-
PFD_MAIN_PLANE
public static final byte PFD_MAIN_PLANEPIXELFORMATDESCRIPTOR
layer types.- See Also:
-
PFD_OVERLAY_PLANE
public static final byte PFD_OVERLAY_PLANEPIXELFORMATDESCRIPTOR
layer types.- See Also:
-
PFD_UNDERLAY_PLANE
public static final byte PFD_UNDERLAY_PLANEPIXELFORMATDESCRIPTOR
layer types.- See Also:
-
-
Method Details
-
getLibrary
Returns the gdi32SharedLibrary
. -
nChoosePixelFormat
public static int nChoosePixelFormat(long hdc, long pixelFormatDescriptor, long __functionAddress) Unsafe version of:ChoosePixelFormat(long, org.lwjgl.system.windows.PIXELFORMATDESCRIPTOR)
-
nChoosePixelFormat
public static int nChoosePixelFormat(long hdc, long pixelFormatDescriptor) Unsafe version of:ChoosePixelFormat(long, org.lwjgl.system.windows.PIXELFORMATDESCRIPTOR)
-
ChoosePixelFormat
Attempts to match an appropriate pixel format supported by a device context to a given pixel format specification.- Parameters:
hdc
- the device context that the function examines to determine the best match for the pixel format descriptor pointed to bypixelFormatDescriptor
pixelFormatDescriptor
- aPIXELFORMATDESCRIPTOR
structure that specifies the requested pixel format
-
nDescribePixelFormat
public static int nDescribePixelFormat(long hdc, int pixelFormat, int bytes, long pixelFormatDescriptor, long __functionAddress) -
nDescribePixelFormat
public static int nDescribePixelFormat(long hdc, int pixelFormat, int bytes, long pixelFormatDescriptor) -
DescribePixelFormat
public static int DescribePixelFormat(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 thePIXELFORMATDESCRIPTOR
structure pointed to by pixelFormatDescriptor with that pixel format data. The return value is the maximum pixel format index of the device context.- Parameters:
hdc
- 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
. ThewglDescribePixelFormat
function stores no more thanbytes
bytes of data to that structure. Set this value toPIXELFORMATDESCRIPTOR.SIZEOF
.pixelFormatDescriptor
- aPIXELFORMATDESCRIPTOR
structure whose members the function sets with pixel format data. The function stores the number of bytes copied to the structure in the structure'ssize
member. If, upon entry,pixelFormatDescriptor
isNULL
, 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(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 thePIXELFORMATDESCRIPTOR
structure pointed to by pixelFormatDescriptor with that pixel format data. The return value is the maximum pixel format index of the device context.- Parameters:
hdc
- 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
- aPIXELFORMATDESCRIPTOR
structure whose members the function sets with pixel format data. The function stores the number of bytes copied to the structure in the structure'ssize
member. If, upon entry,pixelFormatDescriptor
isNULL
, 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 hdc, long __functionAddress) Unsafe version of:GetPixelFormat(long)
-
GetPixelFormat
public static int GetPixelFormat(long hdc) Obtains the index of the currently selected pixel format of the specified device context.- Parameters:
hdc
- the device context of the currently selected pixel format index returned by the function
-
nSetPixelFormat
public static int nSetPixelFormat(long hdc, int pixelFormat, long pixelFormatDescriptor, long __functionAddress) Unsafe version of:SetPixelFormat(long, int, org.lwjgl.system.windows.PIXELFORMATDESCRIPTOR)
-
nSetPixelFormat
public static int nSetPixelFormat(long hdc, int pixelFormat, long pixelFormatDescriptor) Unsafe version of:SetPixelFormat(long, int, org.lwjgl.system.windows.PIXELFORMATDESCRIPTOR)
-
SetPixelFormat
public static boolean SetPixelFormat(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:
hdc
- 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
- aPIXELFORMATDESCRIPTOR
structure 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 dc, long __functionAddress) Unsafe version of:SwapBuffers(long)
-
SwapBuffers
public static boolean SwapBuffers(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.- Parameters:
dc
- 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.
-