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

Public Member Functions

 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 7 of file UpstreamSurfaceHookMutableSize.java.

Constructor & Destructor Documentation

◆ UpstreamSurfaceHookMutableSize()

com.jogamp.nativewindow.UpstreamSurfaceHookMutableSize.UpstreamSurfaceHookMutableSize ( final int  width,
final int  height 
)
Parameters
widthinitial width
heightinitial height

Definition at line 14 of file UpstreamSurfaceHookMutableSize.java.

Member Function Documentation

◆ create()

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

◆ destroy()

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

◆ getSurfaceHeight()

final int com.jogamp.nativewindow.UpstreamSurfaceHookMutableSize.getSurfaceHeight ( final ProxySurface  s)

Returns the height of the upstream surface in pixels, used if ProxySurface#UPSTREAM_PROVIDES_SIZE is set.

Implements com.jogamp.nativewindow.UpstreamSurfaceHook.

Definition at line 31 of file UpstreamSurfaceHookMutableSize.java.

◆ getSurfaceWidth()

final int com.jogamp.nativewindow.UpstreamSurfaceHookMutableSize.getSurfaceWidth ( final ProxySurface  s)

Returns the width of the upstream surface in pixels, used if ProxySurface#UPSTREAM_PROVIDES_SIZE is set.

Implements com.jogamp.nativewindow.UpstreamSurfaceHook.

Definition at line 26 of file UpstreamSurfaceHookMutableSize.java.

◆ getUpstreamSurface()

final NativeSurface com.jogamp.nativewindow.UpstreamSurfaceHookMutableSize.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, ..).

Returns null.

Implements com.jogamp.nativewindow.UpstreamSurfaceHook.

Definition at line 52 of file UpstreamSurfaceHookMutableSize.java.

◆ setSurfaceSize()

final void com.jogamp.nativewindow.UpstreamSurfaceHookMutableSize.setSurfaceSize ( final int  width,
final int  height 
)

Resizes the upstream surface.

Parameters
widthnew width in pixel units
heightnew height in pixel units

Implements com.jogamp.nativewindow.UpstreamSurfaceHook.MutableSize.

Definition at line 20 of file UpstreamSurfaceHookMutableSize.java.

Here is the caller graph for this function:

◆ toString()

String com.jogamp.nativewindow.UpstreamSurfaceHookMutableSize.toString ( )

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