Struct gstreamer_editing_services::OverlayClip
source · pub struct OverlayClip { /* private fields */ }
Expand description
Overlays are objects which modify the underlying layer(s).
Examples of overlays include text, image watermarks, or audio dubbing.
Transitions, which change from one source to another over time, are not considered overlays.
This is an Abstract Base Class, you cannot instantiate it.
§Implements
[OperationClipExt
][trait@crate::prelude::OperationClipExt], ClipExt
, GESContainerExt
, TimelineElementExt
, [trait@glib::ObjectExt
], ExtractableExt
, MetaContainerExt
, [TimelineElementExtManual
][trait@crate::prelude::TimelineElementExtManual]
GLib type: GObject with reference counted clone semantics.
Implementations§
source§impl OverlayClip
impl OverlayClip
pub const NONE: Option<&'static OverlayClip> = None
Trait Implementations§
source§impl Clone for OverlayClip
impl Clone for OverlayClip
source§impl Debug for OverlayClip
impl Debug for OverlayClip
source§impl HasParamSpec for OverlayClip
impl HasParamSpec for OverlayClip
type ParamSpec = ParamSpecObject
§type SetValue = OverlayClip
type SetValue = OverlayClip
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, OverlayClip>
fn param_spec_builder() -> Self::BuilderFn
source§impl Hash for OverlayClip
impl Hash for OverlayClip
source§impl Ord for OverlayClip
impl Ord for OverlayClip
source§fn cmp(&self, other: &Self) -> Ordering
fn cmp(&self, other: &Self) -> Ordering
Comparison for two GObjects.
Compares the memory addresses of the provided objects.
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl ParentClassIs for OverlayClip
impl ParentClassIs for OverlayClip
type Parent = OperationClip
source§impl<OT: ObjectType> PartialEq<OT> for OverlayClip
impl<OT: ObjectType> PartialEq<OT> for OverlayClip
source§impl<OT: ObjectType> PartialOrd<OT> for OverlayClip
impl<OT: ObjectType> PartialOrd<OT> for OverlayClip
source§impl StaticType for OverlayClip
impl StaticType for OverlayClip
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for OverlayClip
impl IsA<Clip> for OverlayClip
impl IsA<Container> for OverlayClip
impl IsA<Extractable> for OverlayClip
impl IsA<MetaContainer> for OverlayClip
impl IsA<OperationClip> for OverlayClip
impl IsA<OverlayClip> for TextOverlayClip
impl IsA<TimelineElement> for OverlayClip
Auto Trait Implementations§
impl Freeze for OverlayClip
impl RefUnwindSafe for OverlayClip
impl !Send for OverlayClip
impl !Sync for OverlayClip
impl Unpin for OverlayClip
impl UnwindSafe for OverlayClip
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> Cast for Twhere
T: ObjectType,
impl<T> Cast for Twhere
T: ObjectType,
source§fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
Upcasts an object to a superclass or interface
T
. Read moresource§fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
Upcasts an object to a reference of its superclass or interface
T
. Read moresource§fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: MayDowncastTo<T>,
fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: MayDowncastTo<T>,
Tries to downcast to a subclass or interface implementor
T
. Read moresource§fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: MayDowncastTo<T>,
fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: MayDowncastTo<T>,
Tries to downcast to a reference of its subclass or interface implementor
T
. Read moresource§fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
Tries to cast to an object of type
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while upcast
will do many checks at compile-time already. downcast
will
perform the same checks at runtime as dynamic_cast
, but will also ensure some amount of
compile-time safety. Read moresource§fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Tries to cast to reference to an object of type
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast
and upcast
will do many checks at compile-time already. Read moresource§unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
Casts to
T
unconditionally. Read moresource§unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
Casts to
&T
unconditionally. Read moresource§impl<O> ClipExt for O
impl<O> ClipExt for O
source§fn add_asset(&self, asset: &impl IsA<Asset>) -> Result<TrackElement, BoolError>
fn add_asset(&self, asset: &impl IsA<Asset>) -> Result<TrackElement, BoolError>
Extracts a
TrackElement
from an asset and adds it to the clip.
This can be used to add effects that derive from the asset to the
clip, but this method is not intended to be used to create the core
elements of the clip. Read moresource§fn add_child_to_track(
&self,
child: &impl IsA<TrackElement>,
track: &impl IsA<Track>,
) -> Result<TrackElement, Error>
fn add_child_to_track( &self, child: &impl IsA<TrackElement>, track: &impl IsA<Track>, ) -> Result<TrackElement, Error>
Adds the track element child of the clip to a specific track. Read more
source§fn add_top_effect(
&self,
effect: &impl IsA<BaseEffect>,
index: i32,
) -> Result<(), Error>
fn add_top_effect( &self, effect: &impl IsA<BaseEffect>, index: i32, ) -> Result<(), Error>
Add a top effect to a clip at the given index. Read more
source§fn find_track_element(
&self,
track: Option<&impl IsA<Track>>,
type_: Type,
) -> Option<TrackElement>
fn find_track_element( &self, track: Option<&impl IsA<Track>>, type_: Type, ) -> Option<TrackElement>
Finds an element controlled by the clip. If
track
is given,
then only the track elements in track
are searched for. If type_
is
given, then this function searches for a track element of the given
type_
. Read moresource§fn find_track_elements(
&self,
track: Option<&impl IsA<Track>>,
track_type: TrackType,
type_: Type,
) -> Vec<TrackElement>
fn find_track_elements( &self, track: Option<&impl IsA<Track>>, track_type: TrackType, type_: Type, ) -> Vec<TrackElement>
Finds the
TrackElement
-s controlled by the clip that match the
given criteria. If track
is given as None
and track_type
is given as
TrackType::UNKNOWN
, then the search will match all elements in any
track, including those with no track, and of any
track-type
. Otherwise, if track
is not None
, but
track_type
is TrackType::UNKNOWN
, then only the track elements in
track
are searched for. Otherwise, if track_type
is not
TrackType::UNKNOWN
, but track
is None
, then only the track
elements whose track-type
matches track_type
are
searched for. Otherwise, when both are given, the track elements that
match either criteria are searched for. Therefore, if you wish to
only find elements in a specific track, you should give the track as
track
, but you should not give the track’s track-type
as
track_type
because this would also select elements from other tracks
of the same type. Read moresource§fn duration_limit(&self) -> ClockTime
fn duration_limit(&self) -> ClockTime
Gets the
duration-limit
of the clip. Read moresource§fn internal_time_from_timeline_time(
&self,
child: &impl IsA<TrackElement>,
timeline_time: impl Into<Option<ClockTime>>,
) -> Result<Option<ClockTime>, Error>
fn internal_time_from_timeline_time( &self, child: &impl IsA<TrackElement>, timeline_time: impl Into<Option<ClockTime>>, ) -> Result<Option<ClockTime>, Error>
Convert the timeline time to an internal source time of the child.
This will take any time effects placed on the clip into account (see
BaseEffect
for what time effects are supported, and how to
declare them in GES). Read moresource§fn supported_formats(&self) -> TrackType
fn supported_formats(&self) -> TrackType
Gets the
supported-formats
of the clip. Read moresource§fn timeline_time_from_internal_time(
&self,
child: &impl IsA<TrackElement>,
internal_time: impl Into<Option<ClockTime>>,
) -> Result<Option<ClockTime>, Error>
fn timeline_time_from_internal_time( &self, child: &impl IsA<TrackElement>, internal_time: impl Into<Option<ClockTime>>, ) -> Result<Option<ClockTime>, Error>
Convert the internal source time from the child to a timeline time.
This will take any time effects placed on the clip into account (see
BaseEffect
for what time effects are supported, and how to
declare them in GES). Read moresource§fn timeline_time_from_source_frame(
&self,
frame_number: FrameNumber,
) -> Result<Option<ClockTime>, Error>
fn timeline_time_from_source_frame( &self, frame_number: FrameNumber, ) -> Result<Option<ClockTime>, Error>
Convert the source frame number to a timeline time. This acts the same
as
timeline_time_from_internal_time()
using the core
children of the clip and using the frame number to specify the internal
position, rather than a timestamp. Read moresource§fn top_effect_index(&self, effect: &impl IsA<BaseEffect>) -> i32
fn top_effect_index(&self, effect: &impl IsA<BaseEffect>) -> i32
Gets the internal index of an effect in the clip. The index of effects
in a clip will run from 0 to n-1, where n is the total number of
effects. If two effects share the same
track
, the
effect with the numerically lower index will be applied to the source
data after the other effect, i.e. output data will always flow from
a higher index effect to a lower index effect. Read morefn top_effect_position(&self, effect: &impl IsA<BaseEffect>) -> i32
source§fn top_effects(&self) -> Vec<TrackElement>
fn top_effects(&self) -> Vec<TrackElement>
Gets the
BaseEffect
-s that have been added to the clip. The
returned list is ordered by their internal index in the clip. See
top_effect_index()
. Read moresource§fn move_to_layer(&self, layer: &impl IsA<Layer>) -> Result<(), BoolError>
fn move_to_layer(&self, layer: &impl IsA<Layer>) -> Result<(), BoolError>
See
move_to_layer_full()
, which also gives an error. Read moresource§fn move_to_layer_full(&self, layer: &impl IsA<Layer>) -> Result<(), Error>
fn move_to_layer_full(&self, layer: &impl IsA<Layer>) -> Result<(), Error>
Moves a clip to a new layer. If the clip already exists in a layer, it
is first removed from its current layer before being added to the new
layer. Read more
source§fn remove_top_effect(&self, effect: &impl IsA<BaseEffect>) -> Result<(), Error>
fn remove_top_effect(&self, effect: &impl IsA<BaseEffect>) -> Result<(), Error>
Remove a top effect from the clip. Read more
source§fn set_supported_formats(&self, supportedformats: TrackType)
fn set_supported_formats(&self, supportedformats: TrackType)
Sets the
supported-formats
of the clip. This should normally
only be called by subclasses, which should be responsible for updating
its value, rather than the user. Read moresource§fn set_top_effect_index(
&self,
effect: &impl IsA<BaseEffect>,
newindex: u32,
) -> Result<(), BoolError>
fn set_top_effect_index( &self, effect: &impl IsA<BaseEffect>, newindex: u32, ) -> Result<(), BoolError>
See
set_top_effect_index_full()
, which also gives an error. Read moresource§fn set_top_effect_index_full(
&self,
effect: &impl IsA<BaseEffect>,
newindex: u32,
) -> Result<(), Error>
fn set_top_effect_index_full( &self, effect: &impl IsA<BaseEffect>, newindex: u32, ) -> Result<(), Error>
Set the index of an effect within the clip. See
top_effect_index()
. The new index must be an existing
index of the clip. The effect is moved to the new index, and the other
effects may be shifted in index accordingly to otherwise maintain the
ordering. Read morefn set_top_effect_priority( &self, effect: &impl IsA<BaseEffect>, newpriority: u32, ) -> Result<(), BoolError>
source§fn split(&self, position: u64) -> Result<Clip, BoolError>
fn split(&self, position: u64) -> Result<Clip, BoolError>
See
split_full()
, which also gives an error. Read morefn connect_duration_limit_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_layer_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_supported_formats_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<O> ExtractableExt for Owhere
O: IsA<Extractable>,
impl<O> ExtractableExt for Owhere
O: IsA<Extractable>,
source§fn asset(&self) -> Option<Asset>
fn asset(&self) -> Option<Asset>
Get the asset that has been set on the extractable object. Read more
source§fn id(&self) -> GString
fn id(&self) -> GString
Gets the
id
of some associated asset. It may be the case
that the object has no set asset, or even that such an asset does not
yet exist in the GES cache. Instead, this will return the asset
id
that is compatible with the current state of the object,
as determined by the Extractable
implementer. If it was indeed
extracted from an asset, this should return the same as its
corresponding asset id
. Read moresource§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *const GList) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GList) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GList) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *const GPtrArray) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GPtrArray) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GPtrArray) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *const GSList) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GSList) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GSList) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *mut GList) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GList) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GList) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *mut GPtrArray) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GPtrArray) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GPtrArray) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *mut GSList) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GSList) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GSList) -> Vec<T>
source§impl<O> GESContainerExt for O
impl<O> GESContainerExt for O
source§fn add(&self, child: &impl IsA<TimelineElement>) -> Result<(), BoolError>
fn add(&self, child: &impl IsA<TimelineElement>) -> Result<(), BoolError>
Adds a timeline element to the container. The element will now be a
child of the container (and the container will be the
parent
of the added element), which means that it
is now controlled by the container. This may change the properties of
the child or the container, depending on the subclass. Read moresource§fn edit(
&self,
layers: &[Layer],
new_layer_priority: i32,
mode: EditMode,
edge: Edge,
position: u64,
) -> Result<(), BoolError>
fn edit( &self, layers: &[Layer], new_layer_priority: i32, mode: EditMode, edge: Edge, position: u64, ) -> Result<(), BoolError>
👎Deprecated: Since 1.18
Edits the container within its timeline. Read more
source§fn remove(&self, child: &impl IsA<TimelineElement>) -> Result<(), BoolError>
fn remove(&self, child: &impl IsA<TimelineElement>) -> Result<(), BoolError>
Removes a timeline element from the container. The element will no
longer be controlled by the container. Read more
source§fn ungroup(self, recursive: bool) -> Vec<Container>
fn ungroup(self, recursive: bool) -> Vec<Container>
Ungroups the container by splitting it into several containers
containing various children of the original. The rules for how the
container splits depends on the subclass. A
Group
will simply split
into its children. A Clip
will split into one Clip
per
TrackType
it overlaps with (so an audio-video clip will split into
an audio clip and a video clip), where each clip contains all the
TrackElement
-s from the original clip with a matching
track-type
. Read moresource§fn height(&self) -> u32
fn height(&self) -> u32
The span of the container’s children’s
priority
values, which is the number of integers that lie between (inclusive)
the minimum and maximum priorities found amongst the container’s
children (maximum - minimum + 1).source§fn connect_child_added<F: Fn(&Self, &TimelineElement) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_child_added<F: Fn(&Self, &TimelineElement) + 'static>( &self, f: F, ) -> SignalHandlerId
Will be emitted after a child is added to the container. Usually,
you should connect with
g_signal_connect_after()
since the signal
may be stopped internally. Read moresource§fn connect_child_removed<F: Fn(&Self, &TimelineElement) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_child_removed<F: Fn(&Self, &TimelineElement) + 'static>( &self, f: F, ) -> SignalHandlerId
Will be emitted after a child is removed from the container. Read more
fn connect_height_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
source§impl<O> GObjectExtManualGst for O
impl<O> GObjectExtManualGst for O
fn set_property_from_str(&self, name: &str, value: &str)
source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
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<U> IsSubclassableExt for Uwhere
U: IsClass + ParentClassIs,
impl<U> IsSubclassableExt for Uwhere
U: IsClass + ParentClassIs,
fn parent_class_init<T>(class: &mut Class<U>)
fn parent_instance_init<T>(instance: &mut InitializingObject<T>)
source§impl<O> MetaContainerExt for Owhere
O: IsA<MetaContainer>,
impl<O> MetaContainerExt for Owhere
O: IsA<MetaContainer>,
source§fn add_metas_from_string(&self, str: &str) -> bool
fn add_metas_from_string(&self, str: &str) -> bool
Deserializes the given string, and adds and sets the found fields and
their values on the container. The string should be the return of
metas_to_string()
. Read moresource§fn check_meta_registered(&self, meta_item: &str) -> Option<(MetaFlag, Type)>
fn check_meta_registered(&self, meta_item: &str) -> Option<(MetaFlag, Type)>
Checks whether the specified field has been registered as static, and
gets the registered type and flags of the field, as used in
register_meta()
and
register_static_meta()
. Read moresource§fn foreach<P: FnMut(&MetaContainer, &str, &Value)>(&self, func: P)
fn foreach<P: FnMut(&MetaContainer, &str, &Value)>(&self, func: P)
Calls the given function on each of the meta container’s set metadata
fields. Read more
source§fn boolean(&self, meta_item: &str) -> Option<bool>
fn boolean(&self, meta_item: &str) -> Option<bool>
Gets the current boolean value of the specified field of the meta
container. If the field does not have a set value, or it is of the
wrong type, the method will fail. Read more
source§fn date(&self, meta_item: &str) -> Option<Date>
fn date(&self, meta_item: &str) -> Option<Date>
Gets the current date value of the specified field of the meta
container. If the field does not have a set value, or it is of the
wrong type, the method will fail. Read more
source§fn date_time(&self, meta_item: &str) -> Option<DateTime>
fn date_time(&self, meta_item: &str) -> Option<DateTime>
Gets the current date time value of the specified field of the meta
container. If the field does not have a set value, or it is of the
wrong type, the method will fail. Read more
source§fn double(&self, meta_item: &str) -> Option<f64>
fn double(&self, meta_item: &str) -> Option<f64>
Gets the current double value of the specified field of the meta
container. If the field does not have a set value, or it is of the
wrong type, the method will fail. Read more
source§fn float(&self, meta_item: &str) -> Option<f32>
fn float(&self, meta_item: &str) -> Option<f32>
Gets the current float value of the specified field of the meta
container. If the field does not have a set value, or it is of the
wrong type, the method will fail. Read more
source§fn int(&self, meta_item: &str) -> Option<i32>
fn int(&self, meta_item: &str) -> Option<i32>
Gets the current int value of the specified field of the meta
container. If the field does not have a set value, or it is of the
wrong type, the method will fail. Read more
source§fn int64(&self, meta_item: &str) -> Option<i64>
fn int64(&self, meta_item: &str) -> Option<i64>
Gets the current int64 value of the specified field of the meta
container. If the field does not have a set value, or it is of the
wrong type, the method will fail. Read more
source§fn marker_list(&self, key: &str) -> Option<MarkerList>
fn marker_list(&self, key: &str) -> Option<MarkerList>
Gets the current marker list value of the specified field of the meta
container. If the field does not have a set value, or it is of the
wrong type, the method will fail. Read more
source§fn meta(&self, key: &str) -> Option<Value>
fn meta(&self, key: &str) -> Option<Value>
Gets the current value of the specified field of the meta container. Read more
source§fn string(&self, meta_item: &str) -> Option<GString>
fn string(&self, meta_item: &str) -> Option<GString>
Gets the current string value of the specified field of the meta
container. If the field does not have a set value, or it is of the
wrong type, the method will fail. Read more
source§fn uint(&self, meta_item: &str) -> Option<u32>
fn uint(&self, meta_item: &str) -> Option<u32>
Gets the current uint value of the specified field of the meta
container. If the field does not have a set value, or it is of the
wrong type, the method will fail. Read more
source§fn uint64(&self, meta_item: &str) -> Option<u64>
fn uint64(&self, meta_item: &str) -> Option<u64>
Gets the current uint64 value of the specified field of the meta
container. If the field does not have a set value, or it is of the
wrong type, the method will fail. Read more
source§fn metas_to_string(&self) -> GString
fn metas_to_string(&self) -> GString
Serializes the set metadata fields of the meta container to a string. Read more
source§fn register_meta(&self, flags: MetaFlag, meta_item: &str, value: &Value) -> bool
fn register_meta(&self, flags: MetaFlag, meta_item: &str, value: &Value) -> bool
Sets the value of the specified field of the meta container to the
given value, and registers the field to only hold a value of the
same type. After calling this, only values of the same type as
value
can be set for this field. The given flags can be set to make this
field only readable after calling this method. Read moresource§fn register_meta_boolean(
&self,
flags: MetaFlag,
meta_item: &str,
value: bool,
) -> bool
fn register_meta_boolean( &self, flags: MetaFlag, meta_item: &str, value: bool, ) -> bool
Sets the value of the specified field of the meta container to the
given boolean value, and registers the field to only hold a boolean
typed value. After calling this, only boolean values can be set for
this field. The given flags can be set to make this field only
readable after calling this method. Read more
source§fn register_meta_date(
&self,
flags: MetaFlag,
meta_item: &str,
value: &Date,
) -> bool
fn register_meta_date( &self, flags: MetaFlag, meta_item: &str, value: &Date, ) -> bool
Sets the value of the specified field of the meta container to the
given date value, and registers the field to only hold a date
typed value. After calling this, only date values can be set for
this field. The given flags can be set to make this field only
readable after calling this method. Read more
source§fn register_meta_date_time(
&self,
flags: MetaFlag,
meta_item: &str,
value: &DateTime,
) -> bool
fn register_meta_date_time( &self, flags: MetaFlag, meta_item: &str, value: &DateTime, ) -> bool
Sets the value of the specified field of the meta container to the
given date time value, and registers the field to only hold a date time
typed value. After calling this, only date time values can be set for
this field. The given flags can be set to make this field only
readable after calling this method. Read more
source§fn register_meta_double(
&self,
flags: MetaFlag,
meta_item: &str,
value: f64,
) -> bool
fn register_meta_double( &self, flags: MetaFlag, meta_item: &str, value: f64, ) -> bool
Sets the value of the specified field of the meta container to the
given double value, and registers the field to only hold a double
typed value. After calling this, only double values can be set for
this field. The given flags can be set to make this field only
readable after calling this method. Read more
source§fn register_meta_float(
&self,
flags: MetaFlag,
meta_item: &str,
value: f32,
) -> bool
fn register_meta_float( &self, flags: MetaFlag, meta_item: &str, value: f32, ) -> bool
Sets the value of the specified field of the meta container to the
given float value, and registers the field to only hold a float
typed value. After calling this, only float values can be set for
this field. The given flags can be set to make this field only
readable after calling this method. Read more
source§fn register_meta_int(
&self,
flags: MetaFlag,
meta_item: &str,
value: i32,
) -> bool
fn register_meta_int( &self, flags: MetaFlag, meta_item: &str, value: i32, ) -> bool
Sets the value of the specified field of the meta container to the
given int value, and registers the field to only hold an int
typed value. After calling this, only int values can be set for
this field. The given flags can be set to make this field only
readable after calling this method. Read more
source§fn register_meta_int64(
&self,
flags: MetaFlag,
meta_item: &str,
value: i64,
) -> bool
fn register_meta_int64( &self, flags: MetaFlag, meta_item: &str, value: i64, ) -> bool
Sets the value of the specified field of the meta container to the
given int64 value, and registers the field to only hold an int64
typed value. After calling this, only int64 values can be set for
this field. The given flags can be set to make this field only
readable after calling this method. Read more
source§fn register_meta_string(
&self,
flags: MetaFlag,
meta_item: &str,
value: &str,
) -> bool
fn register_meta_string( &self, flags: MetaFlag, meta_item: &str, value: &str, ) -> bool
Sets the value of the specified field of the meta container to the
given string value, and registers the field to only hold a string
typed value. After calling this, only string values can be set for
this field. The given flags can be set to make this field only
readable after calling this method. Read more
source§fn register_meta_uint(
&self,
flags: MetaFlag,
meta_item: &str,
value: u32,
) -> bool
fn register_meta_uint( &self, flags: MetaFlag, meta_item: &str, value: u32, ) -> bool
Sets the value of the specified field of the meta container to the
given uint value, and registers the field to only hold a uint
typed value. After calling this, only uint values can be set for
this field. The given flags can be set to make this field only
readable after calling this method. Read more
source§fn register_meta_uint64(
&self,
flags: MetaFlag,
meta_item: &str,
value: u64,
) -> bool
fn register_meta_uint64( &self, flags: MetaFlag, meta_item: &str, value: u64, ) -> bool
Sets the value of the specified field of the meta container to the
given uint64 value, and registers the field to only hold a uint64
typed value. After calling this, only uint64 values can be set for
this field. The given flags can be set to make this field only
readable after calling this method. Read more
source§fn register_static_meta(
&self,
flags: MetaFlag,
meta_item: &str,
type_: Type,
) -> bool
fn register_static_meta( &self, flags: MetaFlag, meta_item: &str, type_: Type, ) -> bool
Registers a static metadata field on the container to only hold the
specified type. After calling this, setting a value under this field
can only succeed if its type matches the registered type of the field. Read more
source§fn set_boolean(&self, meta_item: &str, value: bool) -> bool
fn set_boolean(&self, meta_item: &str, value: bool) -> bool
Sets the value of the specified field of the meta container to the
given boolean value. Read more
source§fn set_date(&self, meta_item: &str, value: &Date) -> bool
fn set_date(&self, meta_item: &str, value: &Date) -> bool
Sets the value of the specified field of the meta container to the
given date value. Read more
source§fn set_date_time(&self, meta_item: &str, value: &DateTime) -> bool
fn set_date_time(&self, meta_item: &str, value: &DateTime) -> bool
Sets the value of the specified field of the meta container to the
given date time value. Read more
source§fn set_double(&self, meta_item: &str, value: f64) -> bool
fn set_double(&self, meta_item: &str, value: f64) -> bool
Sets the value of the specified field of the meta container to the
given double value. Read more
source§fn set_float(&self, meta_item: &str, value: f32) -> bool
fn set_float(&self, meta_item: &str, value: f32) -> bool
Sets the value of the specified field of the meta container to the
given float value. Read more
source§fn set_int(&self, meta_item: &str, value: i32) -> bool
fn set_int(&self, meta_item: &str, value: i32) -> bool
Sets the value of the specified field of the meta container to the
given int value. Read more
source§fn set_int64(&self, meta_item: &str, value: i64) -> bool
fn set_int64(&self, meta_item: &str, value: i64) -> bool
Sets the value of the specified field of the meta container to the
given int64 value. Read more
source§fn set_marker_list(&self, meta_item: &str, list: &MarkerList) -> bool
fn set_marker_list(&self, meta_item: &str, list: &MarkerList) -> bool
Sets the value of the specified field of the meta container to the
given marker list value. Read more
source§fn set_string(&self, meta_item: &str, value: &str) -> bool
fn set_string(&self, meta_item: &str, value: &str) -> bool
Sets the value of the specified field of the meta container to the
given string value. Read more
source§fn set_uint(&self, meta_item: &str, value: u32) -> bool
fn set_uint(&self, meta_item: &str, value: u32) -> bool
Sets the value of the specified field of the meta container to the
given uint value. Read more
source§fn set_uint64(&self, meta_item: &str, value: u64) -> bool
fn set_uint64(&self, meta_item: &str, value: u64) -> bool
Sets the value of the specified field of the meta container to the
given uint64 value. Read more
source§fn connect_notify_meta<F: Fn(&Self, &str, Option<&Value>) + 'static>(
&self,
detail: Option<&str>,
f: F,
) -> SignalHandlerId
fn connect_notify_meta<F: Fn(&Self, &str, Option<&Value>) + 'static>( &self, detail: Option<&str>, f: F, ) -> SignalHandlerId
source§impl<T> ObjectExt for Twhere
T: ObjectType,
impl<T> ObjectExt for Twhere
T: ObjectType,
source§fn is<U>(&self) -> boolwhere
U: StaticType,
fn is<U>(&self) -> boolwhere
U: StaticType,
Returns
true
if the object is an instance of (can be cast to) T
.source§fn object_class(&self) -> &Class<Object>
fn object_class(&self) -> &Class<Object>
Returns the
ObjectClass
of the object. Read moresource§fn class_of<U>(&self) -> Option<&Class<U>>where
U: IsClass,
fn class_of<U>(&self) -> Option<&Class<U>>where
U: IsClass,
Returns the class of the object in the given type
T
. Read moresource§fn interface<U>(&self) -> Option<InterfaceRef<'_, U>>where
U: IsInterface,
fn interface<U>(&self) -> Option<InterfaceRef<'_, U>>where
U: IsInterface,
Returns the interface
T
of the object. Read moresource§fn set_property_from_value(&self, property_name: &str, value: &Value)
fn set_property_from_value(&self, property_name: &str, value: &Value)
source§fn set_properties(&self, property_values: &[(&str, &dyn ToValue)])
fn set_properties(&self, property_values: &[(&str, &dyn ToValue)])
Sets multiple properties of the object at once. Read more
source§fn set_properties_from_value(&self, property_values: &[(&str, Value)])
fn set_properties_from_value(&self, property_values: &[(&str, Value)])
Sets multiple properties of the object at once. Read more
source§fn property<V>(&self, property_name: &str) -> Vwhere
V: for<'b> FromValue<'b> + 'static,
fn property<V>(&self, property_name: &str) -> Vwhere
V: for<'b> FromValue<'b> + 'static,
Gets the property
property_name
of the object and cast it to the type V. Read moresource§fn property_value(&self, property_name: &str) -> Value
fn property_value(&self, property_name: &str) -> Value
Gets the property
property_name
of the object. Read moresource§fn property_type(&self, property_name: &str) -> Option<Type>
fn property_type(&self, property_name: &str) -> Option<Type>
Get the type of the property
property_name
of this object. Read moresource§fn find_property(&self, property_name: &str) -> Option<ParamSpec>
fn find_property(&self, property_name: &str) -> Option<ParamSpec>
Get the
ParamSpec
of the property property_name
of this object.source§fn list_properties(&self) -> PtrSlice<ParamSpec>
fn list_properties(&self) -> PtrSlice<ParamSpec>
Return all
ParamSpec
of the properties of this object.source§fn freeze_notify(&self) -> PropertyNotificationFreezeGuard
fn freeze_notify(&self) -> PropertyNotificationFreezeGuard
Freeze all property notifications until the return guard object is dropped. Read more
source§unsafe fn set_qdata<QD>(&self, key: Quark, value: QD)where
QD: 'static,
unsafe fn set_qdata<QD>(&self, key: Quark, value: QD)where
QD: 'static,
Set arbitrary data on this object with the given
key
. Read moresource§unsafe fn qdata<QD>(&self, key: Quark) -> Option<NonNull<QD>>where
QD: 'static,
unsafe fn qdata<QD>(&self, key: Quark) -> Option<NonNull<QD>>where
QD: 'static,
Return previously set arbitrary data of this object with the given
key
. Read moresource§unsafe fn steal_qdata<QD>(&self, key: Quark) -> Option<QD>where
QD: 'static,
unsafe fn steal_qdata<QD>(&self, key: Quark) -> Option<QD>where
QD: 'static,
Retrieve previously set arbitrary data of this object with the given
key
. Read moresource§unsafe fn set_data<QD>(&self, key: &str, value: QD)where
QD: 'static,
unsafe fn set_data<QD>(&self, key: &str, value: QD)where
QD: 'static,
Set arbitrary data on this object with the given
key
. Read moresource§unsafe fn data<QD>(&self, key: &str) -> Option<NonNull<QD>>where
QD: 'static,
unsafe fn data<QD>(&self, key: &str) -> Option<NonNull<QD>>where
QD: 'static,
Return previously set arbitrary data of this object with the given
key
. Read moresource§unsafe fn steal_data<QD>(&self, key: &str) -> Option<QD>where
QD: 'static,
unsafe fn steal_data<QD>(&self, key: &str) -> Option<QD>where
QD: 'static,
Retrieve previously set arbitrary data of this object with the given
key
. Read moresource§fn block_signal(&self, handler_id: &SignalHandlerId)
fn block_signal(&self, handler_id: &SignalHandlerId)
Block a given signal handler. Read more
source§fn unblock_signal(&self, handler_id: &SignalHandlerId)
fn unblock_signal(&self, handler_id: &SignalHandlerId)
Unblock a given signal handler.
source§fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>)
fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>)
Stop emission of the currently emitted signal.
source§fn stop_signal_emission_by_name(&self, signal_name: &str)
fn stop_signal_emission_by_name(&self, signal_name: &str)
Stop emission of the currently emitted signal by the (possibly detailed) signal name.
source§fn connect<F>(
&self,
signal_name: &str,
after: bool,
callback: F,
) -> SignalHandlerId
fn connect<F>( &self, signal_name: &str, after: bool, callback: F, ) -> SignalHandlerId
Connect to the signal
signal_name
on this object. Read moresource§fn connect_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F,
) -> SignalHandlerId
fn connect_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F, ) -> SignalHandlerId
Connect to the signal
signal_id
on this object. Read moresource§fn connect_local<F>(
&self,
signal_name: &str,
after: bool,
callback: F,
) -> SignalHandlerId
fn connect_local<F>( &self, signal_name: &str, after: bool, callback: F, ) -> SignalHandlerId
Connect to the signal
signal_name
on this object. Read moresource§fn connect_local_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F,
) -> SignalHandlerId
fn connect_local_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F, ) -> SignalHandlerId
Connect to the signal
signal_id
on this object. Read moresource§unsafe fn connect_unsafe<F>(
&self,
signal_name: &str,
after: bool,
callback: F,
) -> SignalHandlerId
unsafe fn connect_unsafe<F>( &self, signal_name: &str, after: bool, callback: F, ) -> SignalHandlerId
Connect to the signal
signal_name
on this object. Read moresource§unsafe fn connect_unsafe_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F,
) -> SignalHandlerId
unsafe fn connect_unsafe_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F, ) -> SignalHandlerId
Connect to the signal
signal_id
on this object. Read moresource§fn connect_closure(
&self,
signal_name: &str,
after: bool,
closure: RustClosure,
) -> SignalHandlerId
fn connect_closure( &self, signal_name: &str, after: bool, closure: RustClosure, ) -> SignalHandlerId
Connect a closure to the signal
signal_name
on this object. Read moresource§fn connect_closure_id(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
closure: RustClosure,
) -> SignalHandlerId
fn connect_closure_id( &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure, ) -> SignalHandlerId
Connect a closure to the signal
signal_id
on this object. Read moresource§fn watch_closure(&self, closure: &impl AsRef<Closure>)
fn watch_closure(&self, closure: &impl AsRef<Closure>)
Limits the lifetime of
closure
to the lifetime of the object. When
the object’s reference count drops to zero, the closure will be
invalidated. An invalidated closure will ignore any calls to
invoke_with_values
, or
invoke
when using Rust closures.source§fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
Emit signal by signal id. Read more
source§fn emit_with_values(&self, signal_id: SignalId, args: &[Value]) -> Option<Value>
fn emit_with_values(&self, signal_id: SignalId, args: &[Value]) -> Option<Value>
Same as
Self::emit
but takes Value
for the arguments.source§fn emit_by_name<R>(&self, signal_name: &str, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
fn emit_by_name<R>(&self, signal_name: &str, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
Emit signal by its name. Read more
source§fn emit_by_name_with_values(
&self,
signal_name: &str,
args: &[Value],
) -> Option<Value>
fn emit_by_name_with_values( &self, signal_name: &str, args: &[Value], ) -> Option<Value>
Emit signal by its name. Read more
source§fn emit_by_name_with_details<R>(
&self,
signal_name: &str,
details: Quark,
args: &[&dyn ToValue],
) -> Rwhere
R: TryFromClosureReturnValue,
fn emit_by_name_with_details<R>(
&self,
signal_name: &str,
details: Quark,
args: &[&dyn ToValue],
) -> Rwhere
R: TryFromClosureReturnValue,
Emit signal by its name with details. Read more
source§fn emit_by_name_with_details_and_values(
&self,
signal_name: &str,
details: Quark,
args: &[Value],
) -> Option<Value>
fn emit_by_name_with_details_and_values( &self, signal_name: &str, details: Quark, args: &[Value], ) -> Option<Value>
Emit signal by its name with details. Read more
source§fn emit_with_details<R>(
&self,
signal_id: SignalId,
details: Quark,
args: &[&dyn ToValue],
) -> Rwhere
R: TryFromClosureReturnValue,
fn emit_with_details<R>(
&self,
signal_id: SignalId,
details: Quark,
args: &[&dyn ToValue],
) -> Rwhere
R: TryFromClosureReturnValue,
Emit signal by signal id with details. Read more
source§fn emit_with_details_and_values(
&self,
signal_id: SignalId,
details: Quark,
args: &[Value],
) -> Option<Value>
fn emit_with_details_and_values( &self, signal_id: SignalId, details: Quark, args: &[Value], ) -> Option<Value>
Emit signal by signal id with details. Read more
source§fn disconnect(&self, handler_id: SignalHandlerId)
fn disconnect(&self, handler_id: SignalHandlerId)
Disconnect a previously connected signal handler.
source§fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
Connect to the
notify
signal of the object. Read moresource§fn connect_notify_local<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
fn connect_notify_local<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
Connect to the
notify
signal of the object. Read moresource§unsafe fn connect_notify_unsafe<F>(
&self,
name: Option<&str>,
f: F,
) -> SignalHandlerId
unsafe fn connect_notify_unsafe<F>( &self, name: Option<&str>, f: F, ) -> SignalHandlerId
Connect to the
notify
signal of the object. Read moresource§fn notify(&self, property_name: &str)
fn notify(&self, property_name: &str)
Notify that the given property has changed its value. Read more
source§fn notify_by_pspec(&self, pspec: &ParamSpec)
fn notify_by_pspec(&self, pspec: &ParamSpec)
Notify that the given property has changed its value. Read more
source§fn add_weak_ref_notify<F>(&self, f: F) -> WeakRefNotify<T>
fn add_weak_ref_notify<F>(&self, f: F) -> WeakRefNotify<T>
Add a callback to be notified when the Object is disposed.
source§fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where
F: FnOnce() + 'static,
fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where
F: FnOnce() + 'static,
Add a callback to be notified when the Object is disposed. Read more
source§fn bind_property<'a, 'f, 't, O>(
&'a self,
source_property: &'a str,
target: &'a O,
target_property: &'a str,
) -> BindingBuilder<'a, 'f, 't>where
O: ObjectType,
fn bind_property<'a, 'f, 't, O>(
&'a self,
source_property: &'a str,
target: &'a O,
target_property: &'a str,
) -> BindingBuilder<'a, 'f, 't>where
O: ObjectType,
source§unsafe fn run_dispose(&self)
unsafe fn run_dispose(&self)
Runs the dispose mechanism of the object. Read more
source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
source§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.
source§impl<O> TimelineElementExt for Owhere
O: IsA<TimelineElement>,
impl<O> TimelineElementExt for Owhere
O: IsA<TimelineElement>,
source§fn add_child_property(
&self,
pspec: impl AsRef<ParamSpec>,
child: &impl IsA<Object>,
) -> Result<(), BoolError>
fn add_child_property( &self, pspec: impl AsRef<ParamSpec>, child: &impl IsA<Object>, ) -> Result<(), BoolError>
Register a property of a child of the element to allow it to be
written with
set_child_property()
and read with
child_property()
. A change in the property
will also appear in the deep-notify
signal. Read morefn copy(&self, deep: bool) -> TimelineElement
source§fn edit(
&self,
layers: &[Layer],
new_layer_priority: i64,
mode: EditMode,
edge: Edge,
position: u64,
) -> bool
fn edit( &self, layers: &[Layer], new_layer_priority: i64, mode: EditMode, edge: Edge, position: u64, ) -> bool
See
edit_full()
, which also gives an error. Read moresource§fn edit_full(
&self,
new_layer_priority: i64,
mode: EditMode,
edge: Edge,
position: u64,
) -> Result<(), Error>
fn edit_full( &self, new_layer_priority: i64, mode: EditMode, edge: Edge, position: u64, ) -> Result<(), Error>
Edits the element within its timeline by adjusting its
start
, duration
or
in-point
, and potentially doing the same for
other elements in the timeline. See EditMode
for details about each
edit mode. An edit may fail if it would place one of these properties
out of bounds, or if it would place the timeline in an unsupported
configuration. Read moresource§fn child_property(&self, property_name: &str) -> Option<Value>
fn child_property(&self, property_name: &str) -> Option<Value>
Gets the property of a child of the element. Read more
source§fn child_property_by_pspec(&self, pspec: impl AsRef<ParamSpec>) -> Value
fn child_property_by_pspec(&self, pspec: impl AsRef<ParamSpec>) -> Value
Gets the property of a child of the element. Specifically, the property
corresponding to the
pspec
used in
add_child_property()
is copied into value
. Read moresource§fn layer_priority(&self) -> u32
fn layer_priority(&self) -> u32
source§fn max_duration(&self) -> Option<ClockTime>
fn max_duration(&self) -> Option<ClockTime>
Gets the
max-duration
for the element. Read moresource§fn natural_framerate(&self) -> Option<(i32, i32)>
fn natural_framerate(&self) -> Option<(i32, i32)>
Get the “natural” framerate of
self
. This is to say, for example
for a VideoUriSource
the framerate of the source. Read moresource§fn toplevel_parent(&self) -> TimelineElement
fn toplevel_parent(&self) -> TimelineElement
source§fn track_types(&self) -> TrackType
fn track_types(&self) -> TrackType
Gets the track types that the element can interact with, i.e. the type
of
Track
it can exist in, or will create TrackElement
-s for. Read moresource§fn list_children_properties(&self) -> Vec<ParamSpec>
fn list_children_properties(&self) -> Vec<ParamSpec>
Get a list of children properties of the element, which is a list of
all the specifications passed to
add_child_property()
. Read moresource§fn lookup_child(&self, prop_name: &str) -> Option<(Object, ParamSpec)>
fn lookup_child(&self, prop_name: &str) -> Option<(Object, ParamSpec)>
Looks up a child property of the element. Read more
source§fn paste(&self, paste_position: ClockTime) -> Result<TimelineElement, BoolError>
fn paste(&self, paste_position: ClockTime) -> Result<TimelineElement, BoolError>
Paste an element inside the same timeline and layer as
self
. self
must be the return of ges_timeline_element_copy()
with deep=TRUE
,
and it should not be changed before pasting.
self
is not placed in the timeline, instead a new element is created,
alike to the originally copied element. Note that the originally
copied element must stay within the same timeline and layer, at both
the point of copying and pasting. Read moresource§fn remove_child_property(
&self,
pspec: impl AsRef<ParamSpec>,
) -> Result<(), BoolError>
fn remove_child_property( &self, pspec: impl AsRef<ParamSpec>, ) -> Result<(), BoolError>
Remove a child property from the element.
pspec
should be a
specification that was passed to
add_child_property()
. The corresponding property
will no longer be registered as a child property for the element. Read moresource§fn ripple(&self, start: ClockTime) -> Result<(), BoolError>
fn ripple(&self, start: ClockTime) -> Result<(), BoolError>
Edits the start time of an element within its timeline in ripple mode.
See
edit()
with EditMode::Ripple
and
Edge::None
. Read moresource§fn ripple_end(&self, end: ClockTime) -> Result<(), BoolError>
fn ripple_end(&self, end: ClockTime) -> Result<(), BoolError>
Edits the end time of an element within its timeline in ripple mode.
See
edit()
with EditMode::Ripple
and
Edge::End
. Read moresource§fn roll_end(&self, end: ClockTime) -> Result<(), BoolError>
fn roll_end(&self, end: ClockTime) -> Result<(), BoolError>
Edits the end time of an element within its timeline in roll mode.
See
edit()
with EditMode::Roll
and
Edge::End
. Read moresource§fn roll_start(&self, start: ClockTime) -> Result<(), BoolError>
fn roll_start(&self, start: ClockTime) -> Result<(), BoolError>
Edits the start time of an element within its timeline in roll mode.
See
edit()
with EditMode::Roll
and
Edge::Start
. Read moresource§fn set_child_property(
&self,
property_name: &str,
value: &Value,
) -> Result<(), BoolError>
fn set_child_property( &self, property_name: &str, value: &Value, ) -> Result<(), BoolError>
See
set_child_property_full()
, which also gives an
error. Read moresource§fn set_child_property_by_pspec(
&self,
pspec: impl AsRef<ParamSpec>,
value: &Value,
)
fn set_child_property_by_pspec( &self, pspec: impl AsRef<ParamSpec>, value: &Value, )
Sets the property of a child of the element. Specifically, the property
corresponding to the
pspec
used in
add_child_property()
is set to value
. Read moresource§fn set_child_property_full(
&self,
property_name: &str,
value: &Value,
) -> Result<(), Error>
fn set_child_property_full( &self, property_name: &str, value: &Value, ) -> Result<(), Error>
Sets the property of a child of the element. Read more
source§fn set_inpoint(&self, inpoint: ClockTime) -> bool
fn set_inpoint(&self, inpoint: ClockTime) -> bool
Sets
in-point
for the element. If the new in-point
is above the current max-duration
of the element,
this method will fail. Read moresource§fn set_max_duration(&self, maxduration: impl Into<Option<ClockTime>>) -> bool
fn set_max_duration(&self, maxduration: impl Into<Option<ClockTime>>) -> bool
Sets
max-duration
for the element. If the new
maximum duration is below the current in-point
of
the element, this method will fail. Read moresource§fn set_parent(
&self,
parent: &impl IsA<TimelineElement>,
) -> Result<(), BoolError>
fn set_parent( &self, parent: &impl IsA<TimelineElement>, ) -> Result<(), BoolError>
source§fn set_priority(&self, priority: u32) -> bool
fn set_priority(&self, priority: u32) -> bool
👎Deprecated: Since 1.10
Sets the priority of the element within the containing layer. Read more
source§fn trim(&self, start: ClockTime) -> Result<(), BoolError>
fn trim(&self, start: ClockTime) -> Result<(), BoolError>
Edits the start time of an element within its timeline in trim mode.
See
edit()
with EditMode::Trim
and
Edge::Start
. Read moresource§fn in_point(&self) -> u64
fn in_point(&self) -> u64
The initial offset to use internally when outputting content (in
nanoseconds, but in the time coordinates of the internal content). Read more
source§fn set_in_point(&self, in_point: u64)
fn set_in_point(&self, in_point: u64)
The initial offset to use internally when outputting content (in
nanoseconds, but in the time coordinates of the internal content). Read more
source§fn is_serialize(&self) -> bool
fn is_serialize(&self) -> bool
Whether the element should be serialized.
source§fn set_serialize(&self, serialize: bool)
fn set_serialize(&self, serialize: bool)
Whether the element should be serialized.
source§fn connect_child_property_added<F: Fn(&Self, &Object, &ParamSpec) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_child_property_added<F: Fn(&Self, &Object, &ParamSpec) + 'static>( &self, f: F, ) -> SignalHandlerId
Emitted when the element has a new child property registered. See
add_child_property()
. Read moresource§fn connect_child_property_removed<F: Fn(&Self, &Object, &ParamSpec) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_child_property_removed<F: Fn(&Self, &Object, &ParamSpec) + 'static>( &self, f: F, ) -> SignalHandlerId
Emitted when the element has a child property unregistered. See
remove_child_property()
. Read moresource§fn connect_deep_notify<F: Fn(&Self, &Object, &ParamSpec) + 'static>(
&self,
detail: Option<&str>,
f: F,
) -> SignalHandlerId
fn connect_deep_notify<F: Fn(&Self, &Object, &ParamSpec) + 'static>( &self, detail: Option<&str>, f: F, ) -> SignalHandlerId
Emitted when a child of the element has one of its registered
properties set. See
add_child_property()
.
Note that unlike notify
, a child property name can not be
used as a signal detail. Read morefn connect_duration_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_in_point_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_max_duration_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_parent_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
source§fn connect_priority_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_priority_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
👎Deprecated: Since 1.10