ProxySurface
| Modifier and Type | Field and Description |
|---|---|
| private final float[] | |
| private long |
| Access | Constructor and Description |
|---|---|
| public | WrappedSurface(final AbstractGraphicsConfiguration
the cfg, final long AbstractGraphicsConfiguration to be usedthe wrapped pre-existing native surface handle, maybe 0 if not yet determined handle, final int initialWidth, final int initialHeight, final boolean true if this ProxySurface instance
owns the AbstractGraphicsConfiguration's AbstractGraphicsDevice,
otherwise false. Owning the device implies closing it at destroyNotify().Utilizes a |
| public | WrappedSurface(final AbstractGraphicsConfiguration
the cfg, final long AbstractGraphicsConfiguration to be usedthe wrapped pre-existing native surface handle, maybe 0 if not yet determined handle, final UpstreamSurfaceHook the upstream, final boolean UpstreamSurfaceHook to be usedtrue if this ProxySurface instance
owns the AbstractGraphicsConfiguration's AbstractGraphicsDevice,
otherwise false.
|
| Modifier and Type | Method and Description |
|---|---|
| public final int[] | convertToPixelUnits(final int[]
int[2] storage holding the window units for the x- and y-coord to convert
and the resulting values. windowUnitsAndResult)Implements com. |
| public final int[] | convertToWindowUnits(final int[]
int[2] storage holding the pixel units for the x- and y-coord to convert
and the resulting values. pixelUnitsAndResult)Implements com. |
| public final float[] | getCurrentSurfaceScale(final float[]
float[2] storage for the result result)Implements com. NativeSurface.
|
| public final float[] | getMaximumSurfaceScale(final float[]
float[2] storage for the result result)Implements com. NativeSurface.
|
| public float[] | getMinimumSurfaceScale(final float[]
float[2] storage for the result result)Implements com. NativeSurface.
|
| public final float[] | getRequestedSurfaceScale(final float[]
float[2] storage for the result result)Implements com. requested pixel scale of the associated NativeSurface.
|
| public final long | getSurfaceHandle()
Implements abstract jogamp. Implements com. |
| protected void | invalidateImpl()
Overrides jogamp. UpstreamSurfaceHook being passed.
|
| protected final int | |
| public final void | setSurfaceHandle(final long surfaceHandle)
Implements abstract jogamp. Implements com. |
| public final boolean | setSurfaceScale(final float[]
requested surface pixel scale float[2] values for x- and y-direction. pixelScale)Implements com. NativeSurface,
where size_in_pixel_units = pixel_scale * size_in_window_units.
|
| protected final void |
| hasPixelScale | back to summary |
|---|---|
| private final float[] hasPixelScale | |
| surfaceHandle | back to summary |
|---|---|
| private long surfaceHandle | |
| WrappedSurface | back to summary |
|---|---|
| public WrappedSurface(final AbstractGraphicsConfiguration cfg, final long handle, final int initialWidth, final int initialHeight, final boolean ownsDevice) Utilizes a
| |
| WrappedSurface | back to summary |
|---|---|
public WrappedSurface(final AbstractGraphicsConfiguration cfg, final long handle, final UpstreamSurfaceHook upstream, final boolean ownsDevice)
| |
| convertToPixelUnits | back to summary |
|---|---|
| public final int[] convertToPixelUnits(final int[] windowUnitsAndResult) Implements com. Doc from com. Converts the given window units into pixel units in place.
| |
| convertToWindowUnits | back to summary |
|---|---|
| public final int[] convertToWindowUnits(final int[] pixelUnitsAndResult) Implements com. Doc from com. Converts the given pixel units into window units in place.
| |
| getCurrentSurfaceScale | back to summary |
|---|---|
| public final float[] getCurrentSurfaceScale(final float[] result) Implements com. Doc from com. Returns the current pixel scale of the associated
| |
| getMaximumSurfaceScale | back to summary |
|---|---|
| public final float[] getMaximumSurfaceScale(final float[] result) Implements com. Doc from com. Returns the maximum pixel scale of the associated
The maximum pixel scale maybe used to determine the proper dpi
value of the monitor displaying this surfacePpMM = monitorPpMM * currentSurfaceScale / nativeSurfaceScale, with PpMM == pixel per millimeter
| |
| getMinimumSurfaceScale | back to summary |
|---|---|
| public float[] getMinimumSurfaceScale(final float[] result) Implements com. Doc from com. Returns the minimum pixel scale of the associated
| |
| getRequestedSurfaceScale | back to summary |
|---|---|
| public final float[] getRequestedSurfaceScale(final float[] result) Implements com. Doc from com. Returns the
| |
| getSurfaceHandle | back to summary |
|---|---|
| public final long getSurfaceHandle() Implements abstract jogamp. Implements com. Doc from com. Returns the handle to the surface for this NativeSurface.
The surface handle should be set/update by
On X11 this returns an entity of type Window,
since there is no differentiation of surface and window there.
| |
| invalidateImpl | back to summary |
|---|---|
| protected void invalidateImpl() Overrides jogamp. Doc from jogamp. Must be overridden by implementations allowing having a
| |
| lockSurfaceImpl | back to summary |
|---|---|
| protected final int lockSurfaceImpl() Implements abstract jogamp.
| |
| setSurfaceHandle | back to summary |
|---|---|
| public final void setSurfaceHandle(final long surfaceHandle) Implements abstract jogamp. Implements com. Doc from com. Sets the surface handle which is created outside of this implementation.
| |
| setSurfaceScale | back to summary |
|---|---|
| public final boolean setSurfaceScale(final float[] pixelScale) Implements com. Doc from com. Request a pixel scale in x- and y-direction for the associated
Default pixel scale request for both directions is
In case platform only supports uniform pixel scale, i.e. one scale for both directions,
either
The requested pixel scale will be validated against platform limits before native scale-setup,
i.e. clipped to
The actual realized pixel scale values of the
The given pixelScale will not impact the actual
Implementation uses the default pixelScale Implementation returns the given pixelScale array.
| |
| unlockSurfaceImpl | back to summary |
|---|---|
| protected final void unlockSurfaceImpl() Implements abstract jogamp.
| |