JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.nativewindow.UpstreamSurfaceHook.MutableSize Interface Reference

UpstreamSurfaceHook w/ mutable size, allowing it's ProxySurface user to resize. More...

Inheritance diagram for com.jogamp.nativewindow.UpstreamSurfaceHook.MutableSize:
Collaboration diagram for com.jogamp.nativewindow.UpstreamSurfaceHook.MutableSize:

Public Member Functions

void setSurfaceSize (int width, int height)
 Resizes the upstream surface. More...
 
- Public Member Functions inherited from com.jogamp.nativewindow.UpstreamSurfaceHook
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

UpstreamSurfaceHook w/ mutable size, allowing it's ProxySurface user to resize.

Definition at line 58 of file UpstreamSurfaceHook.java.

Member Function Documentation

◆ setSurfaceSize()

void com.jogamp.nativewindow.UpstreamSurfaceHook.MutableSize.setSurfaceSize ( int  width,
int  height 
)

Resizes the upstream surface.

Parameters
widthnew width in pixel units
heightnew height in pixel units

Implemented in com.jogamp.nativewindow.UpstreamSurfaceHookMutableSize.


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