com.jogamp.nativewindow.swt
Class SWTAccessor
java.lang.Object
com.jogamp.nativewindow.swt.SWTAccessor
public class SWTAccessor
- extends Object
Method Summary |
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)
|
SWTAccessor
public SWTAccessor()
isUsingLongHandles
public static boolean isUsingLongHandles()
getHandle
public static long getHandle(org.eclipse.swt.widgets.Control swtControl)
setRealized
public static void setRealized(org.eclipse.swt.widgets.Control swtControl,
boolean realize)
getDevice
public static AbstractGraphicsDevice getDevice(org.eclipse.swt.widgets.Control swtControl)
getScreen
public static AbstractGraphicsScreen getScreen(AbstractGraphicsDevice device,
int screen)
getNativeVisualID
public static int getNativeVisualID(AbstractGraphicsDevice device,
long windowHandle)
getWindowHandle
public static long getWindowHandle(org.eclipse.swt.widgets.Control swtControl)
newGC
public static long newGC(org.eclipse.swt.widgets.Control swtControl,
org.eclipse.swt.graphics.GCData gcData)
disposeGC
public static void disposeGC(org.eclipse.swt.widgets.Control swtControl,
long gc,
org.eclipse.swt.graphics.GCData gcData)
invoke
public 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, ..
- See Also:
Platform.AWT_AVAILABLE
,
Platform.getOSType()
Copyright 2010 JogAmp Community.