JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.nativewindow.GenericUpstreamSurfacelessHook Class Reference
Inheritance diagram for com.jogamp.nativewindow.GenericUpstreamSurfacelessHook:
Collaboration diagram for com.jogamp.nativewindow.GenericUpstreamSurfacelessHook:

Public Member Functions

 GenericUpstreamSurfacelessHook (final int width, final int height)
 
final void create (final ProxySurface s)
 called within ProxySurface#createNotify() within lock, before using surface. More...
 
final void destroy (final ProxySurface s)
 called within ProxySurface#destroyNotify() within lock, before clearing fields. More...
 
- Public Member Functions inherited from com.jogamp.nativewindow.UpstreamSurfaceHookMutableSize
 UpstreamSurfaceHookMutableSize (final int width, final int height)
 
final void setSurfaceSize (final int width, final int height)
 Resizes the upstream surface. More...
 
final int getSurfaceWidth (final ProxySurface s)
 Returns the width of the upstream surface in pixels, used if ProxySurface#UPSTREAM_PROVIDES_SIZE is set. More...
 
final int getSurfaceHeight (final ProxySurface s)
 Returns the height of the upstream surface in pixels, used if ProxySurface#UPSTREAM_PROVIDES_SIZE is set. More...
 
void create (final ProxySurface s)
 called within ProxySurface#createNotify() within lock, before using surface. More...
 
void destroy (final ProxySurface s)
 called within ProxySurface#destroyNotify() within lock, before clearing fields. More...
 
String toString ()
 
final NativeSurface getUpstreamSurface ()
 Returns the optional upstream NativeSurface if used by implementation, otherwise null.One example is the JOGL EGLWrappedSurface, which might be backed up by a native platform NativeSurface (X11, WGL, CGL, ..). More...
 
void setSurfaceSize (int width, int height)
 Resizes the upstream surface. More...
 
void create (ProxySurface s)
 called within ProxySurface#createNotify() within lock, before using surface. More...
 
void destroy (ProxySurface s)
 called within ProxySurface#destroyNotify() within lock, before clearing fields. More...
 
NativeSurface getUpstreamSurface ()
 Returns the optional upstream NativeSurface if used by implementation, otherwise null. More...
 
int getSurfaceWidth (ProxySurface s)
 Returns the width of the upstream surface in pixels, used if ProxySurface#UPSTREAM_PROVIDES_SIZE is set. More...
 
int getSurfaceHeight (ProxySurface s)
 Returns the height of the upstream surface in pixels, used if ProxySurface#UPSTREAM_PROVIDES_SIZE is set. More...
 

Detailed Description

Definition at line 30 of file GenericUpstreamSurfacelessHook.java.

Constructor & Destructor Documentation

◆ GenericUpstreamSurfacelessHook()

com.jogamp.nativewindow.GenericUpstreamSurfacelessHook.GenericUpstreamSurfacelessHook ( final int  width,
final int  height 
)
Parameters
widththe initial width as returned by NativeSurface#getSurfaceWidth() via UpstreamSurfaceHook#getSurfaceWidth(ProxySurface), not the actual dummy surface width. The latter is platform specific and small
heightthe initial height as returned by NativeSurface#getSurfaceHeight() via UpstreamSurfaceHook#getSurfaceHeight(ProxySurface), not the actual dummy surface height, The latter is platform specific and small

Definition at line 39 of file GenericUpstreamSurfacelessHook.java.

Member Function Documentation

◆ create()

final void com.jogamp.nativewindow.GenericUpstreamSurfacelessHook.create ( final ProxySurface  s)

called within ProxySurface#createNotify() within lock, before using surface.

Reimplemented from com.jogamp.nativewindow.UpstreamSurfaceHookMutableSize.

Definition at line 44 of file GenericUpstreamSurfacelessHook.java.

Here is the call graph for this function:

◆ destroy()

final void com.jogamp.nativewindow.GenericUpstreamSurfacelessHook.destroy ( final ProxySurface  s)

called within ProxySurface#destroyNotify() within lock, before clearing fields.

Reimplemented from com.jogamp.nativewindow.UpstreamSurfaceHookMutableSize.

Definition at line 64 of file GenericUpstreamSurfacelessHook.java.

Here is the call graph for this function:

The documentation for this class was generated from the following file: