Top Inners Fields Constructors Methods
jogamp.newt.driver.macosx

public Class ScreenDriver

extends ScreenImpl
Class Inheritance
Imports
com.jogamp.nativewindow.DefaultGraphicsScreen, com.jogamp.nativewindow.util.Rectangle, jogamp.nativewindow.macosx.OSXUtil, jogamp.newt.MonitorModeProps, .ScreenImpl, com.jogamp.common.util.ArrayHashSet, com.jogamp.newt.Display, .MonitorDevice, .MonitorMode, com.jogamp.opengl.math.FloatUtil

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv class

Field Summary

Inherited from jogamp.newt.ScreenImpl:
aScreenDEBUG_TEST_SCREENMODE_DISABLEDdefault_sm_bppdefault_sm_heightmmdefault_sm_ratedefault_sm_rotationdefault_sm_widthmmdisplayfqnamehashCoderefCountscreen_idxusrSizeusrSizeQueriedvirtViewportPUvirtViewportWU

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
protected final void
collectNativeMonitorModesAndDevicesImpl(final MonitorModeProps.Cache
memory pool caching the result
cache
)

Implements abstract jogamp.newt.ScreenImpl.collectNativeMonitorModesAndDevicesImpl.

To be implemented by the native specification.
protected void
private native int[]
private native int[]
getMonitorMode0(int crt_id, int mode_idx)

private MonitorMode
getMonitorModeImpl(final MonitorModeProps.Cache cache, final int crt_id, final int mode_idx)

private native int[]
getMonitorProps0(int crt_id)

protected MonitorMode
queryCurrentMonitorModeImpl(final MonitorDevice monitor)

Implements abstract jogamp.newt.ScreenImpl.queryCurrentMonitorModeImpl.

To be implemented by the native specification.
protected boolean
setCurrentMonitorModeImpl(final MonitorDevice monitor, final MonitorMode mode)

Implements abstract jogamp.newt.ScreenImpl.setCurrentMonitorModeImpl.

To be implemented by the native specification.
private native boolean
setMonitorMode0(int crt_id, int nativeId, int rot)

protected boolean
updateNativeMonitorDeviceViewportImpl(final MonitorDevice monitor, final float[] pixelScale, final Rectangle viewportPU, final Rectangle viewportWU)

Overrides jogamp.newt.ScreenImpl.updateNativeMonitorDeviceViewportImpl.

protected int
validateScreenIndex(final int idx)

Implements abstract jogamp.newt.ScreenImpl.validateScreenIndex.

Returns the validated screen index, which is either the passed idx value or 0.
Inherited from jogamp.newt.ScreenImpl:
addMonitorModeListeneraddReferencecalcVirtualScreenOriginAndSizecreatecreateNativedestroyequalsgetDisplaygetFQNamegetGraphicsScreengetHeightgetIndexgetMonitorDevicesgetMonitorModesgetPrimaryMonitorgetReferenceCountgetViewportgetViewportInWindowUnitsgetWidthgetXgetYhashCodeinstantiationFinishedisNativeValidmonitorModeChangedmonitorModeChangeNotifyqueryCurrentMonitorModeInternremoveMonitorModeListenerremoveReferencetoStringupdateVirtualScreenOriginAndSize

Constructor Detail

ScreenDriverback to summary
public ScreenDriver()

Method Detail

closeNativeImplback to summary
protected void closeNativeImpl()

Implements abstract jogamp.newt.ScreenImpl.closeNativeImpl.

Annotations
@Override
collectNativeMonitorModesAndDevicesImplback to summary
protected final void collectNativeMonitorModesAndDevicesImpl(final MonitorModeProps.Cache cache)

Implements abstract jogamp.newt.ScreenImpl.collectNativeMonitorModesAndDevicesImpl.

Doc from jogamp.newt.ScreenImpl.collectNativeMonitorModesAndDevicesImpl.

To be implemented by the native specification.
Is called within a thread safe environment.
Is called only to collect the MonitorModes and MonitorDevices, usually at startup setting up modes.

WARNING: must be synchronized with

, i.e.
Parameters
cache:MonitorModeProps.Cache

memory pool caching the result

Annotations
@Override
createNativeImplback to summary
protected void createNativeImpl()

Implements abstract jogamp.newt.ScreenImpl.createNativeImpl.

Annotations
@Override
getMonitorDeviceIds0back to summary
private native int[] getMonitorDeviceIds0()
getMonitorMode0back to summary
private native int[] getMonitorMode0(int crt_id, int mode_idx)
getMonitorModeImplback to summary
private MonitorMode getMonitorModeImpl(final MonitorModeProps.Cache cache, final int crt_id, final int mode_idx)
getMonitorProps0back to summary
private native int[] getMonitorProps0(int crt_id)
queryCurrentMonitorModeImplback to summary
protected MonitorMode queryCurrentMonitorModeImpl(final MonitorDevice monitor)

Implements abstract jogamp.newt.ScreenImpl.queryCurrentMonitorModeImpl.

Doc from jogamp.newt.ScreenImpl.queryCurrentMonitorModeImpl.

To be implemented by the native specification.
Is called within a thread safe environment.

Implementation shall not unify the result w/ monitor's supported modes or a locally saved MonitorModeProps.Cache, since caller will perform such tasks.

Annotations
@Override
setCurrentMonitorModeImplback to summary
protected boolean setCurrentMonitorModeImpl(final MonitorDevice monitor, final MonitorMode mode)

Implements abstract jogamp.newt.ScreenImpl.setCurrentMonitorModeImpl.

Doc from jogamp.newt.ScreenImpl.setCurrentMonitorModeImpl.

To be implemented by the native specification.
Is called within a thread safe environment.

Annotations
@Override
setMonitorMode0back to summary
private native boolean setMonitorMode0(int crt_id, int nativeId, int rot)
updateNativeMonitorDeviceViewportImplback to summary
protected boolean updateNativeMonitorDeviceViewportImpl(final MonitorDevice monitor, final float[] pixelScale, final Rectangle viewportPU, final Rectangle viewportWU)

Overrides jogamp.newt.ScreenImpl.updateNativeMonitorDeviceViewportImpl.

Annotations
@Override
validateScreenIndexback to summary
protected int validateScreenIndex(final int idx)

Implements abstract jogamp.newt.ScreenImpl.validateScreenIndex.

Doc from jogamp.newt.ScreenImpl.validateScreenIndex.

Returns the validated screen index, which is either the passed idx value or 0.

On big-desktops this shall return always 0.

Annotations
@Override
jogamp.newt.driver.macosx back to summary

pack-priv Class ScreenDriver.CrtProps

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final int
pack-priv final int[]
pack-priv final float[]
pack-priv final int[][]
pack-priv final int[][]

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv int
getIndex(final int crt_id)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

countback to summary
pack-priv final int count
crtIDsback to summary
pack-priv final int[] crtIDs
pixelScaleArrayback to summary
pack-priv final float[] pixelScaleArray
propsFixedArrayback to summary
pack-priv final int[][] propsFixedArray
propsOrigArrayback to summary
pack-priv final int[][] propsOrigArray

Constructor Detail

CrtPropsback to summary
pack-priv CrtProps()

Method Detail

getIndexback to summary
pack-priv int getIndex(final int crt_id)