org.gstreamer.interfaces
public class XOverlayBase extends GstInterface
GstInterface.ListElementCreator<E>
element, handle
Modifier | Constructor and Description |
---|---|
protected |
XOverlayBase(Element element)
Creates a new XOverlay instance
|
Modifier and Type | Method and Description |
---|---|
void |
expose()
Tell an overlay that it has been exposed.
|
void |
handleEvent(boolean handle_events)
Tell an overlay that it should handle events from the window system.
|
boolean |
setRenderRectangle(XOverlayBase overlay,
int x,
int y,
int width,
int height)
Configure a subregion as a video target within the window set by
setWindowHandle(long) . |
void |
setWindowHandle(long handle)
Sets the native window for the
Element to use to display video. |
void |
setWindowID(long handle)
Deprecated.
use
setWindowHandle(long) instead |
static XOverlayBase |
wrap(Element element)
Wraps the
Element in a XOverlay interface |
getElement, nativeValue, objectList
protected XOverlayBase(Element element)
element
- the element that implements the tuner interfacepublic static XOverlayBase wrap(Element element)
Element
in a XOverlay interfaceelement
- the element to use as a XOverlaypublic void setWindowHandle(long handle)
Element
to use to display video.handle
- A native handle to use to display video.@Deprecated public void setWindowID(long handle)
setWindowHandle(long)
insteadElement
to use to display video.handle
- A native handle to use to display video.public void expose()
public void handleEvent(boolean handle_events)
public boolean setRenderRectangle(XOverlayBase overlay, int x, int y, int width, int height)
setWindowHandle(long)
. If this is not used or not supported
the video will fill the area of the window set as the overlay to 100%.
By specifying the rectangle, the video can be overlayed to a specific
region of that window only. After setting the new rectangle one should
call expose()
to force a redraw. To unset the region pass -1
for the width and height parameters.
This method is needed for non fullscreen video overlay in UI toolkits
that do not support subwindows.overlay
- x
- y
- width
- height
- Copyright © 2014. All rights reserved.