com.jogamp.nativewindow
Class UpstreamSurfaceHookMutableSize
java.lang.Object
com.jogamp.nativewindow.UpstreamSurfaceHookMutableSize
- All Implemented Interfaces:
- UpstreamSurfaceHook, UpstreamSurfaceHook.MutableSize
- Direct Known Subclasses:
- DelegatedUpstreamSurfaceHookMutableSize
public class UpstreamSurfaceHookMutableSize
- extends Object
- implements UpstreamSurfaceHook.MutableSize
UpstreamSurfaceHookMutableSize
public UpstreamSurfaceHookMutableSize(int width,
int height)
- Parameters:
width
- initial widthheight
- initial height
setSize
public final void setSize(int width,
int height)
- Specified by:
setSize
in interface UpstreamSurfaceHook.MutableSize
getWidth
public final int getWidth(ProxySurface s)
- Description copied from interface:
UpstreamSurfaceHook
- Returns the width of the upstream surface, used if
ProxySurface#UPSTREAM_PROVIDES_SIZE
is set.
- Specified by:
getWidth
in interface UpstreamSurfaceHook
getHeight
public final int getHeight(ProxySurface s)
- Description copied from interface:
UpstreamSurfaceHook
- Returns the height of the upstream surface, used if
ProxySurface#UPSTREAM_PROVIDES_SIZE
is set.
- Specified by:
getHeight
in interface UpstreamSurfaceHook
create
public void create(ProxySurface s)
- Description copied from interface:
UpstreamSurfaceHook
- called within
ProxySurface.createNotify()
within lock, before using surface.
- Specified by:
create
in interface UpstreamSurfaceHook
destroy
public void destroy(ProxySurface s)
- Description copied from interface:
UpstreamSurfaceHook
- called within
ProxySurface.destroyNotify()
within lock, before clearing fields.
- Specified by:
destroy
in interface UpstreamSurfaceHook
toString
public String toString()
- Overrides:
toString
in class Object
Copyright 2010 JogAmp Community.