org.gstreamer.swt.overlay
Class SWTOverlay

java.lang.Object
  extended by org.gstreamer.lowlevel.NativeValue
      extended by org.gstreamer.interfaces.GstInterface
          extended by org.gstreamer.interfaces.XOverlay
              extended by org.gstreamer.swt.overlay.SWTOverlay

public class SWTOverlay
extends XOverlay

Interface for elements providing tuner operations


Nested Class Summary
 
Nested classes/interfaces inherited from class org.gstreamer.interfaces.GstInterface
GstInterface.ListElementCreator<E>
 
Field Summary
 
Fields inherited from class org.gstreamer.interfaces.GstInterface
element, handle
 
Method Summary
static long getLinuxHandle(org.eclipse.swt.widgets.Control control)
          Helper function to get the proper handle for a given SWT Control on Linux.
static long handle(org.eclipse.swt.widgets.Control control)
          Helper function to get the proper handle for a given SWT Control.
 void setWindowID(org.eclipse.swt.widgets.Control control)
          Sets the native window for the Element to use to display video.
static SWTOverlay wrap(Element element)
          Wraps the Element in a SWTOverlay interface
 
Methods inherited from class org.gstreamer.interfaces.XOverlay
expose, setWindowID, setWindowID
 
Methods inherited from class org.gstreamer.interfaces.GstInterface
nativeValue, objectList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

wrap

public static SWTOverlay wrap(Element element)
Wraps the Element in a SWTOverlay interface

Parameters:
element - the element to use as a SWTOverlay
Returns:
a SWTOverlay for the element

getLinuxHandle

public static long getLinuxHandle(org.eclipse.swt.widgets.Control control)
                           throws java.lang.SecurityException,
                                  java.lang.NoSuchFieldException,
                                  java.lang.IllegalArgumentException,
                                  java.lang.IllegalAccessException
Helper function to get the proper handle for a given SWT Control on Linux.

Parameters:
control - the SWT control for what i like to get the handle.
Returns:
the handle of the control or 0 if the handle is not available.
Throws:
java.lang.SecurityException
java.lang.NoSuchFieldException
java.lang.IllegalArgumentException
java.lang.IllegalAccessException

handle

public static long handle(org.eclipse.swt.widgets.Control control)
Helper function to get the proper handle for a given SWT Control.

Parameters:
control - the SWT control for what i like to get the handle.
Returns:
the handle of the control or 0 if the handle is not available.

setWindowID

public void setWindowID(org.eclipse.swt.widgets.Control control)
Sets the native window for the Element to use to display video.

Parameters:
window - A native window to use to display video, or null to stop using the previously set window.


Copyright © 2010. All Rights Reserved.