public interface VisualIDHolder
Allows queries of different types of native visual IDs,
see #getVisualID(int)
.
Modifier and Type | Interface and Description |
---|---|
static class |
VisualIDHolder.VIDComparator
Comparing
VisualIDHolder.VIDType.NATIVE |
static class |
VisualIDHolder.VIDType |
Modifier and Type | Field and Description |
---|---|
static int |
VID_UNDEFINED
getVisualID(VIDType) result indicating an undefined value,
which could be cause by an unsupported query. |
Modifier and Type | Method and Description |
---|---|
int |
getVisualID(VisualIDHolder.VIDType type)
Returns the native visual ID of the given
type
if supported, or VID_UNDEFINED if not supported. |
static final int VID_UNDEFINED
getVisualID(VIDType)
result indicating an undefined value,
which could be cause by an unsupported query.
We assume the const value 0
doesn't reflect a valid native visual ID
and is interpreted as no value on all platforms.
This is currently true for Android, X11 and Windows.
int getVisualID(VisualIDHolder.VIDType type) throws NativeWindowException
type
if supported, or VID_UNDEFINED
if not supported.
Depending on the native windowing system, type
is handled as follows:
EGL_CONFIG
, WIN32_PFD
INTRINSIC
: X11 XVisual IDNATIVE
: X11 XVisual IDX11_XVISUAL
: X11 XVisual IDX11_FBCONFIG
: VID_UNDEFINED
EGL_CONFIG
, WIN32_PFD
INTRINSIC
: X11 XVisual IDNATIVE
: X11 XVisual IDX11_XVISUAL
: X11 XVisual IDX11_FBCONFIG
: X11 FBConfig ID or VID_UNDEFINED
EGL_CONFIG
, X11_XVISUAL
, X11_FBCONFIG
INTRINSIC
: Win32 PIXELFORMATDESCRIPTOR IDNATIVE
: Win32 PIXELFORMATDESCRIPTOR IDWIN32_PFD
: Win32 PIXELFORMATDESCRIPTOR IDX11_XVISUAL
, X11_FBCONFIG
, WIN32_PFD
INTRINSIC
: EGL Config IDNATIVE
: EGL NativeVisual ID (X11 XVisual ID, Win32 PIXELFORMATDESCRIPTOR ID, ...)EGL_CONFIG
: EGL Config IDINTRINSIC
and NATIVE
are always handled,
but may result in VID_UNDEFINED
. The latter is true if
the native value are actually undefined or the corresponding object is not
mapped to a native visual object.NativeWindowException
- if type
is neither
INTRINSIC
nor NATIVE
and does not match the native implementation.Copyright 2010 JogAmp Community.