Top Fields Constructors Methods
jogamp.newt.driver.x11

pack-priv Class RandR11

extends Object
implements RandR
Class Inheritance
All Implemented Interfaces
jogamp.newt.driver.x11.RandR
Imports
com.jogamp.nativewindow.util.RectangleImmutable, jogamp.newt.MonitorModeProps, .ScreenImpl, com.jogamp.common.util.VersionNumber, com.jogamp.newt.MonitorDevice, .MonitorMode, .Screen

Field Summary

Modifier and TypeField and Description
private static final boolean
private int
private int[]
private int[]
private int
private int[][]
private int
pack-priv volatile boolean
pack-priv volatile int
pack-priv volatile int
pack-priv volatile int
pack-priv volatile int
private static final int
private final VersionNumber
private int

Constructor Summary

AccessConstructor and Description
pack-priv
RandR11(final VersionNumber version)

Method Summary

Modifier and TypeMethod and Description
public boolean
beginInitialQuery(final long
TODO
dpy
,
final ScreenDriver
TODO
screen
)

Implements jogamp.newt.driver.x11.RandR.beginInitialQuery.

Encapsulate initial device query allowing caching of internal data structures.
private void
public void
dumpInfo(final long dpy, final int screen_idx)

Implements jogamp.newt.driver.x11.RandR.dumpInfo.

public void
private static native void
freeScreenConfiguration0(long screenConfiguration)

public int[]
getAvailableRotations(final long dpy, final ScreenDriver screen, final int crt_id)

Implements jogamp.newt.driver.x11.RandR.getAvailableRotations.

private static native int[]

Returns:

int[] { rot1, .. }
getAvailableScreenRotations0
(long display, int screen_index)

public int[]
getCurrentMonitorModeProps(final long dpy, final ScreenDriver screen, final int crt_id)

Implements jogamp.newt.driver.x11.RandR.getCurrentMonitorModeProps.

private static native int
getCurrentScreenRate0(long screenConfiguration)

private static native int
getCurrentScreenResolutionIndex0(long screenConfiguration)

private static native int
getCurrentScreenRotation0(long screenConfiguration)

public int[]
public int[]
getMonitorDeviceProps(final long dpy, final ScreenDriver screen, final MonitorModeProps.Cache cache, final int crt_id)

Implements jogamp.newt.driver.x11.RandR.getMonitorDeviceProps.

public int[]
getMonitorDeviceViewport(final long dpy, final ScreenDriver screen, final int crt_id)

Implements jogamp.newt.driver.x11.RandR.getMonitorDeviceViewport.

public int[]
getMonitorModeProps(final long dpy, final ScreenDriver screen, final int
w/o indexing rotation
mode_idx
)

Implements jogamp.newt.driver.x11.RandR.getMonitorModeProps.

private static native int
getNumScreenResolutions0(long display, int screen_index)

private static native long
getScreenConfiguration0(long display, int screen_index)

private static native int[]
getScreenRates0(long display, int screen_index, int mode_index)

private static native int[]

Returns:

int[] { width, height, widthmm, heightmm }
getScreenResolution0
(long display, int screen_index, int mode_index)

public final VersionNumber
public void
sendRRScreenChangeNotify(final long dpy, final long event)

Implements jogamp.newt.driver.x11.RandR.sendRRScreenChangeNotify.

Invoked from Display's EDT thread for message handling.
private static native boolean
sendRRScreenChangeNotify0(long display, int screen_index, final long event, int mode_index, int freq, int rot)

public boolean
setCurrentMonitorModeStart(final long dpy, final ScreenDriver screen, final MonitorDevice monitor, final MonitorMode mode)

Implements jogamp.newt.driver.x11.RandR.setCurrentMonitorModeStart.

The device shall be locked, blocking message handling.
public boolean
setCurrentMonitorModeWait(final ScreenDriver screen)

Implements jogamp.newt.driver.x11.RandR.setCurrentMonitorModeWait.

The device must not be locked, allowing message handling.
private static native boolean
setCurrentScreenModeStart0(long display, int screen_index, long screenConfiguration, int mode_index, int freq, int rot)

needs own Display connection for XRANDR event handling

public String
toString()

Overrides java.lang.Object.toString.

Implements jogamp.newt.driver.x11.RandR.toString.

Returns a string representation of the object.
public final void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

DEBUGback to summary
private static final boolean DEBUG
heightMMback to summary
private int heightMM
idx_rateback to summary
private int[] idx_rate
idx_resback to summary
private int[] idx_res
modeCountback to summary
private int modeCount
nratesback to summary
private int[][] nrates
resolutionCountback to summary
private int resolutionCount
set_doneback to summary
pack-priv volatile boolean set_done
set_freqback to summary
pack-priv volatile int set_freq
set_mode_idxback to summary
pack-priv volatile int set_mode_idx
set_rotback to summary
pack-priv volatile int set_rot
set_screen_idxback to summary
pack-priv volatile int set_screen_idx
SINGLE_CRT_IDback to summary
private static final int SINGLE_CRT_ID
versionback to summary
private final VersionNumber version
widthMMback to summary
private int widthMM

Constructor Detail

RandR11back to summary
pack-priv RandR11(final VersionNumber version)

Method Detail

beginInitialQueryback to summary
public boolean beginInitialQuery(final long dpy, final ScreenDriver screen)

Implements jogamp.newt.driver.x11.RandR.beginInitialQuery.

Doc from jogamp.newt.driver.x11.RandR.beginInitialQuery.

Encapsulate initial device query allowing caching of internal data structures. Methods covered:

