Package com.jogamp.nativewindow
Class DelegatedUpstreamSurfaceHookWithSurfaceSize
java.lang.Object
com.jogamp.nativewindow.DelegatedUpstreamSurfaceHookWithSurfaceSize
- All Implemented Interfaces:
UpstreamSurfaceHook
public class DelegatedUpstreamSurfaceHookWithSurfaceSize
extends Object
implements UpstreamSurfaceHook
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.jogamp.nativewindow.UpstreamSurfaceHook
UpstreamSurfaceHook.MutableSize -
Constructor Summary
ConstructorsConstructorDescriptionDelegatedUpstreamSurfaceHookWithSurfaceSize(UpstreamSurfaceHook upstream, NativeSurface surface) -
Method Summary
Modifier and TypeMethodDescriptionfinal voidcalled withinProxySurface.createNotify()within lock, before using surface.final voidcalled withinProxySurface.destroyNotify()within lock, before clearing fields.final intReturns the height of the upstream surface in pixels, used ifProxySurface#UPSTREAM_PROVIDES_SIZEis set.final intReturns the width of the upstream surface in pixels, used ifProxySurface#UPSTREAM_PROVIDES_SIZEis set.final NativeSurfaceReturns the optional upstreamNativeSurfaceif used by implementation, otherwisenull.toString()
-
Constructor Details
-
DelegatedUpstreamSurfaceHookWithSurfaceSize
public DelegatedUpstreamSurfaceHookWithSurfaceSize(UpstreamSurfaceHook upstream, NativeSurface surface) - Parameters:
upstream- optional upstream UpstreamSurfaceHook used forcreate(ProxySurface)anddestroy(ProxySurface).surface- mandatoryNativeSurfaceused forgetSurfaceWidth(ProxySurface)andgetSurfaceHeight(ProxySurface), not used forgetUpstreamSurface().
-
-
Method Details
-
getUpstreamSurface
Returns the optional upstreamNativeSurfaceif used by implementation, otherwisenull.One example is the JOGL EGLWrappedSurface, which might be backed up by a native platform NativeSurface (X11, WGL, CGL, ..).
Returns
null.- Specified by:
getUpstreamSurfacein interfaceUpstreamSurfaceHook
-
create
Description copied from interface:UpstreamSurfaceHookcalled withinProxySurface.createNotify()within lock, before using surface.- Specified by:
createin interfaceUpstreamSurfaceHook
-
destroy
Description copied from interface:UpstreamSurfaceHookcalled withinProxySurface.destroyNotify()within lock, before clearing fields.- Specified by:
destroyin interfaceUpstreamSurfaceHook
-
getSurfaceWidth
Description copied from interface:UpstreamSurfaceHookReturns the width of the upstream surface in pixels, used ifProxySurface#UPSTREAM_PROVIDES_SIZEis set.- Specified by:
getSurfaceWidthin interfaceUpstreamSurfaceHook
-
getSurfaceHeight
Description copied from interface:UpstreamSurfaceHookReturns the height of the upstream surface in pixels, used ifProxySurface#UPSTREAM_PROVIDES_SIZEis set.- Specified by:
getSurfaceHeightin interfaceUpstreamSurfaceHook
-
toString
-