|
JOGL v2.6.0
JOGL, High-Performance Graphics Binding for Java (public API).
|
SWT Canvas containing a NEWT Window using native parenting.
More...
Public Member Functions | |
| NewtCanvasSWT (final Composite parent, final int style, final Window child) | |
| Instantiates a NewtCanvas with a NEWT child. More... | |
| void | setBounds (final int x, final int y, final int width, final int height) |
| void | update () |
| void | dispose () throws SWTException |
| Destroys this resource: More... | |
| NativeWindow | getNativeWindow () |
Returns the associated NativeWindow of this NativeWindowHolder, which is identical to getNativeSurface(). More... | |
| NativeSurface | getNativeSurface () |
Returns the associated NativeSurface of this NativeSurfaceHolder. More... | |
| WindowClosingMode | getDefaultCloseOperation () |
| WindowClosingMode | setDefaultCloseOperation (final WindowClosingMode op) |
| Window | setNEWTChild (final Window newChild) throws SWTException |
| Sets a new NEWT child, provoking reparenting. More... | |
| Window | getNEWTChild () |
| boolean | setParent (final Composite parent) |
| boolean | forceFocus () |
| NativeWindow | getNativeWindow () |
Returns the associated NativeWindow of this NativeWindowHolder, which is identical to getNativeSurface(). More... | |
| NativeSurface | getNativeSurface () |
Returns the associated NativeSurface of this NativeSurfaceHolder. More... | |
| WindowClosingMode | getDefaultCloseOperation () |
| WindowClosingMode | setDefaultCloseOperation (WindowClosingMode op) |
Static Public Member Functions | |
| static NewtCanvasSWT | create (final Composite parent, final int style, final Window child) |
Creates an instance using NewtCanvasSWT(Composite, int, Window) on the SWT thread. More... | |
Protected Member Functions | |
| final boolean | isNativeValid () |
| final boolean | validateNative () |
| final void | updatePosSizeCheck () |
SWT Canvas containing a NEWT Window using native parenting.
Implementation allows use of custom GLCapabilities.
Definition at line 74 of file NewtCanvasSWT.java.
| com.jogamp.newt.swt.NewtCanvasSWT.NewtCanvasSWT | ( | final Composite | parent, |
| final int | style, | ||
| final Window | child | ||
| ) |
Instantiates a NewtCanvas with a NEWT child.
Note: The NEWT child Display's EDTUtil is being set to an SWT conform implementation via Display#setEDTUtil(EDTUtil).
| parent | the SWT composite |
| style | additional styles to SWT::NO_BACKGROUND |
| child | optional preassigned Window, maybe null |
Definition at line 131 of file NewtCanvasSWT.java.
|
static |
Creates an instance using NewtCanvasSWT(Composite, int, Window) on the SWT thread.
Note: The NEWT child Display's EDTUtil is being set to an SWT conform implementation via Display#setEDTUtil(EDTUtil).
| parent | the SWT composite |
| style | additional styles to SWT::NO_BACKGROUND |
| child | optional preassigned Window, maybe null |
Definition at line 106 of file NewtCanvasSWT.java.
| void com.jogamp.newt.swt.NewtCanvasSWT.dispose | ( | ) | throws SWTException |
Destroys this resource:
destroy() on the NEWT Child | SWTException | If this method is not called from the SWT thread, an SWTException is thrown for compliance across platforms. User may utilize SWTAccessor#invokeOnSWTThread(org.eclipse.swt.widgets.Display, boolean, Runnable). |
Definition at line 422 of file NewtCanvasSWT.java.
| boolean com.jogamp.newt.swt.NewtCanvasSWT.forceFocus | ( | ) |
Definition at line 602 of file NewtCanvasSWT.java.
| WindowClosingMode com.jogamp.newt.swt.NewtCanvasSWT.getDefaultCloseOperation | ( | ) |
Implements com.jogamp.nativewindow.WindowClosingProtocol.
Definition at line 468 of file NewtCanvasSWT.java.
| NativeSurface com.jogamp.newt.swt.NewtCanvasSWT.getNativeSurface | ( | ) |
Returns the associated NativeSurface of this NativeSurfaceHolder.
NativeSurface representation, may be null in case it has not been realized Implements com.jogamp.nativewindow.NativeSurfaceHolder.
Definition at line 465 of file NewtCanvasSWT.java.
| NativeWindow com.jogamp.newt.swt.NewtCanvasSWT.getNativeWindow | ( | ) |
Returns the associated NativeWindow of this NativeWindowHolder, which is identical to getNativeSurface().
NativeWindow representation, may be null in case it has not been realized Implements com.jogamp.nativewindow.NativeWindowHolder.
Definition at line 458 of file NewtCanvasSWT.java.
| Window com.jogamp.newt.swt.NewtCanvasSWT.getNEWTChild | ( | ) |
Definition at line 531 of file NewtCanvasSWT.java.
|
protected |
Definition at line 313 of file NewtCanvasSWT.java.
| void com.jogamp.newt.swt.NewtCanvasSWT.setBounds | ( | final int | x, |
| final int | y, | ||
| final int | width, | ||
| final int | height | ||
| ) |
| WindowClosingMode com.jogamp.newt.swt.NewtCanvasSWT.setDefaultCloseOperation | ( | final WindowClosingMode | op | ) |
| op | the new close operation value |
Implements com.jogamp.nativewindow.WindowClosingProtocol.
Definition at line 473 of file NewtCanvasSWT.java.
Sets a new NEWT child, provoking reparenting.
A previously detached newChild will be released to top-level status and made invisible.
Note: When switching NEWT child's, detaching the previous first via setNEWTChild(null) produced much cleaner visual results.
Note: The NEWT child Display's EDTUtil is being set to an SWT conform implementation via Display#setEDTUtil(EDTUtil).
| SWTException | If this method is not called from the SWT thread, an SWTException is thrown for compliance across platforms. User may utilize SWTAccessor#invokeOnSWTThread(org.eclipse.swt.widgets.Display, boolean, Runnable). |
Definition at line 507 of file NewtCanvasSWT.java.
| boolean com.jogamp.newt.swt.NewtCanvasSWT.setParent | ( | final Composite | parent | ) |
Definition at line 536 of file NewtCanvasSWT.java.
| void com.jogamp.newt.swt.NewtCanvasSWT.update | ( | ) |
Definition at line 403 of file NewtCanvasSWT.java.
|
protected |
Definition at line 353 of file NewtCanvasSWT.java.
|
protected |