ProxySurface
| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private long |
| Access | Constructor and Description |
|---|---|
| public | GDISurface(final AbstractGraphicsConfiguration
the cfg, final long AbstractGraphicsConfiguration to be usedthe wrapped pre-existing native window handle, maybe 0 if not yet determined windowHandle, final UpstreamSurfaceHook the upstream, final boolean UpstreamSurfaceHook to be usedtrue if this ProxySurface instance
owns the AbstractGraphicsConfiguration's AbstractGraphicsDevice,
otherwise false. Owning the device implies closing it at destroyNotify().
|
| 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 long | getSurfaceHandle()
Implements abstract jogamp. Implements com. |
| public final long | |
| 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 void | |
| protected final void |
| surfaceHandle | back to summary |
|---|---|
| private long surfaceHandle | |
| windowHandle | back to summary |
|---|---|
| private long windowHandle | |
| GDISurface | back to summary |
|---|---|
public GDISurface(final AbstractGraphicsConfiguration cfg, final long windowHandle, 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.
| |
| 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.
| |
| getWindowHandle | back to summary |
|---|---|
| public final long getWindowHandle() | |
| 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.
Actually the window handle (HWND), since the surfaceHandle (HDC) is derived
from it at
| |
| setWindowHandle | back to summary |
|---|---|
| public final void setWindowHandle(final long windowHandle) Sets the window handle (HWND). | |
| unlockSurfaceImpl | back to summary |
|---|---|
| protected final void unlockSurfaceImpl() Implements abstract jogamp.
| |