pub type Segment = FormattedSegment<GenericFormattedValue>;
Aliased Type§
struct Segment {
pub(crate) inner: GstSegment,
pub(crate) phantom: PhantomData<GenericFormattedValue>,
}
Fields§
§inner: GstSegment
§phantom: PhantomData<GenericFormattedValue>
Implementations§
Source§impl Segment
impl Segment
pub fn reset_with_format(&mut self, format: Format)
pub fn set_format(&mut self, format: Format)
pub fn downcast<T: FormattedValueIntrinsic>( self, ) -> Result<FormattedSegment<T>, Self>
pub fn downcast_ref<T: FormattedValueIntrinsic>( &self, ) -> Option<&FormattedSegment<T>>
pub fn downcast_mut<T: FormattedValueIntrinsic>( &mut self, ) -> Option<&mut FormattedSegment<T>>
Source§impl<T: FormattedValueIntrinsic> FormattedSegment<T>
impl<T: FormattedValueIntrinsic> FormattedSegment<T>
pub fn as_ptr(&self) -> *mut GstSegment
Sourcepub unsafe fn from_glib_ptr_borrow<'a>(ptr: *const GstSegment) -> &'a Self
pub unsafe fn from_glib_ptr_borrow<'a>(ptr: *const GstSegment) -> &'a Self
Borrows the underlying C value.
Sourcepub unsafe fn from_glib_ptr_borrow_mut<'a>(ptr: *mut GstSegment) -> &'a mut Self
pub unsafe fn from_glib_ptr_borrow_mut<'a>(ptr: *mut GstSegment) -> &'a mut Self
Borrows the underlying C value mutably.
Source§impl<T> FormattedSegment<T>
impl<T> FormattedSegment<T>
pub fn position_from_running_time( &self, running_time: impl CompatibleFormattedValue<T>, ) -> T::FullRange
pub fn position_from_stream_time( &self, stream_time: impl CompatibleFormattedValue<T>, ) -> T::FullRange
pub fn to_running_time( &self, position: impl CompatibleFormattedValue<T>, ) -> T::FullRange
pub fn to_stream_time( &self, position: impl CompatibleFormattedValue<T>, ) -> T::FullRange
Source§impl<T> FormattedSegment<T>where
T: FormattedValueIntrinsic,
T::FullRange: UnsignedIntoSigned + NoneSignedBuilder<Signed = <T::FullRange as UnsignedIntoSigned>::Signed>,
impl<T> FormattedSegment<T>where
T: FormattedValueIntrinsic,
T::FullRange: UnsignedIntoSigned + NoneSignedBuilder<Signed = <T::FullRange as UnsignedIntoSigned>::Signed>,
pub fn position_from_running_time_full( &self, running_time: impl CompatibleFormattedValue<T>, ) -> <T::FullRange as UnsignedIntoSigned>::Signed
pub fn position_from_stream_time_full( &self, stream_time: impl CompatibleFormattedValue<T>, ) -> <T::FullRange as UnsignedIntoSigned>::Signed
pub fn to_running_time_full( &self, position: impl CompatibleFormattedValue<T>, ) -> <T::FullRange as UnsignedIntoSigned>::Signed
pub fn to_stream_time_full( &self, position: impl CompatibleFormattedValue<T>, ) -> <T::FullRange as UnsignedIntoSigned>::Signed
Source§impl<T: FormattedValueIntrinsic> FormattedSegment<T>
impl<T: FormattedValueIntrinsic> FormattedSegment<T>
pub fn new() -> Self
pub fn upcast(self) -> Segment
pub fn upcast_ref(&self) -> &Segment
pub fn reset(&mut self)
pub fn clip( &self, start: impl CompatibleFormattedValue<T>, stop: impl CompatibleFormattedValue<T>, ) -> Option<(T::FullRange, T::FullRange)>
pub fn do_seek( &mut self, rate: f64, flags: SeekFlags, start_type: SeekType, start: impl CompatibleFormattedValue<T>, stop_type: SeekType, stop: impl CompatibleFormattedValue<T>, ) -> Option<bool>
pub fn offset_running_time(&mut self, offset: i64) -> Result<(), BoolError>
pub fn set_running_time( &mut self, running_time: impl CompatibleFormattedValue<T>, ) -> Result<(), BoolError>
pub fn flags(&self) -> SegmentFlags
pub fn set_flags(&mut self, flags: SegmentFlags)
pub fn rate(&self) -> f64
pub fn set_rate(&mut self, rate: f64)
pub fn applied_rate(&self) -> f64
pub fn set_applied_rate(&mut self, applied_rate: f64)
pub fn format(&self) -> Format
pub fn base(&self) -> T::FullRange
pub fn set_base(&mut self, base: impl CompatibleFormattedValue<T>)
pub fn offset(&self) -> T::FullRange
pub fn set_offset(&mut self, offset: impl CompatibleFormattedValue<T>)
pub fn start(&self) -> T::FullRange
pub fn set_start(&mut self, start: impl CompatibleFormattedValue<T>)
pub fn stop(&self) -> T::FullRange
pub fn set_stop(&mut self, stop: impl CompatibleFormattedValue<T>)
pub fn time(&self) -> T::FullRange
pub fn set_time(&mut self, time: impl CompatibleFormattedValue<T>)
pub fn position(&self) -> T::FullRange
pub fn set_position(&mut self, position: impl CompatibleFormattedValue<T>)
pub fn duration(&self) -> T::FullRange
pub fn set_duration(&mut self, duration: impl CompatibleFormattedValue<T>)
Trait Implementations§
Source§impl ValueType for Segment
impl ValueType for Segment
Source§type Type = FormattedSegment<GenericFormattedValue>
type Type = FormattedSegment<GenericFormattedValue>
Type to get the
Type
from. Read moreSource§impl<T: FormattedValueIntrinsic> AsRef<FormattedSegment<GenericFormattedValue>> for FormattedSegment<T>
impl<T: FormattedValueIntrinsic> AsRef<FormattedSegment<GenericFormattedValue>> for FormattedSegment<T>
Source§impl<T: FormattedValueIntrinsic> Clone for FormattedSegment<T>
impl<T: FormattedValueIntrinsic> Clone for FormattedSegment<T>
Source§impl<T: FormattedValueIntrinsic> Debug for FormattedSegment<T>
impl<T: FormattedValueIntrinsic> Debug for FormattedSegment<T>
Source§impl<T: FormattedValueIntrinsic> Default for FormattedSegment<T>
impl<T: FormattedValueIntrinsic> Default for FormattedSegment<T>
Source§impl<T: FormattedValueIntrinsic> Drop for FormattedSegment<T>
impl<T: FormattedValueIntrinsic> Drop for FormattedSegment<T>
Source§impl<T: FormattedValueIntrinsic> PartialEq for FormattedSegment<T>
impl<T: FormattedValueIntrinsic> PartialEq for FormattedSegment<T>
Source§impl<T: FormattedValueIntrinsic> StaticType for FormattedSegment<T>
impl<T: FormattedValueIntrinsic> StaticType for FormattedSegment<T>
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.