public class SWTAccessor extends Object
Constructor and Description |
---|
SWTAccessor() |
Modifier and Type | Method and Description |
---|---|
static void |
disposeGC(org.eclipse.swt.widgets.Control swtControl,
long gc,
org.eclipse.swt.graphics.GCData gcData) |
static AbstractGraphicsDevice |
getDevice(org.eclipse.swt.widgets.Control swtControl) |
static long |
getHandle(org.eclipse.swt.widgets.Control swtControl) |
static int |
getNativeVisualID(AbstractGraphicsDevice device,
long windowHandle) |
static AbstractGraphicsScreen |
getScreen(AbstractGraphicsDevice device,
int screen) |
static long |
getWindowHandle(org.eclipse.swt.widgets.Control swtControl) |
static void |
invoke(boolean wait,
Runnable runnable)
Runs the specified action in an SWT compatible thread, which is:
Mac OSX
Main Thread: Run on OSX UI main thread.
Linux, Windows, ..
|
static boolean |
isUsingLongHandles() |
static long |
newGC(org.eclipse.swt.widgets.Control swtControl,
org.eclipse.swt.graphics.GCData gcData) |
static void |
setRealized(org.eclipse.swt.widgets.Control swtControl,
boolean realize) |
public static boolean isUsingLongHandles()
public static long getHandle(org.eclipse.swt.widgets.Control swtControl)
public static void setRealized(org.eclipse.swt.widgets.Control swtControl, boolean realize)
public static AbstractGraphicsDevice getDevice(org.eclipse.swt.widgets.Control swtControl)
public static AbstractGraphicsScreen getScreen(AbstractGraphicsDevice device, int screen)
public static int getNativeVisualID(AbstractGraphicsDevice device, long windowHandle)
public static long getWindowHandle(org.eclipse.swt.widgets.Control swtControl)
public static long newGC(org.eclipse.swt.widgets.Control swtControl, org.eclipse.swt.graphics.GCData gcData)
public static void disposeGC(org.eclipse.swt.widgets.Control swtControl, long gc, org.eclipse.swt.graphics.GCData gcData)
public static void invoke(boolean wait, Runnable runnable)
Platform.AWT_AVAILABLE
,
Platform.getOSType()
Copyright 2010 JogAmp Community.