Package com.jogamp.nativewindow
Class GenericUpstreamSurfacelessHook
java.lang.Object
com.jogamp.nativewindow.UpstreamSurfaceHookMutableSize
com.jogamp.nativewindow.GenericUpstreamSurfacelessHook
- All Implemented Interfaces:
UpstreamSurfaceHook,UpstreamSurfaceHook.MutableSize
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.jogamp.nativewindow.UpstreamSurfaceHook
UpstreamSurfaceHook.MutableSize -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidcalled withinProxySurface.createNotify()within lock, before using surface.final voidcalled withinProxySurface.destroyNotify()within lock, before clearing fields.Methods inherited from class com.jogamp.nativewindow.UpstreamSurfaceHookMutableSize
getSurfaceHeight, getSurfaceWidth, getUpstreamSurface, setSurfaceSize, toString
-
Constructor Details
-
GenericUpstreamSurfacelessHook
public GenericUpstreamSurfacelessHook(int width, int height) - Parameters:
width- the initial width as returned byNativeSurface.getSurfaceWidth()viaUpstreamSurfaceHook.getSurfaceWidth(ProxySurface), not the actual dummy surface width. The latter is platform specific and smallheight- the initial height as returned byNativeSurface.getSurfaceHeight()viaUpstreamSurfaceHook.getSurfaceHeight(ProxySurface), not the actual dummy surface height, The latter is platform specific and small
-
-
Method Details
-
create
Description copied from interface:UpstreamSurfaceHookcalled withinProxySurface.createNotify()within lock, before using surface.- Specified by:
createin interfaceUpstreamSurfaceHook- Overrides:
createin classUpstreamSurfaceHookMutableSize
-
destroy
Description copied from interface:UpstreamSurfaceHookcalled withinProxySurface.destroyNotify()within lock, before clearing fields.- Specified by:
destroyin interfaceUpstreamSurfaceHook- Overrides:
destroyin classUpstreamSurfaceHookMutableSize
-