Top Description Fields Constructors Methods
jogamp.newt.driver.x11

pack-priv Class RandR13

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

Mapping details:
MonitorMode.id   == XRR mode-id (not index)
MonitorDevice.id == XRR monitor-idx (not id)

Field Summary

Modifier and TypeField and Description
pack-priv IntLongHashMap
private static final boolean
pack-priv long
private final VersionNumber

Constructor Summary

AccessConstructor and Description
pack-priv
RandR13(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.
public void
dumpInfo(final long dpy, final int screen_idx)

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

private static native void
dumpInfo0(long display, int screen_index, long screenResources)

public void
private static native void
freeMonitorInfoHandle0(long monitorInfoHandle)

private static native void
freeScreenResources0(long screenResources)

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

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

private static native int[]
getAvailableRotations0(long monitorInfo)

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

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

private static native int[]
getMonitorCurrentMode0(long screenResources, long monitorInfo)

private static native int[]
getMonitorDevice0(long display, long screenResources, long monitorInfo, int crtc_id)

public int[]
private static native int[]
getMonitorDeviceIds0(long screenResources)

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.

private final long
getMonitorInfoHandle(final long dpy, final int screen_idx, final long screenResources, final int crt_id)

private static native long
getMonitorInfoHandle0(long display, int screen_index, long screenResources, int crtc_id)

private static native int[]
getMonitorMode0(long screenResources, int mode_index)

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[]
getMonitorViewport0(long monitorInfo)

private final long
getScreenResourceHandle(final long dpy, final int screen_idx)

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

public final VersionNumber
private final void
releaseMonitorInfoHandle(final long monitorInfoHandle)

private final void
releaseScreenResourceHandle(final long screenResourceHandle)

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 void
sendRRScreenChangeNotify0(long display, final long event)

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
setMonitorMode0(long display, int screen_index, long screenResources, long monitorInfo, int crtc_id, int mode_id, int rotation, int x, int y)

private static native boolean
setScreenViewport0(long display, int screen_index, long screenResources, int x, int y, int width, int height)

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

crtInfoHandleMapback to summary
pack-priv IntLongHashMap crtInfoHandleMap
DEBUGback to summary
private static final boolean DEBUG
sessionScreenResourcesback to summary
pack-priv long sessionScreenResources
versionback to summary
private final VersionNumber version

Constructor Detail

RandR13back to summary
pack-priv RandR13(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
dumpInfoback to summary
public void dumpInfo(final long dpy, final int screen_idx)

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

Annotations
@Override
dumpInfo0back to summary
private static native void dumpInfo0(long display, int screen_index, long screenResources)
endInitialQueryback to summary
public void endInitialQuery(final long dpy, final ScreenDriver screen)

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

Annotations
@Override
freeMonitorInfoHandle0back to summary
private static native void freeMonitorInfoHandle0(long monitorInfoHandle)
freeScreenResources0back to summary
private static native void freeScreenResources0(long screenResources)
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
getAvailableRotations0back to summary
private static native int[] getAvailableRotations0(long monitorInfo)
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
getMonitorCurrentMode0back to summary
private static native int[] getMonitorCurrentMode0(long screenResources, long monitorInfo)
getMonitorDevice0back to summary
private static native int[] getMonitorDevice0(long display, long screenResources, long monitorInfo, int crtc_id)
getMonitorDeviceIdsback to summary
public int[] getMonitorDeviceIds(final long dpy, final ScreenDriver screen)

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

Annotations
@Override
getMonitorDeviceIds0back to summary
private static native int[] getMonitorDeviceIds0(long screenResources)
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
getMonitorInfoHandleback to summary
private final long getMonitorInfoHandle(final long dpy, final int screen_idx, final long screenResources, final int crt_id)
getMonitorInfoHandle0back to summary
private static native long getMonitorInfoHandle0(long display, int screen_index, long screenResources, int crtc_id)
getMonitorMode0back to summary
private static native int[] getMonitorMode0(long screenResources, int mode_index)
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
getMonitorViewport0back to summary
private static native int[] getMonitorViewport0(long monitorInfo)
getScreenResourceHandleback to summary
private final long getScreenResourceHandle(final long dpy, final int screen_idx)
getScreenResources0back to summary
private static native long getScreenResources0(long display, int screen_index)
getVersionback to summary
public final VersionNumber getVersion()

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

Annotations
@Override
releaseMonitorInfoHandleback to summary
private final void releaseMonitorInfoHandle(final long monitorInfoHandle)
releaseScreenResourceHandleback to summary
private final void releaseScreenResourceHandle(final long screenResourceHandle)
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 void sendRRScreenChangeNotify0(long display, final long event)
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
setMonitorMode0back to summary
private static native boolean setMonitorMode0(long display, int screen_index, long screenResources, long monitorInfo, int crtc_id, int mode_id, int rotation, int x, int y)
setScreenViewport0back to summary
private static native boolean setScreenViewport0(long display, int screen_index, long screenResources, int x, int y, int width, int height)
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