Top Description Fields Constructors Methods
com.sun.glass.ui.gtk.screencast

public Class ScreencastHelper

extends Object
Class Inheritance
Imports
com.sun.glass.ui.Screen, com.sun.javafx.geom.Rectangle, java.util.List, .Set, .Timer, .TimerTask, java.util.stream.IntStream, java.util.function.Supplier

Helper class for grabbing pixels from the screen using the org.freedesktop.portal.ScreenCast API

Field Summary

Modifier and TypeField and Description
private static final int
private static final int
private static final int
private static final boolean
private static final int
pack-priv static final boolean
private static final Timer
private static volatile TimerTask

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static int
clipRound(final double coordinate)

private static synchronized native void
private static void
debugReturnValue(int retVal)

public static synchronized void
getRGBPixels(int x, int y, int width, int height, int[] pixelArray)

private static native int
getRGBPixelsImpl(int x, int y, int width, int height, int[] pixelArray, int[] affectedScreensBoundsArray, String token)

private static List<Rectangle>
public static boolean
private static native boolean
loadPipewire(boolean screencastDebug)

private static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DELAY_BEFORE_SESSION_CLOSEback to summary
private static final int DELAY_BEFORE_SESSION_CLOSE
DENIEDback to summary
private static final int DENIED
ERRORback to summary
private static final int ERROR
IS_NATIVE_LOADEDback to summary
private static final boolean IS_NATIVE_LOADED
OUT_OF_BOUNDSback to summary
private static final int OUT_OF_BOUNDS
SCREENCAST_DEBUGback to summary
pack-priv static final boolean SCREENCAST_DEBUG
timerCloseSessionback to summary
private static final Timer timerCloseSession
timerTaskback to summary
private static volatile TimerTask timerTask

Constructor Detail

ScreencastHelperback to summary
private ScreencastHelper()

Method Detail

clipRoundback to summary
public static int clipRound(final double coordinate)
closeSessionback to summary
private static synchronized native void closeSession()
debugReturnValueback to summary
private static void debugReturnValue(int retVal)
getRGBPixelsback to summary
public static synchronized void getRGBPixels(int x, int y, int width, int height, int[] pixelArray)
getRGBPixelsImplback to summary
private static native int getRGBPixelsImpl(int x, int y, int width, int height, int[] pixelArray, int[] affectedScreensBoundsArray, String token)
getSystemScreensBoundsback to summary
private static List<Rectangle> getSystemScreensBounds()
isAvailableback to summary
public static boolean isAvailable()
loadPipewireback to summary
private static native boolean loadPipewire(boolean screencastDebug)
timerCloseSessionRestartback to summary
private static void timerCloseSessionRestart()