Package com.jogamp.nativewindow
Interface UpstreamSurfaceHook
- All Known Subinterfaces:
UpstreamSurfaceHook.MutableSize
- All Known Implementing Classes:
DelegatedUpstreamSurfaceHookMutableSize,DelegatedUpstreamSurfaceHookWithSurfaceSize,GenericUpstreamSurfacelessHook,UpstreamSurfaceHookMutableSize,UpstreamWindowHookMutableSizePos
public interface UpstreamSurfaceHook
Interface allowing upstream caller to pass lifecycle actions and size info
to a
ProxySurface instance.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceUpstreamSurfaceHookw/ mutable size, allowing it'sProxySurfaceuser to resize. -
Method Summary
Modifier and TypeMethodDescriptionvoidcalled withinProxySurface.createNotify()within lock, before using surface.voidcalled withinProxySurface.destroyNotify()within lock, before clearing fields.intReturns the height of the upstream surface in pixels, used ifProxySurface#UPSTREAM_PROVIDES_SIZEis set.intReturns the width of the upstream surface in pixels, used ifProxySurface#UPSTREAM_PROVIDES_SIZEis set.Returns the optional upstreamNativeSurfaceif used by implementation, otherwisenull.
-
Method Details
-
create
called withinProxySurface.createNotify()within lock, before using surface. -
destroy
called withinProxySurface.destroyNotify()within lock, before clearing fields. -
getUpstreamSurface
NativeSurface 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, ..).
-
getSurfaceWidth
Returns the width of the upstream surface in pixels, used ifProxySurface#UPSTREAM_PROVIDES_SIZEis set. -
getSurfaceHeight
Returns the height of the upstream surface in pixels, used ifProxySurface#UPSTREAM_PROVIDES_SIZEis set.
-