Above methods may be called w/o begin/end, in which case no internal data structures can be cached:

Parameters
dpy:long

TODO

screen:ScreenDriver

TODO

Returns:boolean

TODO

Annotations
@Override
clearSetModeStateback to summary
private void clearSetModeState()
dumpInfoback to summary
public void dumpInfo(final long dpy, final int screen_idx)

Implements jogamp.newt.driver.x11.RandR.dumpInfo.

Annotations
@Override
endInitialQueryback to summary
public void endInitialQuery(final long dpy, final ScreenDriver screen)

Implements jogamp.newt.driver.x11.RandR.endInitialQuery.

Annotations
@Override
freeScreenConfiguration0back to summary
private static native void freeScreenConfiguration0(long screenConfiguration)
getAvailableRotationsback to summary
public int[] getAvailableRotations(final long dpy, final ScreenDriver screen, final int crt_id)

Implements jogamp.newt.driver.x11.RandR.getAvailableRotations.

Annotations
@Override
getAvailableScreenRotations0back to summary
private static native int[] getAvailableScreenRotations0(long display, int screen_index)
Returns:int[]

int[] { rot1, .. }

getCurrentMonitorModePropsback to summary
public int[] getCurrentMonitorModeProps(final long dpy, final ScreenDriver screen, final int crt_id)

Implements jogamp.newt.driver.x11.RandR.getCurrentMonitorModeProps.

Annotations
@Override
getCurrentScreenRate0back to summary
private static native int getCurrentScreenRate0(long screenConfiguration)
getCurrentScreenResolutionIndex0back to summary
private static native int getCurrentScreenResolutionIndex0(long screenConfiguration)
getCurrentScreenRotation0back to summary
private static native int getCurrentScreenRotation0(long screenConfiguration)
getMonitorDeviceIdsback to summary
public int[] getMonitorDeviceIds(final long dpy, final ScreenDriver screen)

Implements jogamp.newt.driver.x11.RandR.getMonitorDeviceIds.

Annotations
@Override
getMonitorDevicePropsback to summary
public int[] getMonitorDeviceProps(final long dpy, final ScreenDriver screen, final MonitorModeProps.Cache cache, final int crt_id)

Implements jogamp.newt.driver.x11.RandR.getMonitorDeviceProps.

Annotations
@Override
getMonitorDeviceViewportback to summary
public int[] getMonitorDeviceViewport(final long dpy, final ScreenDriver screen, final int crt_id)

Implements jogamp.newt.driver.x11.RandR.getMonitorDeviceViewport.

Annotations
@Override
getMonitorModePropsback to summary
public int[] getMonitorModeProps(final long dpy, final ScreenDriver screen, final int mode_idx)

Implements jogamp.newt.driver.x11.RandR.getMonitorModeProps.

Parameters
mode_idx:int

Doc from jogamp.newt.driver.x11.RandR.getMonitorModeProps.

w/o indexing rotation

Returns:int[]

Doc from jogamp.newt.driver.x11.RandR.getMonitorModeProps.

props w/o actual rotation

Annotations
@Override
getNumScreenResolutions0back to summary
private static native int getNumScreenResolutions0(long display, int screen_index)
getScreenConfiguration0back to summary
private static native long getScreenConfiguration0(long display, int screen_index)
getScreenRates0back to summary
private static native int[] getScreenRates0(long display, int screen_index, int mode_index)
getScreenResolution0back to summary
private static native int[] getScreenResolution0(long display, int screen_index, int mode_index)
Returns:int[]

int[] { width, height, widthmm, heightmm }

getVersionback to summary
public final VersionNumber getVersion()

Implements jogamp.newt.driver.x11.RandR.getVersion.

Annotations
@Override
sendRRScreenChangeNotifyback to summary
public void sendRRScreenChangeNotify(final long dpy, final long event)

Implements jogamp.newt.driver.x11.RandR.sendRRScreenChangeNotify.

Doc from jogamp.newt.driver.x11.RandR.sendRRScreenChangeNotify.

Invoked from Display's EDT thread for message handling.

Annotations
@Override
sendRRScreenChangeNotify0back to summary
private static native boolean sendRRScreenChangeNotify0(long display, int screen_index, final long event, int mode_index, int freq, int rot)
setCurrentMonitorModeStartback to summary
public boolean setCurrentMonitorModeStart(final long dpy, final ScreenDriver screen, final MonitorDevice monitor, final MonitorMode mode)

Implements jogamp.newt.driver.x11.RandR.setCurrentMonitorModeStart.

Doc from jogamp.newt.driver.x11.RandR.setCurrentMonitorModeStart.

The device shall be locked, blocking message handling.

Annotations
@Override
setCurrentMonitorModeWaitback to summary
public boolean setCurrentMonitorModeWait(final ScreenDriver screen)

Implements jogamp.newt.driver.x11.RandR.setCurrentMonitorModeWait.

Doc from jogamp.newt.driver.x11.RandR.setCurrentMonitorModeWait.

The device must not be locked, allowing message handling.

Annotations
@Override
setCurrentScreenModeStart0back to summary
private static native boolean setCurrentScreenModeStart0(long display, int screen_index, long screenConfiguration, int mode_index, int freq, int rot)

needs own Display connection for XRANDR event handling

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Implements jogamp.newt.driver.x11.RandR.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override
updateScreenViewportback to summary
public final void updateScreenViewport(final long dpy, final ScreenDriver screen, final RectangleImmutable viewport)

Implements jogamp.newt.driver.x11.RandR.updateScreenViewport.

Annotations
@Override