pub trait LayerExt: 'static {
Show 21 methods fn add_asset(
        &self,
        asset: &impl IsA<Asset>,
        start: impl Into<Option<ClockTime>>,
        inpoint: impl Into<Option<ClockTime>>,
        duration: impl Into<Option<ClockTime>>,
        track_types: TrackType
    ) -> Result<Clip, BoolError>;
fn add_asset_full(
        &self,
        asset: &impl IsA<Asset>,
        start: impl Into<Option<ClockTime>>,
        inpoint: impl Into<Option<ClockTime>>,
        duration: impl Into<Option<ClockTime>>,
        track_types: TrackType
    ) -> Result<Clip, Error>;
fn add_clip(&self, clip: &impl IsA<Clip>) -> Result<(), BoolError>;
fn add_clip_full(&self, clip: &impl IsA<Clip>) -> Result<(), Error>;
fn is_active_for_track(&self, track: &impl IsA<Track>) -> bool;
fn is_auto_transition(&self) -> bool;
fn clips(&self) -> Vec<Clip>
Notable traits for Vec<u8, A>
impl<A> Write for Vec<u8, A> where
    A: Allocator
;
fn clips_in_interval(
        &self,
        start: impl Into<Option<ClockTime>>,
        end: impl Into<Option<ClockTime>>
    ) -> Vec<Clip>
Notable traits for Vec<u8, A>
impl<A> Write for Vec<u8, A> where
    A: Allocator
;
fn duration(&self) -> ClockTime;
fn priority(&self) -> u32;
fn timeline(&self) -> Option<Timeline>;
fn is_empty(&self) -> bool;
fn remove_clip(&self, clip: &impl IsA<Clip>) -> Result<(), BoolError>;
fn set_active_for_tracks(&self, active: bool, tracks: &[Track]) -> bool;
fn set_auto_transition(&self, auto_transition: bool);
fn set_priority(&self, priority: u32);
fn set_timeline(&self, timeline: &impl IsA<Timeline>);
fn connect_clip_added<F: Fn(&Self, &Clip) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_clip_removed<F: Fn(&Self, &Clip) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_auto_transition_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_priority_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
}
Expand description

Trait containing all Layer methods.

Implementors

Layer

Required methods

See add_asset_full(), which also gives an error.

asset

The asset to extract the new clip from

start

The property::TimelineElement::start value to set on the new clip If start == GST_CLOCK_TIME_NONE``, it will be added to the end of self, i.e. it will be set to self’s duration

inpoint

The property::TimelineElement::in-point value to set on the new clip

duration

The property::TimelineElement::duration value to set on the new clip

track_types

The property::Clip::supported-formats to set on the the new clip, or TrackType::UNKNOWN to use the default

Returns

The newly created clip.

This is supported on crate feature v1_18 only.
This is supported on crate feature v1_18 only.
This is supported on crate feature v1_18 only.
This is supported on crate feature v1_18 only.
👎 Deprecated:

Since 1.16

👎 Deprecated:

Since 1.16

Implementors