|
JOGL v2.6.0-rc-20250822
JOGL, High-Performance Graphics Binding for Java (public API).
|
Static Public Member Functions | |
| static void | initSingleton () |
| Call this method, if this class shall be initialized before any other of its methods are called within the regular workflow. More... | |
| static boolean | isUsingLongHandles () |
| static boolean | useX11GTK () |
| static VersionNumber | GTK_VERSION () |
| static long | gdk_widget_get_window (final long handle) |
| static long | gdk_window_get_xdisplay (final long window) |
| static long | gdk_window_get_xwindow (final long window) |
| static void | printInfo (final PrintStream out, final Display d) |
| static int | autoScaleUp (final int v) |
Returns SWT auto scaled-up value v, compatible with DPIUtil#autoScaleUp(int). More... | |
| static int | autoScaleDown (final int v) |
Returns SWT auto scaled-down value v, compatible with DPIUtil#autoScaleDown(int). More... | |
| static Rectangle | autoScaleUp (final Rectangle rect) |
| static Rectangle | scaleUp (final Rectangle rect, final int zoom) |
| static Point | autoScaleUp (final Point point) |
| static Point | scaleUp (final Point point, final int zoom) |
| static float | getDeviceScalingFactor () |
Returns SWT derived scale-factor based on DPIUtil#getDeviceZoom() only, not considering higher-toolkit's compensation like DPIUtil#useCairoAutoScale(). More... | |
| static int | deviceZoomScaleUp (final int v) |
Returns SWT derived scaled-up value v, based on DPIUtil#getDeviceZoom() only, not considering higher-toolkit's compensation like DPIUtil#useCairoAutoScale(). More... | |
| static int | deviceZoomScaleDown (final int v) |
Returns SWT derived scaled-down value v, based on DPIUtil#getDeviceZoom() only, not considering higher-toolkit's compensation like DPIUtil#useCairoAutoScale(). More... | |
| static com.jogamp.nativewindow.util.Point | deviceZoomScaleUp (final com.jogamp.nativewindow.util.Point v) |
Returns SWT derived scaled-up value v, based on DPIUtil#getDeviceZoom() only, not considering higher-toolkit's compensation like DPIUtil#useCairoAutoScale(). More... | |
| static com.jogamp.nativewindow.util.Point | deviceZoomScaleDown (final com.jogamp.nativewindow.util.Point v) |
Returns SWT derived scaled-down value v, based on DPIUtil#getDeviceZoom() only, not considering higher-toolkit's compensation like DPIUtil#useCairoAutoScale(). More... | |
| static Rectangle | getClientAreaInPixels (final Scrollable s) throws NativeWindowException |
Returns the unscaled Scrollable#getClientArea() in pixels. More... | |
| static Point | getLocationInPixels (final Control c) throws NativeWindowException |
| static Point | getSizeInPixels (final Control c) throws NativeWindowException |
| static long | getHandle (final Control swtControl) throws NativeWindowException |
| static void | setRealized (final Control swtControl, final boolean realize) throws NativeWindowException |
| static AbstractGraphicsDevice | getDevice (final Control swtControl) throws NativeWindowException, UnsupportedOperationException |
| static AbstractGraphicsScreen | getScreen (final AbstractGraphicsDevice device, final int screen) |
| static int | getNativeVisualID (final AbstractGraphicsDevice device, final long windowHandle) |
| static long | getWindowHandle (final Control swtControl) throws NativeWindowException, UnsupportedOperationException |
| static long | newGC (final Control swtControl, final GCData gcData) |
| static void | disposeGC (final Control swtControl, final long gc, final GCData gcData) |
| static void | invokeOnOSTKThread (final boolean blocking, final Runnable runnable) |
| Runs the specified action in an SWT compatible OS toolkit thread, which is: More... | |
| static void | invokeOnSWTThread (final org.eclipse.swt.widgets.Display display, final boolean blocking, final Runnable runnable) |
| Runs the specified action on the SWT UI thread. More... | |
| static boolean | isOnSWTThread (final org.eclipse.swt.widgets.Display display) |
| Return true if the current thread is the SWT UI thread, otherwise false. More... | |
| static long | createCompatibleX11ChildWindow (final AbstractGraphicsScreen screen, final Control swtControl, final int visualID, final int width, final int height) |
| static void | resizeX11Window (final AbstractGraphicsDevice device, final Rectangle clientArea, final long x11Window) |
| static void | destroyX11Window (final AbstractGraphicsDevice device, final long x11Window) |
| static long | createCompatibleGDKChildWindow (final Control swtControl, final int visualID, final int width, final int height) |
| static void | showGDKWindow (final long gdkWindow) |
| static void | focusGDKWindow (final long gdkWindow) |
| static void | resizeGDKWindow (final Rectangle clientArea, final long gdkWindow) |
| static void | destroyGDKWindow (final long gdkWindow) |
Static Public Attributes | |
| static final boolean | isOSX |
| static final boolean | isWindows |
| static final boolean | isX11 |
| static final boolean | isX11GTK |
| static final Class<?> | OS_gtk_class |
| static final VersionNumber | OS_gtk_version |
Definition at line 62 of file SWTAccessor.java.
|
static |
Returns SWT auto scaled-down value v, compatible with DPIUtil#autoScaleDown(int).
We need to keep track of SWT's implementation in this regard!
Definition at line 455 of file SWTAccessor.java.
|
static |
Returns SWT auto scaled-up value v, compatible with DPIUtil#autoScaleUp(int).
We need to keep track of SWT's implementation in this regard!
Definition at line 441 of file SWTAccessor.java.
|
static |
|
static |
|
static |
Definition at line 872 of file SWTAccessor.java.
|
static |
|
static |
Definition at line 919 of file SWTAccessor.java.
|
static |
|
static |
Returns SWT derived scaled-down value v, based on DPIUtil#getDeviceZoom() only, not considering higher-toolkit's compensation like DPIUtil#useCairoAutoScale().
This method should be used instead of autoScaleDown(com.jogamp.nativewindow.util.Point) for native toolkits not caring about DPI scaling like X11 or GDI.
We need to keep track of SWT's implementation in this regard!
Definition at line 575 of file SWTAccessor.java.
|
static |
Returns SWT derived scaled-down value v, based on DPIUtil#getDeviceZoom() only, not considering higher-toolkit's compensation like DPIUtil#useCairoAutoScale().
This method should be used instead of autoScaleDown(int) for native toolkits not caring about DPI scaling like X11 or GDI.
We need to keep track of SWT's implementation in this regard!
Definition at line 537 of file SWTAccessor.java.
|
static |
Returns SWT derived scaled-up value v, based on DPIUtil#getDeviceZoom() only, not considering higher-toolkit's compensation like DPIUtil#useCairoAutoScale().
This method should be used instead of autoScaleUp(com.jogamp.nativewindow.util.Point) for native toolkits not caring about DPI scaling like X11 or GDI.
We need to keep track of SWT's implementation in this regard!
Definition at line 556 of file SWTAccessor.java.
|
static |
Returns SWT derived scaled-up value v, based on DPIUtil#getDeviceZoom() only, not considering higher-toolkit's compensation like DPIUtil#useCairoAutoScale().
This method should be used instead of autoScaleUp(int) for native toolkits not caring about DPI scaling like X11 or GDI.
We need to keep track of SWT's implementation in this regard!
Definition at line 518 of file SWTAccessor.java.
|
static |
|
static |
Definition at line 906 of file SWTAccessor.java.
|
static |
|
static |
|
static |
|
static |
Returns the unscaled Scrollable#getClientArea() in pixels.
If the package restricted method Scrollable#getClientAreaInPixels() is implemented, we return its result.
Fallback is to return DPIUtil#autoScaleUp(Scrollable#getClientArea()), reverting Scrollable#getClientArea()'s DPIUtil#autoScaleDown(Rectangle).
Note to SWT's API spec writers: You need to allow access to the unscaled value, scale properties and define what is being scaled (fonts, images, ..). Further more the scale should be separate for x/y coordinates, as DPI differs here.
Note to Eclipse authors: Scaling up the fonts and images hardly works on GTK/SWT/Eclipse. GDK_SCALE, GDK_DPI_SCALE and swt.autoScale produce inconsistent results with Eclipse. Broken High-DPI for .. some years now. This is especially true for using native high-dpi w/ scaling-factor 1f.
Requires SWT >= 3.105 (DPIUtil)
| s | the Scrollable instance |
| NativeWindowException | during invocation of the method, if any |
Definition at line 611 of file SWTAccessor.java.
|
static |
| swtControl | the SWT Control to retrieve the native device handle from |
| NativeWindowException | if the widget handle is null |
| UnsupportedOperationException | if the windowing system is not supported |
Definition at line 710 of file SWTAccessor.java.
|
static |
Returns SWT derived scale-factor based on DPIUtil#getDeviceZoom() only, not considering higher-toolkit's compensation like DPIUtil#useCairoAutoScale().
This method should be used instead of getAutoScalingFactor() for native toolkits not caring about DPI scaling like X11 or GDI.
We need to keep track of SWT's implementation in this regard!
Definition at line 499 of file SWTAccessor.java.
|
static |
| swtControl | the SWT Control to retrieve the native widget-handle from |
| NativeWindowException | if the widget handle is null |
Definition at line 652 of file SWTAccessor.java.
|
static |
Definition at line 626 of file SWTAccessor.java.
|
static |
Definition at line 734 of file SWTAccessor.java.
|
static |
| device | |
| screen | -1 is default screen of the given device, e.g. maybe 0 or determined by native API. >= 0 is specific screen |
Definition at line 730 of file SWTAccessor.java.
|
static |
Definition at line 636 of file SWTAccessor.java.
|
static |
| swtControl | the SWT Control to retrieve the native window handle from |
| NativeWindowException | if the widget handle is null |
| UnsupportedOperationException | if the windowing system is not supported |
Definition at line 750 of file SWTAccessor.java.
|
static |
Definition at line 367 of file SWTAccessor.java.
|
static |
Call this method, if this class shall be initialized before any other of its methods are called within the regular workflow.
This could be desired to ensure initialization before AWT.
This method does nothing, but initializes this class's static SWT accessors if using this class for the first time.
Definition at line 326 of file SWTAccessor.java.
|
static |
Runs the specified action in an SWT compatible OS toolkit thread, which is:
RunnableTask to not freeze OSX main thread. Definition at line 807 of file SWTAccessor.java.
|
static |
Runs the specified action on the SWT UI thread.
If blocking is true implementation uses org.eclipse.swt.widgets.Display#syncExec(Runnable), otherwise org.eclipse.swt.widgets.Display#asyncExec(Runnable).
If display is null or disposed or the current thread is the SWT UI thread invokeOnOSTKThread(boolean, Runnable) is being used.
Definition at line 826 of file SWTAccessor.java.
|
static |
Return true if the current thread is the SWT UI thread, otherwise false.
Definition at line 837 of file SWTAccessor.java.
|
static |
Definition at line 362 of file SWTAccessor.java.
|
static |
|
static |
Definition at line 419 of file SWTAccessor.java.
|
static |
Definition at line 912 of file SWTAccessor.java.
|
static |
Definition at line 856 of file SWTAccessor.java.
|
static |
|
static |
Definition at line 465 of file SWTAccessor.java.
|
static |
Definition at line 682 of file SWTAccessor.java.
|
static |
Definition at line 902 of file SWTAccessor.java.
|
static |
|
static |
Definition at line 78 of file SWTAccessor.java.
|
static |
Definition at line 79 of file SWTAccessor.java.
|
static |
Definition at line 80 of file SWTAccessor.java.
|
static |
Definition at line 81 of file SWTAccessor.java.
|
static |
Definition at line 100 of file SWTAccessor.java.
|
static |
Definition at line 102 of file SWTAccessor.java.