Package com.jogamp.nativewindow
Class UpstreamWindowHookMutableSizePos
- java.lang.Object
-
- com.jogamp.nativewindow.UpstreamSurfaceHookMutableSize
-
- com.jogamp.nativewindow.UpstreamWindowHookMutableSizePos
-
- All Implemented Interfaces:
UpstreamSurfaceHook
,UpstreamSurfaceHook.MutableSize
public class UpstreamWindowHookMutableSizePos extends UpstreamSurfaceHookMutableSize
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.jogamp.nativewindow.UpstreamSurfaceHook
UpstreamSurfaceHook.MutableSize
-
-
Constructor Summary
Constructors Constructor Description UpstreamWindowHookMutableSizePos(int winX, int winY, int winWidth, int winHeight, int pixWidth, int pixHeight)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getHeight()
int
getWidth()
int
getX()
int
getY()
void
setWinPos(int winX, int winY)
void
setWinSize(int winWidth, int winHeight)
String
toString()
-
Methods inherited from class com.jogamp.nativewindow.UpstreamSurfaceHookMutableSize
create, destroy, getSurfaceHeight, getSurfaceWidth, getUpstreamSurface, setSurfaceSize
-
-
-
-
Constructor Detail
-
UpstreamWindowHookMutableSizePos
public UpstreamWindowHookMutableSizePos(int winX, int winY, int winWidth, int winHeight, int pixWidth, int pixHeight)
- Parameters:
winX
- initial window x-poswinY
- initial window y-poswinWidth
- initial window widthwinHeight
- initial window heightpixWidth
- initial surface pixel width, FIXME: pixel-dim == window-dim 'for now' ?pixHeight
- initial surface pixel height, FIXME: pixel-dim == window-dim 'for now' ?
-
-
Method Detail
-
setWinPos
public final void setWinPos(int winX, int winY)
-
setWinSize
public final void setWinSize(int winWidth, int winHeight)
-
getX
public final int getX()
-
getY
public final int getY()
-
getWidth
public final int getWidth()
-
getHeight
public final int getHeight()
-
toString
public String toString()
- Overrides:
toString
in classUpstreamSurfaceHookMutableSize
-
-