Struct gstreamer_editing_services::Layer
source · pub struct Layer { /* private fields */ }
Expand description
Layer
-s are responsible for collecting and ordering Clip
-s.
A layer within a timeline will have an associated priority,
corresponding to their index within the timeline. A layer with the
index/priority 0 will have the highest priority and the layer with the
largest index will have the lowest priority (the order of priorities,
in this sense, is the reverse of the numerical ordering of the
indices). TimelineExt::move_layer()
should be used if you wish to
change how layers are prioritised in a timeline.
Layers with higher priorities will have their content priorities over content from lower priority layers, similar to how layers are used in image editing. For example, if two separate layers both display video content, then the layer with the higher priority will have its images shown first. The other layer will only have its image shown if the higher priority layer has no content at the given playtime, or is transparent in some way. Audio content in separate layers will simply play in addition.
§Properties
§auto-transition
Whether to automatically create a TransitionClip
whenever two
Source
-s that both belong to a Clip
in the layer overlap.
See Timeline
for what counts as an overlap.
When a layer is added to a Timeline
, if this property is left as
false
, but the timeline’s auto-transition
is true
, it
will be set to true
as well.
Readable | Writeable
§priority
The priority of the layer in the Timeline
. 0 is the highest
priority. Conceptually, a timeline is a stack of layers,
and the priority of the layer represents its position in the stack. Two
layers should not have the same priority within a given GESTimeline.
Note that the timeline needs to be committed (with ges_timeline_commit
)
for the change to be taken into account.
Readable | Writeable
§Signals
§active-changed
Will be emitted whenever the layer is activated or deactivated
for some Track
. See LayerExt::set_active_for_tracks()
.
§clip-added
Will be emitted after the clip is added to the layer.
§clip-removed
Will be emitted after the clip is removed from the layer.
MetaContainer
§notify-meta
This is emitted for a meta container whenever the metadata under one
of its fields changes, is set for the first time, or is removed. In
the latter case, value
will be None
.
Detailed
§Implements
LayerExt
, [trait@glib::ObjectExt
], ExtractableExt
, MetaContainerExt
GLib type: GObject with reference counted clone semantics.
Implementations§
Trait Implementations§
source§impl HasParamSpec for Layer
impl HasParamSpec for Layer
source§impl Ord for Layer
impl Ord for Layer
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,
source§impl<OT: ObjectType> PartialEq<OT> for Layer
impl<OT: ObjectType> PartialEq<OT> for Layer
source§impl<OT: ObjectType> PartialOrd<OT> for Layer
impl<OT: ObjectType> PartialOrd<OT> for Layer
source§fn partial_cmp(&self, other: &OT) -> Option<Ordering>
fn partial_cmp(&self, other: &OT) -> Option<Ordering>
Partial comparison for two GObjects.
Compares the memory addresses of the provided objects.
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl StaticType for Layer
impl StaticType for Layer
source§fn static_type() -> Type
fn static_type() -> Type
Self
.impl Eq for Layer
impl IsA<Extractable> for Layer
impl IsA<MetaContainer> for Layer
Auto Trait Implementations§
impl Freeze for Layer
impl RefUnwindSafe for Layer
impl !Send for Layer
impl !Sync for Layer
impl Unpin for Layer
impl UnwindSafe for Layer
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
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>,
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>,
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>,
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>,
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,
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,
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,
T
unconditionally. Read moresource§unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
&T
unconditionally. Read moresource§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
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>
source§fn id(&self) -> GString
fn id(&self) -> GString
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> 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>
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>
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> LayerExt for O
impl<O> LayerExt for O
source§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( &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>
add_asset_full()
, which also gives an error. Read moresource§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_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>
source§fn add_clip(&self, clip: &impl IsA<Clip>) -> Result<(), BoolError>
fn add_clip(&self, clip: &impl IsA<Clip>) -> Result<(), BoolError>
add_clip_full()
, which also gives an error. Read moresource§fn add_clip_full(&self, clip: &impl IsA<Clip>) -> Result<(), Error>
fn add_clip_full(&self, clip: &impl IsA<Clip>) -> Result<(), Error>
source§fn is_active_for_track(&self, track: &impl IsA<Track>) -> bool
fn is_active_for_track(&self, track: &impl IsA<Track>) -> bool
set_active_for_tracks()
. Read moresource§fn is_auto_transition(&self) -> bool
fn is_auto_transition(&self) -> bool
auto-transition
of the layer. Read moresource§fn clips_in_interval(
&self,
start: impl Into<Option<ClockTime>>,
end: impl Into<Option<ClockTime>>,
) -> Vec<Clip>
fn clips_in_interval( &self, start: impl Into<Option<ClockTime>>, end: impl Into<Option<ClockTime>>, ) -> Vec<Clip>
source§fn duration(&self) -> ClockTime
fn duration(&self) -> ClockTime
source§fn priority(&self) -> u32
fn priority(&self) -> u32
TimelineExt::move_layer()
. Read moresource§fn timeline(&self) -> Option<Timeline>
fn timeline(&self) -> Option<Timeline>
source§fn remove_clip(&self, clip: &impl IsA<Clip>) -> Result<(), BoolError>
fn remove_clip(&self, clip: &impl IsA<Clip>) -> Result<(), BoolError>
source§fn set_auto_transition(&self, auto_transition: bool)
fn set_auto_transition(&self, auto_transition: bool)
auto-transition
for the layer. Use
TimelineExt::set_auto_transition()
if you want all layers within a
Timeline
to have auto-transition
set to true
. Use this
method if you want different values for different layers (and make sure
to keep auto-transition
as false
for the corresponding
timeline). Read moresource§fn set_priority(&self, priority: u32)
fn set_priority(&self, priority: u32)
fn set_timeline(&self, timeline: &impl IsA<Timeline>)
source§fn connect_clip_added<F: Fn(&Self, &Clip) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_clip_added<F: Fn(&Self, &Clip) + 'static>( &self, f: F, ) -> SignalHandlerId
source§fn connect_clip_removed<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
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
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
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)>
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)
source§fn boolean(&self, meta_item: &str) -> Option<bool>
fn boolean(&self, meta_item: &str) -> Option<bool>
source§fn date(&self, meta_item: &str) -> Option<Date>
fn date(&self, meta_item: &str) -> Option<Date>
source§fn date_time(&self, meta_item: &str) -> Option<DateTime>
fn date_time(&self, meta_item: &str) -> Option<DateTime>
source§fn double(&self, meta_item: &str) -> Option<f64>
fn double(&self, meta_item: &str) -> Option<f64>
source§fn float(&self, meta_item: &str) -> Option<f32>
fn float(&self, meta_item: &str) -> Option<f32>
source§fn int(&self, meta_item: &str) -> Option<i32>
fn int(&self, meta_item: &str) -> Option<i32>
source§fn int64(&self, meta_item: &str) -> Option<i64>
fn int64(&self, meta_item: &str) -> Option<i64>
source§fn marker_list(&self, key: &str) -> Option<MarkerList>
fn marker_list(&self, key: &str) -> Option<MarkerList>
source§fn meta(&self, key: &str) -> Option<Value>
fn meta(&self, key: &str) -> Option<Value>
source§fn string(&self, meta_item: &str) -> Option<GString>
fn string(&self, meta_item: &str) -> Option<GString>
source§fn uint(&self, meta_item: &str) -> Option<u32>
fn uint(&self, meta_item: &str) -> Option<u32>
source§fn uint64(&self, meta_item: &str) -> Option<u64>
fn uint64(&self, meta_item: &str) -> Option<u64>
source§fn metas_to_string(&self) -> GString
fn metas_to_string(&self) -> GString
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
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
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
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
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
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
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
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
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
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
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
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
source§fn set_boolean(&self, meta_item: &str, value: bool) -> bool
fn set_boolean(&self, meta_item: &str, value: bool) -> bool
source§fn set_date(&self, meta_item: &str, value: &Date) -> bool
fn set_date(&self, meta_item: &str, value: &Date) -> bool
source§fn set_date_time(&self, meta_item: &str, value: &DateTime) -> bool
fn set_date_time(&self, meta_item: &str, value: &DateTime) -> bool
source§fn set_double(&self, meta_item: &str, value: f64) -> bool
fn set_double(&self, meta_item: &str, value: f64) -> bool
source§fn set_float(&self, meta_item: &str, value: f32) -> bool
fn set_float(&self, meta_item: &str, value: f32) -> bool
source§fn set_int(&self, meta_item: &str, value: i32) -> bool
fn set_int(&self, meta_item: &str, value: i32) -> bool
source§fn set_int64(&self, meta_item: &str, value: i64) -> bool
fn set_int64(&self, meta_item: &str, value: i64) -> bool
source§fn set_marker_list(&self, meta_item: &str, list: &MarkerList) -> bool
fn set_marker_list(&self, meta_item: &str, list: &MarkerList) -> bool
source§fn set_string(&self, meta_item: &str, value: &str) -> bool
fn set_string(&self, meta_item: &str, value: &str) -> bool
source§fn set_uint(&self, meta_item: &str, value: u32) -> bool
fn set_uint(&self, meta_item: &str, value: u32) -> bool
source§fn set_uint64(&self, meta_item: &str, value: u64) -> bool
fn set_uint64(&self, meta_item: &str, value: u64) -> bool
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,
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>
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,
T
. Read moresource§fn interface<U>(&self) -> Option<InterfaceRef<'_, U>>where
U: IsInterface,
fn interface<U>(&self) -> Option<InterfaceRef<'_, U>>where
U: IsInterface,
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)])
source§fn set_properties_from_value(&self, property_values: &[(&str, Value)])
fn set_properties_from_value(&self, property_values: &[(&str, Value)])
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,
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
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>
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>
ParamSpec
of the property property_name
of this object.source§fn list_properties(&self) -> PtrSlice<ParamSpec>
fn list_properties(&self) -> PtrSlice<ParamSpec>
ParamSpec
of the properties of this object.source§fn freeze_notify(&self) -> PropertyNotificationFreezeGuard
fn freeze_notify(&self) -> PropertyNotificationFreezeGuard
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,
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,
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,
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,
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,
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,
key
. Read moresource§fn block_signal(&self, handler_id: &SignalHandlerId)
fn block_signal(&self, handler_id: &SignalHandlerId)
source§fn unblock_signal(&self, handler_id: &SignalHandlerId)
fn unblock_signal(&self, handler_id: &SignalHandlerId)
source§fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>)
fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>)
source§fn stop_signal_emission_by_name(&self, signal_name: &str)
fn stop_signal_emission_by_name(&self, signal_name: &str)
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
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
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
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
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
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
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
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
signal_id
on this object. Read moresource§fn watch_closure(&self, closure: &impl AsRef<Closure>)
fn watch_closure(&self, closure: &impl AsRef<Closure>)
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,
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>
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,
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>
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,
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>
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,
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>
source§fn disconnect(&self, handler_id: SignalHandlerId)
fn disconnect(&self, handler_id: SignalHandlerId)
source§fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
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
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
notify
signal of the object. Read more