Trait gstreamer_video::prelude::VideoOrientationExt

source ·
pub trait VideoOrientationExt: IsA<VideoOrientation> + Sealed + 'static {
    // Provided methods
    fn hcenter(&self) -> Option<i32> { ... }
    fn hflip(&self) -> Option<bool> { ... }
    fn vcenter(&self) -> Option<i32> { ... }
    fn vflip(&self) -> Option<bool> { ... }
    fn set_hcenter(&self, center: i32) -> Result<(), BoolError> { ... }
    fn set_hflip(&self, flip: bool) -> Result<(), BoolError> { ... }
    fn set_vcenter(&self, center: i32) -> Result<(), BoolError> { ... }
    fn set_vflip(&self, flip: bool) -> Result<(), BoolError> { ... }
}
Expand description

Trait containing all VideoOrientation methods.

§Implementors

VideoOrientation

Provided Methods§

source

fn hcenter(&self) -> Option<i32>

Get the horizontal centering offset from the given object.

§Returns

true in case the element supports centering

§center

return location for the result

source

fn hflip(&self) -> Option<bool>

Get the horizontal flipping state (true for flipped) from the given object.

§Returns

true in case the element supports flipping

§flip

return location for the result

source

fn vcenter(&self) -> Option<i32>

Get the vertical centering offset from the given object.

§Returns

true in case the element supports centering

§center

return location for the result

source

fn vflip(&self) -> Option<bool>

Get the vertical flipping state (true for flipped) from the given object.

§Returns

true in case the element supports flipping

§flip

return location for the result

source

fn set_hcenter(&self, center: i32) -> Result<(), BoolError>

Set the horizontal centering offset for the given object.

§center

centering offset

§Returns

true in case the element supports centering

source

fn set_hflip(&self, flip: bool) -> Result<(), BoolError>

Set the horizontal flipping state (true for flipped) for the given object.

§flip

use flipping

§Returns

true in case the element supports flipping

source

fn set_vcenter(&self, center: i32) -> Result<(), BoolError>

Set the vertical centering offset for the given object.

§center

centering offset

§Returns

true in case the element supports centering

source

fn set_vflip(&self, flip: bool) -> Result<(), BoolError>

Set the vertical flipping state (true for flipped) for the given object.

§flip

use flipping

§Returns

true in case the element supports flipping

Object Safety§

This trait is not object safe.

Implementors§