[]Struct gstreamer_player::PlayerVideoOverlayVideoRenderer

pub struct PlayerVideoOverlayVideoRenderer(_, _);

Implements

glib::object::ObjectExt, PlayerVideoRendererExt

Methods

impl PlayerVideoOverlayVideoRenderer[src]

pub fn expose(&self)[src]

Tell an overlay that it has been exposed. This will redraw the current frame in the drawable even if the pipeline is PAUSED.

pub fn get_render_rectangle(&self) -> (i32, i32, i32, i32)[src]

Return the currently configured render rectangle. See PlayerVideoOverlayVideoRenderer::set_render_rectangle for details.

x

the horizontal offset of the render area inside the window

y

the vertical offset of the render area inside the window

width

the width of the render area inside the window

height

the height of the render area inside the window

pub fn set_render_rectangle(&self, x: i32, y: i32, width: i32, height: i32)[src]

Configure a subregion as a video target within the window set by PlayerVideoOverlayVideoRenderer::set_window_handle. 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 overlaid to a specific region of that window only. After setting the new rectangle one should call PlayerVideoOverlayVideoRenderer::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.

x

the horizontal offset of the render area inside the window

y

the vertical offset of the render area inside the window

width

the width of the render area inside the window

height

the height of the render area inside the window

pub fn get_property_video_sink(&self) -> Option<Element>[src]

pub fn set_property_video_sink<P: IsA<Element> + SetValueOptional>(
    &self,
    video_sink: Option<&P>
)
[src]

pub fn connect_property_video_sink_notify<F: Fn(&PlayerVideoOverlayVideoRenderer) + Send + Sync + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_property_window_handle_notify<F: Fn(&PlayerVideoOverlayVideoRenderer) + Send + Sync + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

impl PlayerVideoOverlayVideoRenderer[src]

pub unsafe fn new(window_handle: uintptr_t) -> PlayerVideoOverlayVideoRenderer[src]

window_handle

Window handle to use or None

pub unsafe fn new_with_handle_and_sink<P: IsA<Element>>(
    window_handle: uintptr_t,
    video_sink: &P
) -> PlayerVideoOverlayVideoRenderer
[src]

pub fn new_with_sink<P: IsA<Element>>(
    video_sink: &P
) -> PlayerVideoOverlayVideoRenderer
[src]

window_handle

Window handle to use or None

video_sink

the custom video_sink element to be set for the video renderer

pub unsafe fn get_window_handle(&self) -> uintptr_t[src]

Returns

The currently set, platform specific window handle

pub unsafe fn set_window_handle(&self, window_handle: uintptr_t)[src]

Sets the platform specific window handle into which the video should be rendered

window_handle

handle referencing to the platform specific window

Trait Implementations

impl Clone for PlayerVideoOverlayVideoRenderer

impl Debug for PlayerVideoOverlayVideoRenderer

impl Eq for PlayerVideoOverlayVideoRenderer

impl Hash for PlayerVideoOverlayVideoRenderer

impl IsA<PlayerVideoRenderer> for PlayerVideoOverlayVideoRenderer

impl Ord for PlayerVideoOverlayVideoRenderer

impl<T: ObjectType> PartialEq<T> for PlayerVideoOverlayVideoRenderer

impl<T: ObjectType> PartialOrd<T> for PlayerVideoOverlayVideoRenderer

impl Send for PlayerVideoOverlayVideoRenderer[src]

impl StaticType for PlayerVideoOverlayVideoRenderer

impl Sync for PlayerVideoOverlayVideoRenderer[src]

Auto Trait Implementations

impl RefUnwindSafe for PlayerVideoOverlayVideoRenderer

impl Unpin for PlayerVideoOverlayVideoRenderer

impl UnwindSafe for PlayerVideoOverlayVideoRenderer

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 
[src]

impl<T> Cast for T where
    T: ObjectType
[src]

impl<T> From<T> for T[src]

impl<O> GObjectExtManualGst for O where
    O: IsA<Object>, 
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ObjectExt for T where
    T: ObjectType
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.