|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jogamp.newt.Window
com.jogamp.newt.OffscreenWindow
public class OffscreenWindow
Field Summary |
---|
Fields inherited from class com.jogamp.newt.Window |
---|
ClickTimeout, config, DEBUG_IMPLEMENTATION, DEBUG_KEY_EVENT, DEBUG_MOUSE_EVENT, DEBUG_WINDOW_EVENT, eventMask, fullscreen, height, screen, title, undecorated, visible, width, windowHandle, x, y |
Fields inherited from interface javax.media.nativewindow.NativeWindow |
---|
LOCK_SUCCESS, LOCK_SURFACE_CHANGED, LOCK_SURFACE_NOT_READY |
Constructor Summary | |
---|---|
OffscreenWindow()
|
Method Summary | |
---|---|
protected void |
closeNative()
|
protected void |
createNative(long parentWindowHandle,
Capabilities caps)
Create native windowHandle, ie creates a new native invisible window. |
void |
destroy()
destroys the window and releases windowing related resources. |
long |
getSurfaceHandle()
Returns the handle to the surface for this NativeWindow. |
void |
invalidate()
render all native window information invalid, as if the native window was destroyed |
boolean |
setFullscreen(boolean fullscreen)
|
void |
setPosition(int x,
int y)
Sets the location of the top left corner of the window, including decorations (so the client area will be placed at x+insets.left,y+insets.top .This call is ignored if in fullscreen mode. |
void |
setSize(int width,
int height)
Sets the size of the client area of the window, excluding decorations Total size of the window will be width+insets.left+insets.right, height+insets.top+insets.bottom This call is ignored if in fullscreen mode. |
void |
setSurfaceHandle(long handle)
|
void |
setVisible(boolean visible)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OffscreenWindow()
Method Detail |
---|
protected void createNative(long parentWindowHandle, Capabilities caps)
Window
createNative
in class Window
protected void closeNative()
closeNative
in class Window
public void invalidate()
NativeWindow
invalidate
in interface NativeWindow
invalidate
in class Window
NativeWindow.destroy()
public void destroy()
NativeWindow
destroy
in interface NativeWindow
destroy
in class Window
public void setSurfaceHandle(long handle)
setSurfaceHandle
in interface SurfaceChangeable
public long getSurfaceHandle()
NativeWindow
The surface handle should be set/update by NativeWindow.lockSurface()
,
where NativeWindow.unlockSurface()
is not allowed to modify it.
After NativeWindow.unlockSurface()
it is no more guaranteed
that the surface handle is still valid.
The surface handle shall reflect the platform one
for all drawable surface operations, e.g. opengl, swap-buffer.
On X11 this returns an entity of type Window,
since there is no differentiation of surface and window there.
On Microsoft Windows this returns an entity of type HDC.
getSurfaceHandle
in interface NativeWindow
getSurfaceHandle
in class Window
public void setVisible(boolean visible)
setVisible
in class Window
public void setSize(int width, int height)
Window
width+insets.left+insets.right, height+insets.top+insets.bottom
setSize
in interface SurfaceChangeable
setSize
in class Window
width
- of the client area of the windowheight
- of the client area of the windowpublic void setPosition(int x, int y)
Window
x+insets.left,y+insets.top
.
setPosition
in class Window
x
- coord of the top left cornery
- coord of the top left cornerpublic boolean setFullscreen(boolean fullscreen)
setFullscreen
in class Window
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |