1package com.jogamp.nativewindow;
3import com.jogamp.nativewindow.NativeSurface;
4import com.jogamp.nativewindow.ProxySurface;
5import com.jogamp.nativewindow.UpstreamSurfaceHook;
16 this.upstream = upstream;
17 this.surface = surface;
19 throw new IllegalArgumentException(
"given surface is null");
36 if(
null != upstream) {
43 if(
null != upstream) {
61 return getClass().getSimpleName()+
"["+upstream+
", "+us_s+
"]";
final int getSurfaceHeight(final ProxySurface s)
Returns the height of the upstream surface in pixels, used if ProxySurface#UPSTREAM_PROVIDES_SIZE is ...
final int getSurfaceWidth(final ProxySurface s)
Returns the width of the upstream surface in pixels, used if ProxySurface#UPSTREAM_PROVIDES_SIZE is s...
DelegatedUpstreamSurfaceHookWithSurfaceSize(final UpstreamSurfaceHook upstream, final NativeSurface surface)
final void create(final ProxySurface s)
called within ProxySurface#createNotify() within lock, before using surface.
final NativeSurface getUpstreamSurface()
Returns the optional upstream NativeSurface if used by implementation, otherwise null....
final void destroy(final ProxySurface s)
called within ProxySurface#destroyNotify() within lock, before clearing fields.
Provides low-level information required for hardware-accelerated rendering using a surface in a platf...
int getSurfaceWidth()
Returns the width of the client area excluding insets (window decorations) in pixel units.
long getSurfaceHandle()
Returns the handle to the surface for this NativeSurface.
int getSurfaceHeight()
Returns the height of the client area excluding insets (window decorations) in pixel units.
Provides a mutable NativeSurface, i.e.
Interface allowing upstream caller to pass lifecycle actions and size info to a ProxySurface instance...
void create(ProxySurface s)
called within ProxySurface#createNotify() within lock, before using surface.
void destroy(ProxySurface s)
called within ProxySurface#destroyNotify() within lock, before clearing fields.