|
|||||||||
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.impl.windows.WindowsWindow
public class WindowsWindow
Field Summary |
---|
Fields inherited from class com.jogamp.newt.Window |
---|
caps, ClickTimeout, config, DEBUG_IMPLEMENTATION, DEBUG_KEY_EVENT, DEBUG_MOUSE_EVENT, DEBUG_WINDOW_EVENT, fullscreen, height, parentNativeWindow, parentWindowHandle, screen, title, undecorated, visible, width, windowHandle, windowLock, x, y |
Fields inherited from interface javax.media.nativewindow.NativeWindow |
---|
LOCK_SUCCESS, LOCK_SURFACE_CHANGED, LOCK_SURFACE_NOT_READY, LOCK_SURFACE_UNLOCKED |
Constructor Summary | |
---|---|
WindowsWindow()
|
Method Summary | |
---|---|
protected void |
closeNative()
|
protected void |
createNativeImpl()
Create native windowHandle, ie creates a new native invisible window. |
Insets |
getInsets()
Returns the insets for this native window (the difference between the size of the toplevel window with the decorations and the client area). |
long |
getSurfaceHandle()
Returns the handle to the surface for this NativeWindow. |
boolean |
hasDeviceChanged()
If the implementation is capable of detecting a device change return true and clear the status/reason of the change. |
protected static boolean |
initIDs0()
|
int |
lockSurface()
Recursive and blocking lockSurface() implementation |
protected boolean |
reparentWindowImpl()
|
protected void |
requestFocusImpl()
|
protected boolean |
setFullscreenImpl(boolean fullscreen,
int x,
int y,
int w,
int h)
|
protected void |
setPositionImpl(int x,
int y)
|
protected void |
setSizeImpl(int width,
int height)
|
protected void |
setTitleImpl(String title)
|
protected void |
setVisibleImpl(boolean visible)
|
void |
unlockSurface()
Recursive and unblocking unlockSurface() implementation |
protected void |
windowDestroyed()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WindowsWindow()
Method Detail |
---|
public int lockSurface() throws NativeWindowException
Window
lockSurface
in interface NativeWindow
lockSurface
in class Window
NativeWindow.LOCK_SUCCESS
, NativeWindow.LOCK_SURFACE_CHANGED
or NativeWindow.LOCK_SURFACE_NOT_READY
.
NativeWindowException
- if surface is already lockedToolkitLock
public void unlockSurface()
Window
unlockSurface
in interface NativeWindow
unlockSurface
in class Window
NativeWindow.lockSurface()
,
ToolkitLock
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 boolean hasDeviceChanged()
Window
hasDeviceChanged
in class Window
protected void createNativeImpl()
Window
createNativeImpl
in class Window
protected void closeNative()
closeNative
in class Window
protected void windowDestroyed()
windowDestroyed
in class Window
protected void setVisibleImpl(boolean visible)
setVisibleImpl
in class Window
protected void setSizeImpl(int width, int height)
setSizeImpl
in class Window
protected void setPositionImpl(int x, int y)
setPositionImpl
in class Window
protected boolean setFullscreenImpl(boolean fullscreen, int x, int y, int w, int h)
setFullscreenImpl
in class Window
protected boolean reparentWindowImpl()
reparentWindowImpl
in class Window
protected void requestFocusImpl()
requestFocusImpl
in class Window
protected void setTitleImpl(String title)
setTitleImpl
in class Window
public Insets getInsets()
Window
getInsets
in class Window
protected static boolean initIDs0()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |