| Modifier and Type | Class and Description |
|---|---|
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| private static final int[] | |
| private static final int[] | |
| private static final int | |
| public static final String | |
| public static final Object | GTK_LOCK
All calls into GTK should be synchronized on this lock |
| private static volatile Boolean | |
| private Boolean | |
| private Boolean | |
| private static volatile Boolean | |
| private BufferedImage | |
| private static final WindowFocusListener |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| private static native boolean | |
| public boolean | Returns: true if the GTK+ library is compatible with the given
version.The required major version. major, int The required minor version. minor, int The required micro version. micro)Returns |
| private static boolean | |
| public void | |
| public void | |
| private static native int | |
| public static int | |
| public String | |
| protected RenderingHints | |
| public static UNIXToolkit. | |
| public Integer | |
| public BufferedImage | Returns: The icon or null if it was not found or loaded.Returns a BufferedImage which contains the Gtk icon requested. |
| public static UNIXToolkit. | |
| public BufferedImage | Returns: The stock icon or null if it was not found or loaded.one of WidgetType values defined in GTKNativeEngine or
-1 for system default stock icon. widgetType, final String String which defines the stock id of the gtk item.
For a complete list reference the API at www.gtk.org for StockItems. stockId, final int One of the GtkIconSize values defined in GTKConstants iconSize, final int One of the TextDirection values defined in
GTKConstants direction, final String Render detail that is passed to the native engine (feel
free to pass null) detail)Returns a BufferedImage which contains the Gtk stock icon requested. |
| private native boolean | |
| public static boolean | |
| public boolean | isNativeGTKAvailable()
Overrides sun. Returns true if the native GTK libraries are capable of being loaded and are expected to work properly, false otherwise. |
| public static boolean | |
| public boolean | isRunningOnWayland()
Overrides sun. Checks if the system is running Linux with the Wayland server. |
| protected Object | lazilyLoadDesktopProperty(String name)
Overrides java. Overridden to handle GTK icon loading |
| protected Object | Returns: anImage for the icon, or null if the
icon could not be loadeda desktop property name. This contains icon name, size
and orientation, e.g. longname)"gtk.icon.gtk-add.4.rtl"Load a native Gtk stock icon. |
| private static native boolean | |
| private native boolean | |
| private native boolean | |
| public boolean | |
| public void | loadIconCallback(byte[] data, int width, int height, int rowStride, int bps, int channels, boolean alpha)
This method is used by JNI as a callback from load_stock_icon. |
| private native void | |
| public boolean | Returns: true if system tray should be disabledThere is an issue displaying the xembed icons in appIndicators area with certain Gnome Shell versions. |
| public void | |
| private static native boolean |
| BAND_OFFSETS | back to summary |
|---|---|
| private static final int[] BAND_OFFSETS | |
| BAND_OFFSETS_ALPHA | back to summary |
|---|---|
| private static final int[] BAND_OFFSETS_ALPHA | |
| DEFAULT_DATATRANSFER_TIMEOUT | back to summary |
|---|---|
| private static final int DEFAULT_DATATRANSFER_TIMEOUT | |
| FONTCONFIGAAHINT | back to summary |
|---|---|
| public static final String FONTCONFIGAAHINT | |
| GTK_LOCK | back to summary |
|---|---|
| public static final Object GTK_LOCK All calls into GTK should be synchronized on this lock | |
| isOnWayland | back to summary |
|---|---|
| private static volatile Boolean isOnWayland | |
| nativeGTKAvailable | back to summary |
|---|---|
| private Boolean nativeGTKAvailable | |
| nativeGTKLoaded | back to summary |
|---|---|
| private Boolean nativeGTKLoaded | |
| shouldDisableSystemTray | back to summary |
|---|---|
| private static volatile Boolean shouldDisableSystemTray | |
| tmpImage | back to summary |
|---|---|
| private BufferedImage tmpImage | |
| waylandWindowFocusListener | back to summary |
|---|---|
| private static final WindowFocusListener waylandWindowFocusListener | |
| UNIXToolkit | back to summary |
|---|---|
| public UNIXToolkit() | |
| addWaylandWindowFocusListenerToWindow | back to summary |
|---|---|
| private static void addWaylandWindowFocusListenerToWindow(Window window) | |
| check_gtk | back to summary |
|---|---|
| private static native boolean check_gtk(int version) | |
| checkGtkVersion | back to summary |
|---|---|
| public boolean checkGtkVersion(int major, int minor, int micro) Returns
| |
| containsWaylandWindowFocusListener | back to summary |
|---|---|
| private static boolean containsWaylandWindowFocusListener(Window window) | |
| dismissPopupOnFocusLostIfNeeded | back to summary |
|---|---|
| public void dismissPopupOnFocusLostIfNeeded(Window invoker) Overrides sun.
| |
| dismissPopupOnFocusLostIfNeededCleanUp | back to summary |
|---|---|
| public void dismissPopupOnFocusLostIfNeededCleanUp(Window invoker) Overrides sun.
| |
| get_gtk_version | back to summary |
|---|---|
| private static native int get_gtk_version() | |
| getDatatransferTimeout | back to summary |
|---|---|
| public static int getDatatransferTimeout() | |
| getDesktop | back to summary |
|---|---|
| public String getDesktop() Overrides sun.
| |
| getDesktopAAHints | back to summary |
|---|---|
| protected RenderingHints getDesktopAAHints() Overrides sun.
| |
| getEnabledGtkVersion | back to summary |
|---|---|
| public static UNIXToolkit. | |
| getGnomeShellMajorVersion | back to summary |
|---|---|
| public Integer getGnomeShellMajorVersion() | |
| getGTKIcon | back to summary |
|---|---|
| public BufferedImage getGTKIcon(final String filename) Returns a BufferedImage which contains the Gtk icon requested. If no such icon exists or an error occurs loading the icon the result will be null.
| |
| getGtkVersion | back to summary |
|---|---|
| public static UNIXToolkit. | |
| getStockIcon | back to summary |
|---|---|
| public BufferedImage getStockIcon(final int widgetType, final String stockId, final int iconSize, final int direction, final String detail) Returns a BufferedImage which contains the Gtk stock icon requested. If no such stock icon exists the result will be null.
| |
| gtkCheckVersionImpl | back to summary |
|---|---|
| private native boolean gtkCheckVersionImpl(int major, int minor, int micro) | |
| isGtkVerbose | back to summary |
|---|---|
| public static boolean isGtkVerbose() | |
| isNativeGTKAvailable | back to summary |
|---|---|
| public boolean isNativeGTKAvailable() Overrides sun. Returns true if the native GTK libraries are capable of being loaded and are expected to work properly, false otherwise. Note that this method will not leave the native GTK libraries loaded if they haven't already been loaded. This allows, for example, Swing's GTK L&F to test for the presence of native GTK support without leaving the native libraries loaded. To attempt long-term loading of the native GTK libraries, use the loadGTK() method instead.
| |
| isOnWayland | back to summary |
|---|---|
| public static boolean isOnWayland() | |
| isRunningOnWayland | back to summary |
|---|---|
| public boolean isRunningOnWayland() Overrides sun. Doc from sun. Checks if the system is running Linux with the Wayland server.
| |
| lazilyLoadDesktopProperty | back to summary |
|---|---|
| protected Object lazilyLoadDesktopProperty(String name) Overrides java. Overridden to handle GTK icon loading
| |
| lazilyLoadGTKIcon | back to summary |
|---|---|
| protected Object lazilyLoadGTKIcon(String longname) Load a native Gtk stock icon. | |
| load_gtk | back to summary |
|---|---|
| private static native boolean load_gtk(int version, boolean verbose) | |
| load_gtk_icon | back to summary |
|---|---|
| private native boolean load_gtk_icon(String filename) | |
| load_stock_icon | back to summary |
|---|---|
| private native boolean load_stock_icon(int widget_type, String stock_id, int iconSize, int textDirection, String detail) | |
| loadGTK | back to summary |
|---|---|
| public boolean loadGTK() Loads the GTK libraries, if necessary. The first time this method is called, it will attempt to load the native GTK library. If successful, it leaves the library open and returns true; otherwise, the library is left closed and returns false. On future calls to this method, the status of the first attempt is returned (a simple lightweight boolean check, no native calls required). | |
| loadIconCallback | back to summary |
|---|---|
| public void loadIconCallback(byte[] data, int width, int height, int rowStride, int bps, int channels, boolean alpha) This method is used by JNI as a callback from load_stock_icon. Image data is passed back to us via this method and loaded into the local BufferedImage and then returned via getStockIcon. Do NOT call this method directly. | |
| nativeSync | back to summary |
|---|---|
| private native void nativeSync() | |
| shouldDisableSystemTray | back to summary |
|---|---|
| public boolean shouldDisableSystemTray() There is an issue displaying the xembed icons in appIndicators area with certain Gnome Shell versions. To avoid any loss of quality of service, we are disabling SystemTray support in such cases.
| |
| sync | back to summary |
|---|---|
| public void sync() Implements abstract java. Doc from java. Synchronizes this toolkit's graphics state. Some window systems may do buffering of graphics events. This method ensures that the display is up-to-date. It is useful for animation.
| |
| unload_gtk | back to summary |
|---|---|
| private static native boolean unload_gtk() | |
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final UNIXToolkit. | |
| public static final UNIXToolkit. | |
| pack-priv final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public static UNIXToolkit. | |
| public static UNIXToolkit. | |
| public static UNIXToolkit. |
| ANY | back to summary |
|---|---|
| public static final UNIXToolkit. | |
| GTK3 | back to summary |
|---|---|
| public static final UNIXToolkit. | |
| number | back to summary |
|---|---|
| pack-priv final int number | |
| GtkVersions | back to summary |
|---|---|
| private GtkVersions(int number) | |
| getNumber | back to summary |
|---|---|
| public int getNumber() | |
| getVersion | back to summary |
|---|---|
| public static UNIXToolkit. | |
| valueOf | back to summary |
|---|---|
| public static UNIXToolkit. | |
| values | back to summary |
|---|---|
| public static UNIXToolkit. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| GTK3_MAJOR_NUMBER | back to summary |
|---|---|
| pack-priv static final int GTK3_MAJOR_NUMBER | |
| Constants | back to summary |
|---|---|
| pack-priv Constants() | |