@Override public final void enqueueEvent(final boolean wait, final com.jogamp.newt.event.NEWTEvent event) { if(isNativeValid()) { ((DisplayImpl)screen.getDisplay()).enqueueEvent(wait, event); } }
@Override public void run() { WindowImpl.shutdownAll(); ScreenImpl.shutdownAll(); DisplayImpl.shutdownAll(); } });
@Override public void setPosition(final int x, final int y) { autoPosition = false; runOnEDTIfAvail(true, new SetPositionAction(x, y)); }
@Override public final void setSticky(final boolean value) { if( isChildWindow() ) { return; // ignore for child windows } if( !isReconfigureMaskSupported(STATE_MASK_STICKY) && isNativeValid() ) { return; } runOnEDTIfAvail(true, new StickyAction(value)); } @Override
@Override public final ReparentOperation reparentWindow(final NativeWindow newParent, final int x, final int y, final int hints) { if( !isReconfigureMaskSupported(STATE_MASK_CHILDWIN) && isNativeValid() ) { return ReparentOperation.ACTION_INVALID; } final ReparentAction reparentAction = new ReparentAction(newParent, x, y, hints); runOnEDTIfAvail(true, reparentAction); return reparentAction.getOp(); } @Override
public void run() { if( !display.isNativeValidAsync() ) { destroyOnEDT(display.getHandle()); } } } ); }
@Override public final void setAlwaysOnTop(final boolean value) { if( isFullscreen() ) { nfs_alwaysOnTop = value; } else { runOnEDTIfAvail(true, new AlwaysOnTopAction(value)); } }
@Override public final void setSize(final int width, final int height) { runOnEDTIfAvail(true, new SetSizeAction(width, height, false)); } @Override
/** Fast invalidation of instance w/o any blocking function call. */ private final void shutdown() { if(null!=lifecycleHook) { lifecycleHook.shutdownRenderingAction(); } setWindowHandle(0); resetStateMask(); fullscreenMonitors = null; parentWindowHandle = 0; }
protected void destroy(final boolean preserveResources) { if( null != lifecycleHook ) { lifecycleHook.preserveGLStateAtDestroy( preserveResources ); } destroy(); }
@Override public final ReparentOperation reparentWindow(final NativeWindow newParent, final int x, final int y, final int hints) { final ReparentAction reparentAction = new ReparentAction(newParent, x, y, hints); runOnEDTIfAvail(true, reparentAction); return reparentAction.getOp(); }
@Override public final MonitorDevice getMainMonitor() { return screen.getMainMonitor( getBounds() ); }
@Override public MonitorDevice getPrimaryMonitor() { final ScreenMonitorState sms = getScreenMonitorStatus(false); return null != sms ? sms.getPrimaryMonitorDevice() : null; }
@Override public final void enqueueEvent(final boolean wait, final com.jogamp.newt.event.NEWTEvent event) { if(isNativeValid()) { ((DisplayImpl)screen.getDisplay()).enqueueEvent(wait, event); } }
@Override public void run() { WindowImpl.shutdownAll(); ScreenImpl.shutdownAll(); DisplayImpl.shutdownAll(); } });
public void run() { if( !display.isNativeValidAsync() ) { destroyOnEDT(display.getHandle()); } } } ); }
@Override public final void setSize(final int width, final int height) { runOnEDTIfAvail(true, new SetSizeAction(width, height, false)); } @Override
protected void destroy(final boolean preserveResources) { if( null != lifecycleHook ) { lifecycleHook.preserveGLStateAtDestroy( preserveResources ); } destroy(); }
private void setSize(final int width, final int height, final boolean force) { runOnEDTIfAvail(true, new SetSizeAction(width, height, force)); } @Override
private void setSize(final int width, final int height, final boolean force) { runOnEDTIfAvail(true, new SetSizeAction(width, height, force)); } @Override