28package com.jogamp.nativewindow;
53 throw new InternalError(
"Upstream surface not null: "+s);
68 throw new InternalError(
"Owns upstream surface, but not a valid zero surface: "+s);
71 throw new InternalError(
"Owns upstream valid zero surface, but non zero surface: "+s);
final void create(final ProxySurface s)
called within ProxySurface#createNotify() within lock, before using surface.
GenericUpstreamSurfacelessHook(final int width, final int height)
final void destroy(final ProxySurface s)
called within ProxySurface#destroyNotify() within lock, before clearing fields.
AbstractGraphicsScreen getScreen()
Return the screen this graphics configuration is valid for.
A interface describing a graphics device in a toolkit-independent manner.
void lock()
Optionally locking the device, utilizing eg com.jogamp.nativewindow.ToolkitLock#lock().
void unlock()
Optionally unlocking the device, utilizing eg com.jogamp.nativewindow.ToolkitLock#unlock().
long getHandle()
Returns the native handle of the underlying native device, if such thing exist.
boolean open()
Optionally [re]opening the device if handle is null.
AbstractGraphicsDevice getDevice()
Return the device this graphics configuration is valid for.
AbstractGraphicsConfiguration getGraphicsConfiguration()
Returns the graphics configuration corresponding to this window.
long getSurfaceHandle()
Returns the handle to the surface for this NativeSurface.
Provides a mutable NativeSurface, i.e.
static final int OPT_PROXY_OWNS_UPSTREAM_SURFACE
Implementation specific bit-value stating this ProxySurface owns the upstream's surface handle.
void addUpstreamOptionBits(int v)
Add the given bit-mask to this instance upstream-option-bits using bit-or w/ v.
void clearUpstreamOptionBits(int v)
Clear the given bit-mask from this instance upstream-option-bits using bit-and w/ ~v
boolean containsUpstreamOptionBits(int v)
Returns true if the give bit-mask v is set in this instance upstream-option-bits, otherwise false.
static final int OPT_UPSTREAM_SURFACELESS
Implementation specific bitvalue stating the upstream's NativeSurface's zero handle is valid.
static final int OPT_PROXY_OWNS_UPSTREAM_DEVICE
Implementation specific bit-value stating this ProxySurface owns the upstream's AbstractGraphicsDevic...
static final int OPT_UPSTREAM_WINDOW_INVISIBLE
Implementation specific bitvalue stating the upstream's NativeSurface is an invisible window,...