public class GDI32
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GDI32.Functions
Contains the function pointers loaded from the gdi32
SharedLibrary. |
| Modifier and Type | Field and Description |
|---|---|
static int |
DISPLAY_DEVICE_ACTIVE
Child display device state flags.
|
static int |
DISPLAY_DEVICE_ATTACHED
Child display device state flags.
|
static int |
DISPLAY_DEVICE_ATTACHED_TO_DESKTOP
Display device state flags.
|
static int |
DISPLAY_DEVICE_DISCONNECT
Display device state flags.
|
static int |
DISPLAY_DEVICE_MIRRORING_DRIVER
Display device state flags.
|
static int |
DISPLAY_DEVICE_MODESPRUNED
Display device state flags.
|
static int |
DISPLAY_DEVICE_MULTI_DRIVER
Display device state flags.
|
static int |
DISPLAY_DEVICE_PRIMARY_DEVICE
Display device state flags.
|
static int |
DISPLAY_DEVICE_REMOTE
Display device state flags.
|
static int |
DISPLAY_DEVICE_REMOVABLE
Display device state flags.
|
static int |
DISPLAY_DEVICE_TS_COMPATIBLE
Display device state flags.
|
static int |
DISPLAY_DEVICE_UNSAFE_MODES_ON
Display device state flags.
|
static int |
DISPLAY_DEVICE_VGA_COMPATIBLE
Display device state flags.
|
static int |
DM_BITSPERPEL
DEVMODE field selection bits. |
static int |
DM_COLLATE
DEVMODE field selection bits. |
static int |
DM_COLOR
DEVMODE field selection bits. |
static int |
DM_COPIES
DEVMODE field selection bits. |
static int |
DM_DEFAULTSOURCE
DEVMODE field selection bits. |
static int |
DM_DISPLAYFIXEDOUTPUT
DEVMODE field selection bits. |
static int |
DM_DISPLAYFLAGS
DEVMODE field selection bits. |
static int |
DM_DISPLAYFREQUENCY
DEVMODE field selection bits. |
static int |
DM_DISPLAYORIENTATION
DEVMODE field selection bits. |
static int |
DM_DITHERTYPE
DEVMODE field selection bits. |
static int |
DM_DUPLEX
DEVMODE field selection bits. |
static int |
DM_FORMNAME
DEVMODE field selection bits. |
static int |
DM_ICMINTENT
DEVMODE field selection bits. |
static int |
DM_ICMMETHOD
DEVMODE field selection bits. |
static int |
DM_INTERLACED
DEVMODE dmDisplayFlags flags. |
static int |
DM_LOGPIXELS
DEVMODE field selection bits. |
static int |
DM_MEDIATYPE
DEVMODE field selection bits. |
static int |
DM_NUP
DEVMODE field selection bits. |
static int |
DM_ORIENTATION
DEVMODE field selection bits. |
static int |
DM_PANNINGHEIGHT
DEVMODE field selection bits. |
static int |
DM_PANNINGWIDTH
DEVMODE field selection bits. |
static int |
DM_PAPERLENGTH
DEVMODE field selection bits. |
static int |
DM_PAPERSIZE
DEVMODE field selection bits. |
static int |
DM_PAPERWIDTH
DEVMODE field selection bits. |
static int |
DM_PELSHEIGHT
DEVMODE field selection bits. |
static int |
DM_PELSWIDTH
DEVMODE field selection bits. |
static int |
DM_POSITION
DEVMODE field selection bits. |
static int |
DM_PRINTQUALITY
DEVMODE field selection bits. |
static int |
DM_SCALE
DEVMODE field selection bits. |
static int |
DM_SPECVERSION
DEVMODE specification version. |
static int |
DM_TTOPTION
DEVMODE field selection bits. |
static int |
DM_YRESOLUTION
DEVMODE field selection bits. |
static int |
DMDFO_CENTER
DEVMODE dmDisplayFixedOutput specifications. |
static int |
DMDFO_DEFAULT
DEVMODE dmDisplayFixedOutput specifications. |
static int |
DMDFO_STRETCH
DEVMODE dmDisplayFixedOutput specifications. |
static int |
DMDISPLAYFLAGS_TEXTMODE
DEVMODE dmDisplayFlags flags. |
static int |
DMDO_180
DEVMODE dmDisplayOrientation specifications. |
static int |
DMDO_270
DEVMODE dmDisplayOrientation specifications. |
static int |
DMDO_90
DEVMODE dmDisplayOrientation specifications. |
static int |
DMDO_DEFAULT
DEVMODE dmDisplayOrientation specifications. |
static int |
PFD_DEPTH_DONTCARE
PIXELFORMATDESCRIPTOR flags. |
static int |
PFD_DIRECT3D_ACCELERATED
PIXELFORMATDESCRIPTOR flags. |
static int |
PFD_DOUBLEBUFFER
PIXELFORMATDESCRIPTOR flags. |
static int |
PFD_DOUBLEBUFFER_DONTCARE
PIXELFORMATDESCRIPTOR flags. |
static int |
PFD_DRAW_TO_BITMAP
PIXELFORMATDESCRIPTOR flags. |
static int |
PFD_DRAW_TO_WINDOW
PIXELFORMATDESCRIPTOR flags. |
static int |
PFD_GENERIC_ACCELERATED
PIXELFORMATDESCRIPTOR flags. |
static int |
PFD_GENERIC_FORMAT
PIXELFORMATDESCRIPTOR flags. |
static byte |
PFD_MAIN_PLANE
PIXELFORMATDESCRIPTOR layer types. |
static int |
PFD_NEED_PALETTE
PIXELFORMATDESCRIPTOR flags. |
static int |
PFD_NEED_SYSTEM_PALETTE
PIXELFORMATDESCRIPTOR flags. |
static byte |
PFD_OVERLAY_PLANE
PIXELFORMATDESCRIPTOR layer types. |
static int |
PFD_STEREO
PIXELFORMATDESCRIPTOR flags. |
static int |
PFD_STEREO_DONTCARE
PIXELFORMATDESCRIPTOR flags. |
static int |
PFD_SUPPORT_COMPOSITION
PIXELFORMATDESCRIPTOR flags. |
static int |
PFD_SUPPORT_DIRECTDRAW
PIXELFORMATDESCRIPTOR flags. |
static int |
PFD_SUPPORT_GDI
PIXELFORMATDESCRIPTOR flags. |
static int |
PFD_SUPPORT_OPENGL
PIXELFORMATDESCRIPTOR flags. |
static int |
PFD_SWAP_COPY
PIXELFORMATDESCRIPTOR flags. |
static int |
PFD_SWAP_EXCHANGE
PIXELFORMATDESCRIPTOR flags. |
static int |
PFD_SWAP_LAYER_BUFFERS
PIXELFORMATDESCRIPTOR flags. |
static byte |
PFD_TYPE_COLORINDEX
PIXELFORMATDESCRIPTOR pixel types. |
static byte |
PFD_TYPE_RGBA
PIXELFORMATDESCRIPTOR pixel types. |
static byte |
PFD_UNDERLAY_PLANE
PIXELFORMATDESCRIPTOR layer types. |
| Modifier and Type | Method and Description |
|---|---|
static 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 org.lwjgl.system.SharedLibrary |
getLibrary()
Returns the gdi32
SharedLibrary. |
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.
|
public static final int DISPLAY_DEVICE_ATTACHED_TO_DESKTOP
public static final int DISPLAY_DEVICE_MULTI_DRIVER
public static final int DISPLAY_DEVICE_PRIMARY_DEVICE
public static final int DISPLAY_DEVICE_MIRRORING_DRIVER
public static final int DISPLAY_DEVICE_VGA_COMPATIBLE
public static final int DISPLAY_DEVICE_REMOVABLE
public static final int DISPLAY_DEVICE_MODESPRUNED
public static final int DISPLAY_DEVICE_REMOTE
public static final int DISPLAY_DEVICE_DISCONNECT
public static final int DISPLAY_DEVICE_TS_COMPATIBLE
public static final int DISPLAY_DEVICE_UNSAFE_MODES_ON
public static final int DISPLAY_DEVICE_ACTIVE
public static final int DISPLAY_DEVICE_ATTACHED
public static final int DM_SPECVERSION
DEVMODE specification version.public static final int DM_ORIENTATION
DEVMODE field selection bits.public static final int DM_PAPERSIZE
DEVMODE field selection bits.public static final int DM_PAPERLENGTH
DEVMODE field selection bits.public static final int DM_PAPERWIDTH
DEVMODE field selection bits.public static final int DM_SCALE
DEVMODE field selection bits.public static final int DM_POSITION
DEVMODE field selection bits.public static final int DM_NUP
DEVMODE field selection bits.public static final int DM_DISPLAYORIENTATION
DEVMODE field selection bits.public static final int DM_COPIES
DEVMODE field selection bits.public static final int DM_DEFAULTSOURCE
DEVMODE field selection bits.public static final int DM_PRINTQUALITY
DEVMODE field selection bits.public static final int DM_COLOR
DEVMODE field selection bits.public static final int DM_DUPLEX
DEVMODE field selection bits.public static final int DM_YRESOLUTION
DEVMODE field selection bits.public static final int DM_TTOPTION
DEVMODE field selection bits.public static final int DM_COLLATE
DEVMODE field selection bits.public static final int DM_FORMNAME
DEVMODE field selection bits.public static final int DM_LOGPIXELS
DEVMODE field selection bits.public static final int DM_BITSPERPEL
DEVMODE field selection bits.public static final int DM_PELSWIDTH
DEVMODE field selection bits.public static final int DM_PELSHEIGHT
DEVMODE field selection bits.public static final int DM_DISPLAYFLAGS
DEVMODE field selection bits.public static final int DM_DISPLAYFREQUENCY
DEVMODE field selection bits.public static final int DM_ICMMETHOD
DEVMODE field selection bits.public static final int DM_ICMINTENT
DEVMODE field selection bits.public static final int DM_MEDIATYPE
DEVMODE field selection bits.public static final int DM_DITHERTYPE
DEVMODE field selection bits.public static final int DM_PANNINGWIDTH
DEVMODE field selection bits.public static final int DM_PANNINGHEIGHT
DEVMODE field selection bits.public static final int DM_DISPLAYFIXEDOUTPUT
DEVMODE field selection bits.public static final int DMDO_DEFAULT
DEVMODE dmDisplayOrientation specifications.public static final int DMDO_90
DEVMODE dmDisplayOrientation specifications.public static final int DMDO_180
DEVMODE dmDisplayOrientation specifications.public static final int DMDO_270
DEVMODE dmDisplayOrientation specifications.public static final int DMDFO_DEFAULT
DEVMODE dmDisplayFixedOutput specifications.public static final int DMDFO_STRETCH
DEVMODE dmDisplayFixedOutput specifications.public static final int DMDFO_CENTER
DEVMODE dmDisplayFixedOutput specifications.public static final int DM_INTERLACED
DEVMODE dmDisplayFlags flags.public static final int DMDISPLAYFLAGS_TEXTMODE
DEVMODE dmDisplayFlags flags.public static final int PFD_DOUBLEBUFFER
PIXELFORMATDESCRIPTOR flags.public static final int PFD_STEREO
PIXELFORMATDESCRIPTOR flags.public static final int PFD_DRAW_TO_WINDOW
PIXELFORMATDESCRIPTOR flags.public static final int PFD_DRAW_TO_BITMAP
PIXELFORMATDESCRIPTOR flags.public static final int PFD_SUPPORT_GDI
PIXELFORMATDESCRIPTOR flags.public static final int PFD_SUPPORT_OPENGL
PIXELFORMATDESCRIPTOR flags.public static final int PFD_GENERIC_FORMAT
PIXELFORMATDESCRIPTOR flags.public static final int PFD_NEED_PALETTE
PIXELFORMATDESCRIPTOR flags.public static final int PFD_NEED_SYSTEM_PALETTE
PIXELFORMATDESCRIPTOR flags.public static final int PFD_SWAP_EXCHANGE
PIXELFORMATDESCRIPTOR flags.public static final int PFD_SWAP_COPY
PIXELFORMATDESCRIPTOR flags.public static final int PFD_SWAP_LAYER_BUFFERS
PIXELFORMATDESCRIPTOR flags.public static final int PFD_GENERIC_ACCELERATED
PIXELFORMATDESCRIPTOR flags.public static final int PFD_SUPPORT_DIRECTDRAW
PIXELFORMATDESCRIPTOR flags.public static final int PFD_DIRECT3D_ACCELERATED
PIXELFORMATDESCRIPTOR flags.public static final int PFD_SUPPORT_COMPOSITION
PIXELFORMATDESCRIPTOR flags.public static final int PFD_DEPTH_DONTCARE
PIXELFORMATDESCRIPTOR flags.public static final int PFD_DOUBLEBUFFER_DONTCARE
PIXELFORMATDESCRIPTOR flags.public static final int PFD_STEREO_DONTCARE
PIXELFORMATDESCRIPTOR flags.public static final byte PFD_TYPE_RGBA
PIXELFORMATDESCRIPTOR pixel types.public static final byte PFD_TYPE_COLORINDEX
PIXELFORMATDESCRIPTOR pixel types.public static final byte PFD_MAIN_PLANE
PIXELFORMATDESCRIPTOR layer types.public static final byte PFD_OVERLAY_PLANE
PIXELFORMATDESCRIPTOR layer types.public static final byte PFD_UNDERLAY_PLANE
PIXELFORMATDESCRIPTOR layer types.public static org.lwjgl.system.SharedLibrary getLibrary()
SharedLibrary.public static int nChoosePixelFormat(long hdc,
long pixelFormatDescriptor,
long __functionAddress)
ChoosePixelFormat(long, org.lwjgl.system.windows.PIXELFORMATDESCRIPTOR)public static int nChoosePixelFormat(long hdc,
long pixelFormatDescriptor)
ChoosePixelFormat(long, org.lwjgl.system.windows.PIXELFORMATDESCRIPTOR)public static int ChoosePixelFormat(long hdc,
PIXELFORMATDESCRIPTOR pixelFormatDescriptor)
hdc - the device context that the function examines to determine the best match for the pixel format descriptor pointed to by pixelFormatDescriptorpixelFormatDescriptor - a PIXELFORMATDESCRIPTOR structure that specifies the requested pixel formatpublic static int nDescribePixelFormat(long hdc,
int pixelFormat,
int bytes,
long pixelFormatDescriptor,
long __functionAddress)
public static int nDescribePixelFormat(long hdc,
int pixelFormat,
int bytes,
long pixelFormatDescriptor)
public static int DescribePixelFormat(long hdc,
int pixelFormat,
int bytes,
@Nullable
PIXELFORMATDESCRIPTOR pixelFormatDescriptor)
PIXELFORMATDESCRIPTOR structure pointed to by pixelFormatDescriptor with that pixel format data. The return value is the maximum pixel format
index of the device context.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 by pixelFormatDescriptor. The wglDescribePixelFormat function stores no more than
bytes bytes of data to that structure. Set this value to PIXELFORMATDESCRIPTOR.SIZEOF.pixelFormatDescriptor - a PIXELFORMATDESCRIPTOR structure whose members the function sets with pixel format data. The function stores the number of bytes copied to
the structure in the structure's size member. If, upon entry, pixelFormatDescriptor is NULL, 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.public static int DescribePixelFormat(long hdc,
int pixelFormat,
@Nullable
PIXELFORMATDESCRIPTOR pixelFormatDescriptor)
PIXELFORMATDESCRIPTOR structure pointed to by pixelFormatDescriptor with that pixel format data. The return value is the maximum pixel format
index of the device context.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 - a PIXELFORMATDESCRIPTOR structure whose members the function sets with pixel format data. The function stores the number of bytes copied to
the structure in the structure's size member. If, upon entry, pixelFormatDescriptor is NULL, 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.public static int nGetPixelFormat(long hdc,
long __functionAddress)
GetPixelFormat(long)public static int GetPixelFormat(long hdc)
hdc - the device context of the currently selected pixel format index returned by the functionpublic static int nSetPixelFormat(long hdc,
int pixelFormat,
long pixelFormatDescriptor,
long __functionAddress)
SetPixelFormat(long, int, org.lwjgl.system.windows.PIXELFORMATDESCRIPTOR)public static int nSetPixelFormat(long hdc,
int pixelFormat,
long pixelFormatDescriptor)
SetPixelFormat(long, int, org.lwjgl.system.windows.PIXELFORMATDESCRIPTOR)public static boolean SetPixelFormat(long hdc,
int pixelFormat,
@Nullable
PIXELFORMATDESCRIPTOR pixelFormatDescriptor)
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 - a PIXELFORMATDESCRIPTOR 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.public static int nSwapBuffers(long dc,
long __functionAddress)
SwapBuffers(long)public static boolean SwapBuffers(long dc)
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.Copyright LWJGL. All Rights Reserved. License terms.