Package com.jogamp.nativewindow
Interface UpstreamSurfaceHook
-
- All Known Subinterfaces:
UpstreamSurfaceHook.MutableSize
- All Known Implementing Classes:
DelegatedUpstreamSurfaceHookMutableSize,DelegatedUpstreamSurfaceHookWithSurfaceSize,GenericUpstreamSurfacelessHook,UpstreamSurfaceHookMutableSize,UpstreamWindowHookMutableSizePos
public interface UpstreamSurfaceHookInterface allowing upstream caller to pass lifecycle actions and size info to aProxySurfaceinstance.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceUpstreamSurfaceHook.MutableSizeUpstreamSurfaceHookw/ mutable size, allowing it'sProxySurfaceuser to resize.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcreate(ProxySurface s)called withinProxySurface.createNotify()within lock, before using surface.voiddestroy(ProxySurface s)called withinProxySurface.destroyNotify()within lock, before clearing fields.intgetSurfaceHeight(ProxySurface s)Returns the height of the upstream surface in pixels, used ifProxySurface#UPSTREAM_PROVIDES_SIZEis set.intgetSurfaceWidth(ProxySurface s)Returns the width of the upstream surface in pixels, used ifProxySurface#UPSTREAM_PROVIDES_SIZEis set.NativeSurfacegetUpstreamSurface()Returns the optional upstreamNativeSurfaceif used by implementation, otherwisenull.
-
-
-
Method Detail
-
create
void create(ProxySurface s)
called withinProxySurface.createNotify()within lock, before using surface.
-
destroy
void destroy(ProxySurface s)
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
int getSurfaceWidth(ProxySurface s)
Returns the width of the upstream surface in pixels, used ifProxySurface#UPSTREAM_PROVIDES_SIZEis set.
-
getSurfaceHeight
int getSurfaceHeight(ProxySurface s)
Returns the height of the upstream surface in pixels, used ifProxySurface#UPSTREAM_PROVIDES_SIZEis set.
-
-