#[repr(transparent)]pub struct VideoOverlayRectangleRef(GstVideoOverlayRectangle);
Tuple Fields§
§0: GstVideoOverlayRectangle
Implementations§
source§impl VideoOverlayRectangleRef
impl VideoOverlayRectangleRef
pub fn as_ptr(&self) -> *const GstVideoOverlayRectangle
pub fn as_mut_ptr(&self) -> *mut GstVideoOverlayRectangle
pub unsafe fn from_ptr<'a>(ptr: *const GstVideoOverlayRectangle) -> &'a Self
pub unsafe fn from_mut_ptr<'a>( ptr: *mut GstVideoOverlayRectangle, ) -> &'a mut Self
pub fn copy(&self) -> VideoOverlayRectangle
pub fn upcast_ref(&self) -> &MiniObjectRef
pub fn upcast_mut(&mut self) -> &mut MiniObjectRef
pub fn ptr_eq( this: &VideoOverlayRectangleRef, other: &VideoOverlayRectangleRef, ) -> bool
source§impl VideoOverlayRectangleRef
impl VideoOverlayRectangleRef
pub fn flags(&self) -> VideoOverlayFormatFlags
pub fn global_alpha(&self) -> f32
pub fn set_global_alpha(&mut self, alpha: f32)
pub fn seqnum(&self) -> u32
pub fn render_rectangle(&self) -> (i32, i32, u32, u32)
pub fn set_render_rectangle( &mut self, render_x: i32, render_y: i32, render_width: u32, render_height: u32, )
pub fn pixels_unscaled_raw(&self, flags: VideoOverlayFormatFlags) -> Buffer
pub fn pixels_unscaled_ayuv(&self, flags: VideoOverlayFormatFlags) -> Buffer
pub fn pixels_unscaled_argb(&self, flags: VideoOverlayFormatFlags) -> Buffer
pub fn pixels_raw(&self, flags: VideoOverlayFormatFlags) -> Buffer
pub fn pixels_ayuv(&self, flags: VideoOverlayFormatFlags) -> Buffer
pub fn pixels_argb(&self, flags: VideoOverlayFormatFlags) -> Buffer
Trait Implementations§
source§impl AsRef<VideoOverlayRectangleRef> for VideoOverlayRectangle
impl AsRef<VideoOverlayRectangleRef> for VideoOverlayRectangle
source§fn as_ref(&self) -> &VideoOverlayRectangleRef
fn as_ref(&self) -> &VideoOverlayRectangleRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Borrow<VideoOverlayRectangleRef> for VideoOverlayRectangle
impl Borrow<VideoOverlayRectangleRef> for VideoOverlayRectangle
source§fn borrow(&self) -> &VideoOverlayRectangleRef
fn borrow(&self) -> &VideoOverlayRectangleRef
Immutably borrows from an owned value. Read more
source§impl Debug for VideoOverlayRectangleRef
impl Debug for VideoOverlayRectangleRef
source§impl<'a> FromValue<'a> for &'a VideoOverlayRectangleRef
impl<'a> FromValue<'a> for &'a VideoOverlayRectangleRef
source§type Checker = GenericValueTypeOrNoneChecker<&'a VideoOverlayRectangleRef>
type Checker = GenericValueTypeOrNoneChecker<&'a VideoOverlayRectangleRef>
Value type checker.
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moresource§impl StaticType for VideoOverlayRectangleRef
impl StaticType for VideoOverlayRectangleRef
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl ToOwned for VideoOverlayRectangleRef
impl ToOwned for VideoOverlayRectangleRef
source§type Owned = VideoOverlayRectangle
type Owned = VideoOverlayRectangle
The resulting type after obtaining ownership.
source§fn to_owned(&self) -> VideoOverlayRectangle
fn to_owned(&self) -> VideoOverlayRectangle
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more
impl Send for VideoOverlayRectangleRef
impl Sync for VideoOverlayRectangleRef
Auto Trait Implementations§
impl Freeze for VideoOverlayRectangleRef
impl RefUnwindSafe for VideoOverlayRectangleRef
impl !Unpin for VideoOverlayRectangleRef
impl UnwindSafe for VideoOverlayRectangleRef
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.