28package com.jogamp.opengl.test.junit.newt.parenting;
30import com.jogamp.nativewindow.CapabilitiesImmutable;
31import com.jogamp.nativewindow.NativeWindow;
32import com.jogamp.nativewindow.NativeWindowHolder;
33import com.jogamp.nativewindow.util.Insets;
34import com.jogamp.nativewindow.util.InsetsImmutable;
35import com.jogamp.newt.Window;
36import com.jogamp.newt.event.KeyEvent;
37import com.jogamp.newt.opengl.GLWindow;
38import com.jogamp.newt.opengl.util.NEWTDemoListener;
40import javafx.geometry.Bounds;
46 final javafx.stage.Stage frame;
64 glWindow.invokeOnNewThread(
null,
false,
new Runnable() {
74 printlnState(
"[reparent pre - glWin to TOP.1] frame ", p0+
", glWindow "+p1);
98 frame.setTitle(
"Frame["+capsA+
"], win: "+getNativeWinTitle(nw));
100 super.setTitle(nw, win);
final short getKeySymbol()
Returns the virtual key symbol reflecting the current keyboard layout.
static final short VK_R
See VK_A.
final boolean isConsumed()
Returns true if this events has been consumed, otherwise false.
final void setConsumed(final boolean consumed)
If consumed is true, this event is marked as consumed, ie.
An implementation of GLAutoDrawable and Window interface, using a delegated Window instance,...
Point getLocationOnScreen(final Point storage)
Returns the window's top-left client-area position in the screen.
final NativeWindow getParent()
final void setPosition(final int x, final int y)
Sets the location of the window's client area excluding insets (window decorations) in window units.
final ReparentOperation reparentWindow(final NativeWindow newParent, final int x, final int y, final int hints)
Change this window's parent window.
final void requestFocus()
Request focus for this native window.
void printlnState(final String prelude)
JavaFX specializing demo functionality of NewtReparentingKeyAdapter, includes NEWTDemoListener.
void setTitle(final javafx.stage.Stage frame, final NativeWindow nw, final Window win)
NewtJFXReparentingKeyAdapter(final javafx.stage.Stage frame, final NativeWindowHolder winHolder, final GLWindow glWindow)
void keyPressed(final KeyEvent e)
A key has been pressed, excluding auto-repeat modifier keys.
Extending demo functionality of NEWTDemoListener.
Specifies an immutable set of capabilities that a window's rendering context must support,...
boolean isBackgroundOpaque()
Returns whether an opaque or translucent surface is requested, supported or chosen.
Accessor interface for implementing classes with ownership of a NativeWindow via an is-a or has-a rel...
NativeWindow getNativeWindow()
Returns the associated NativeWindow of this NativeWindowHolder, which is identical to getNativeSurfac...
Extend the NativeSurface interface with windowing information such as window-handle,...
Point getLocationOnScreen(Point point)
Returns the window's top-left client-area position in the screen.
int getY()
Returns the current y position of the top-left corner of the client area relative to it's parent in w...
int getX()
Returns the current x position of this window, relative to it's parent.
Specifying NEWT's Window functionality:
CapabilitiesImmutable getChosenCapabilities()
Gets an immutable set of chosen capabilities.
CapabilitiesImmutable getRequestedCapabilities()
Gets an immutable set of requested capabilities.
Thread setExclusiveContextThread(Thread t)
Dedicates this instance's GLContext to the given thread.