Trait gstreamer_video::prelude::VideoOrientationExt[][src]

pub trait VideoOrientationExt: 'static {
    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>; }

Trait containing all VideoOrientation methods.

Implementors

crate::VideoOrientation

Required methods

fn hcenter(&self) -> Option<i32>[src]

Get the horizontal centering offset from the given object.

center

return location for the result

Returns

true in case the element supports centering

fn hflip(&self) -> Option<bool>[src]

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

flip

return location for the result

Returns

true in case the element supports flipping

fn vcenter(&self) -> Option<i32>[src]

Get the vertical centering offset from the given object.

center

return location for the result

Returns

true in case the element supports centering

fn vflip(&self) -> Option<bool>[src]

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

flip

return location for the result

Returns

true in case the element supports flipping

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

Set the horizontal centering offset for the given object.

center

centering offset

Returns

true in case the element supports centering

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

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

flip

use flipping

Returns

true in case the element supports flipping

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

Set the vertical centering offset for the given object.

center

centering offset

Returns

true in case the element supports centering

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

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

flip

use flipping

Returns

true in case the element supports flipping

Loading content...

Implementors

impl<O: IsA<VideoOrientation>> VideoOrientationExt for O[src]

fn hcenter(&self) -> Option<i32>[src]

fn hflip(&self) -> Option<bool>[src]

fn vcenter(&self) -> Option<i32>[src]

fn vflip(&self) -> Option<bool>[src]

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

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

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

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

Loading content...