Top Description Fields Constructors Methods
com.jogamp.nativewindow.x11

public Class X11GraphicsConfiguration

extends MutableGraphicsConfiguration
implements Cloneable
Class Inheritance
All Implemented Interfaces
java.lang.Cloneable
Known Direct Subclasses
jogamp.opengl.x11.glx.X11GLXGraphicsConfiguration
Imports
com.jogamp.common.util.Bitfield, com.jogamp.nativewindow.CapabilitiesImmutable, .MutableGraphicsConfiguration, jogamp.nativewindow.x11.X11Capabilities, .X11Lib, .XRenderDirectFormat, .XRenderPictFormat, .XVisualInfo

Encapsulates a graphics configuration, or OpenGL pixel format, on X11 platforms. Objects of this type are returned from GraphicsConfigurationFactory.chooseGraphicsConfiguration() on X11 platforms when toolkits other than the AWT are being used.

Field Summary

Modifier and TypeField and Description
private XVisualInfo

Constructor Summary

AccessConstructor and Description
public
X11GraphicsConfiguration(final X11GraphicsScreen screen, final CapabilitiesImmutable capsChosen, final CapabilitiesImmutable capsRequested, final XVisualInfo info)

Method Summary

Modifier and TypeMethod and Description
public Object
public final int
public final XVisualInfo
protected final void
public String
toString()

Overrides com.jogamp.nativewindow.DefaultGraphicsConfiguration.toString.

Returns a string representation of the object.
protected static XRenderDirectFormat
XVisual2XRenderMask(final long dpy, final long visual)

protected static XRenderDirectFormat
XVisual2XRenderMask(final long dpy, final long visual, final XRenderPictFormat dest)

public static X11Capabilities
Inherited from com.jogamp.nativewindow.MutableGraphicsConfiguration:
setChosenCapabilitiessetScreen

Field Detail

infoback to summary
private XVisualInfo info

Constructor Detail

X11GraphicsConfigurationback to summary
public X11GraphicsConfiguration(final X11GraphicsScreen screen, final CapabilitiesImmutable capsChosen, final CapabilitiesImmutable capsRequested, final XVisualInfo info)

Method Detail

cloneback to summary
public Object clone()

Overrides com.jogamp.nativewindow.DefaultGraphicsConfiguration.clone.

Implements com.jogamp.nativewindow.AbstractGraphicsConfiguration.clone.

Doc from java.lang.Object.clone.

Creates and returns a copy of this object. The precise meaning of "copy" may depend on the class of the object. The general intent is that, for any object x, the expression:

x.clone() != x
will be true, and that the expression:
x.clone().getClass() == x.getClass()
will be true, but these are not absolute requirements. While it is typically the case that:
x.clone().equals(x)
will be true, this is not an absolute requirement.

By convention, the returned object should be obtained by calling super.clone. If a class and all of its superclasses (except Object) obey this convention, it will be the case that x.clone().getClass() == x.getClass().

By convention, the object returned by this method should be independent of this object (which is being cloned). To achieve this independence, it may be necessary to modify one or more fields of the object returned by super.clone before returning it. Typically, this means copying any mutable objects that comprise the internal "deep structure" of the object being cloned and replacing the references to these objects with references to the copies. If a class contains only primitive fields or references to immutable objects, then it is usually the case that no fields in the object returned by super.clone need to be modified.

Returns:Object

a clone of this instance.

Annotations
@Override
getXVisualIDback to summary
public final int getXVisualID()
getXVisualInfoback to summary
public final XVisualInfo getXVisualInfo()
setXVisualInfoback to summary
protected final void setXVisualInfo(final XVisualInfo info)
toStringback to summary
public String toString()

Overrides com.jogamp.nativewindow.DefaultGraphicsConfiguration.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override
XVisual2XRenderMaskback to summary
protected static XRenderDirectFormat XVisual2XRenderMask(final long dpy, final long visual)
XVisual2XRenderMaskback to summary
protected static XRenderDirectFormat XVisual2XRenderMask(final long dpy, final long visual, final XRenderPictFormat dest)
XVisualInfo2X11Capabilitiesback to summary
public static X11Capabilities XVisualInfo2X11Capabilities(final X11GraphicsDevice device, final XVisualInfo info)