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 interface
UpstreamSurfaceHook
w/ mutable size, allowing it'sProxySurface
user to resize. -
Method Summary
Modifier and TypeMethodDescriptionvoid
called withinProxySurface.createNotify()
within lock, before using surface.void
called withinProxySurface.destroyNotify()
within lock, before clearing fields.int
Returns the height of the upstream surface in pixels, used ifProxySurface#UPSTREAM_PROVIDES_SIZE
is set.int
Returns the width of the upstream surface in pixels, used ifProxySurface#UPSTREAM_PROVIDES_SIZE
is set.Returns the optional upstreamNativeSurface
if 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 upstreamNativeSurface
if 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_SIZE
is set. -
getSurfaceHeight
Returns the height of the upstream surface in pixels, used ifProxySurface#UPSTREAM_PROVIDES_SIZE
is set.
-