regen: prop alias + connect_*_notify signal + add fn doc alias

This commit is contained in:
François Laignel 2021-05-03 20:35:37 +02:00
parent 7b0a3487c8
commit 01b6d342a4
264 changed files with 1968 additions and 1068 deletions

View file

@ -24,6 +24,7 @@ impl AppSink {
#[cfg(any(feature = "v1_12", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
#[doc(alias = "gst_app_sink_get_buffer_list_support")]
#[doc(alias = "get_buffer_list_support")]
pub fn is_buffer_list_support(&self) -> bool {
unsafe {
from_glib(ffi::gst_app_sink_get_buffer_list_support(
@ -33,26 +34,31 @@ impl AppSink {
}
#[doc(alias = "gst_app_sink_get_caps")]
#[doc(alias = "get_caps")]
pub fn caps(&self) -> Option<gst::Caps> {
unsafe { from_glib_full(ffi::gst_app_sink_get_caps(self.to_glib_none().0)) }
}
#[doc(alias = "gst_app_sink_get_drop")]
#[doc(alias = "get_drop")]
pub fn is_drop(&self) -> bool {
unsafe { from_glib(ffi::gst_app_sink_get_drop(self.to_glib_none().0)) }
}
#[doc(alias = "gst_app_sink_get_emit_signals")]
#[doc(alias = "get_emit_signals")]
pub fn emits_signals(&self) -> bool {
unsafe { from_glib(ffi::gst_app_sink_get_emit_signals(self.to_glib_none().0)) }
}
#[doc(alias = "gst_app_sink_get_max_buffers")]
#[doc(alias = "get_max_buffers")]
pub fn max_buffers(&self) -> u32 {
unsafe { ffi::gst_app_sink_get_max_buffers(self.to_glib_none().0) }
}
#[doc(alias = "gst_app_sink_get_wait_on_eos")]
#[doc(alias = "get_wait_on_eos")]
pub fn is_wait_on_eos(&self) -> bool {
unsafe { from_glib(ffi::gst_app_sink_get_wait_on_eos(self.to_glib_none().0)) }
}
@ -154,7 +160,7 @@ impl AppSink {
}
}
#[doc(alias = "get_property_buffer_list")]
#[doc(alias = "buffer-list")]
pub fn is_buffer_list(&self) -> bool {
unsafe {
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
@ -169,7 +175,7 @@ impl AppSink {
}
}
#[doc(alias = "set_property_buffer_list")]
#[doc(alias = "buffer-list")]
pub fn set_buffer_list(&self, buffer_list: bool) {
unsafe {
glib::gobject_ffi::g_object_set_property(
@ -180,6 +186,7 @@ impl AppSink {
}
}
#[doc(alias = "eos")]
pub fn connect_eos<F: Fn(&AppSink) + Send + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn eos_trampoline<F: Fn(&AppSink) + Send + 'static>(
this: *mut ffi::GstAppSink,
@ -201,7 +208,8 @@ impl AppSink {
}
}
pub fn connect_property_buffer_list_notify<F: Fn(&AppSink) + Send + Sync + 'static>(
#[doc(alias = "buffer-list")]
pub fn connect_buffer_list_notify<F: Fn(&AppSink) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -228,7 +236,8 @@ impl AppSink {
}
}
pub fn connect_property_caps_notify<F: Fn(&AppSink) + Send + Sync + 'static>(
#[doc(alias = "caps")]
pub fn connect_caps_notify<F: Fn(&AppSink) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -253,7 +262,8 @@ impl AppSink {
}
}
pub fn connect_property_drop_notify<F: Fn(&AppSink) + Send + Sync + 'static>(
#[doc(alias = "drop")]
pub fn connect_drop_notify<F: Fn(&AppSink) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -278,7 +288,8 @@ impl AppSink {
}
}
pub fn connect_property_emit_signals_notify<F: Fn(&AppSink) + Send + Sync + 'static>(
#[doc(alias = "emit-signals")]
pub fn connect_emit_signals_notify<F: Fn(&AppSink) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -305,7 +316,8 @@ impl AppSink {
}
}
pub fn connect_property_eos_notify<F: Fn(&AppSink) + Send + Sync + 'static>(
#[doc(alias = "eos")]
pub fn connect_eos_notify<F: Fn(&AppSink) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -330,7 +342,8 @@ impl AppSink {
}
}
pub fn connect_property_max_buffers_notify<F: Fn(&AppSink) + Send + Sync + 'static>(
#[doc(alias = "max-buffers")]
pub fn connect_max_buffers_notify<F: Fn(&AppSink) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -357,7 +370,8 @@ impl AppSink {
}
}
pub fn connect_property_wait_on_eos_notify<F: Fn(&AppSink) + Send + Sync + 'static>(
#[doc(alias = "wait-on-eos")]
pub fn connect_wait_on_eos_notify<F: Fn(&AppSink) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {

View file

@ -23,11 +23,13 @@ glib::wrapper! {
impl AppSrc {
#[doc(alias = "gst_app_src_get_caps")]
#[doc(alias = "get_caps")]
pub fn caps(&self) -> Option<gst::Caps> {
unsafe { from_glib_full(ffi::gst_app_src_get_caps(self.to_glib_none().0)) }
}
#[doc(alias = "gst_app_src_get_current_level_bytes")]
#[doc(alias = "get_current_level_bytes")]
pub fn current_level_bytes(&self) -> u64 {
unsafe { ffi::gst_app_src_get_current_level_bytes(self.to_glib_none().0) }
}
@ -35,26 +37,31 @@ impl AppSrc {
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
#[doc(alias = "gst_app_src_get_duration")]
#[doc(alias = "get_duration")]
pub fn duration(&self) -> gst::ClockTime {
unsafe { from_glib(ffi::gst_app_src_get_duration(self.to_glib_none().0)) }
}
#[doc(alias = "gst_app_src_get_emit_signals")]
#[doc(alias = "get_emit_signals")]
pub fn emits_signals(&self) -> bool {
unsafe { from_glib(ffi::gst_app_src_get_emit_signals(self.to_glib_none().0)) }
}
#[doc(alias = "gst_app_src_get_max_bytes")]
#[doc(alias = "get_max_bytes")]
pub fn max_bytes(&self) -> u64 {
unsafe { ffi::gst_app_src_get_max_bytes(self.to_glib_none().0) }
}
#[doc(alias = "gst_app_src_get_size")]
#[doc(alias = "get_size")]
pub fn size(&self) -> i64 {
unsafe { ffi::gst_app_src_get_size(self.to_glib_none().0) }
}
#[doc(alias = "gst_app_src_get_stream_type")]
#[doc(alias = "get_stream_type")]
pub fn stream_type(&self) -> AppStreamType {
unsafe { from_glib(ffi::gst_app_src_get_stream_type(self.to_glib_none().0)) }
}
@ -108,7 +115,6 @@ impl AppSrc {
}
}
#[doc(alias = "get_property_block")]
pub fn is_block(&self) -> bool {
unsafe {
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
@ -123,7 +129,6 @@ impl AppSrc {
}
}
#[doc(alias = "set_property_block")]
pub fn set_block(&self, block: bool) {
unsafe {
glib::gobject_ffi::g_object_set_property(
@ -134,7 +139,6 @@ impl AppSrc {
}
}
#[doc(alias = "get_property_format")]
pub fn format(&self) -> gst::Format {
unsafe {
let mut value = glib::Value::from_type(<gst::Format as StaticType>::static_type());
@ -149,7 +153,6 @@ impl AppSrc {
}
}
#[doc(alias = "set_property_format")]
pub fn set_format(&self, format: gst::Format) {
unsafe {
glib::gobject_ffi::g_object_set_property(
@ -162,7 +165,7 @@ impl AppSrc {
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
#[doc(alias = "get_property_handle_segment_change")]
#[doc(alias = "handle-segment-change")]
pub fn is_handle_segment_change(&self) -> bool {
unsafe {
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
@ -179,7 +182,7 @@ impl AppSrc {
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
#[doc(alias = "set_property_handle_segment_change")]
#[doc(alias = "handle-segment-change")]
pub fn set_handle_segment_change(&self, handle_segment_change: bool) {
unsafe {
glib::gobject_ffi::g_object_set_property(
@ -190,7 +193,7 @@ impl AppSrc {
}
}
#[doc(alias = "get_property_is_live")]
#[doc(alias = "is-live")]
pub fn is_live(&self) -> bool {
unsafe {
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
@ -205,7 +208,7 @@ impl AppSrc {
}
}
#[doc(alias = "set_property_is_live")]
#[doc(alias = "is-live")]
pub fn set_is_live(&self, is_live: bool) {
unsafe {
glib::gobject_ffi::g_object_set_property(
@ -216,7 +219,7 @@ impl AppSrc {
}
}
#[doc(alias = "get_property_max_latency")]
#[doc(alias = "max-latency")]
pub fn max_latency(&self) -> i64 {
unsafe {
let mut value = glib::Value::from_type(<i64 as StaticType>::static_type());
@ -231,7 +234,7 @@ impl AppSrc {
}
}
#[doc(alias = "set_property_max_latency")]
#[doc(alias = "max-latency")]
pub fn set_max_latency(&self, max_latency: i64) {
unsafe {
glib::gobject_ffi::g_object_set_property(
@ -242,7 +245,7 @@ impl AppSrc {
}
}
#[doc(alias = "get_property_min_latency")]
#[doc(alias = "min-latency")]
pub fn min_latency(&self) -> i64 {
unsafe {
let mut value = glib::Value::from_type(<i64 as StaticType>::static_type());
@ -257,7 +260,7 @@ impl AppSrc {
}
}
#[doc(alias = "set_property_min_latency")]
#[doc(alias = "min-latency")]
pub fn set_min_latency(&self, min_latency: i64) {
unsafe {
glib::gobject_ffi::g_object_set_property(
@ -268,7 +271,7 @@ impl AppSrc {
}
}
#[doc(alias = "get_property_min_percent")]
#[doc(alias = "min-percent")]
pub fn min_percent(&self) -> u32 {
unsafe {
let mut value = glib::Value::from_type(<u32 as StaticType>::static_type());
@ -283,7 +286,7 @@ impl AppSrc {
}
}
#[doc(alias = "set_property_min_percent")]
#[doc(alias = "min-percent")]
pub fn set_min_percent(&self, min_percent: u32) {
unsafe {
glib::gobject_ffi::g_object_set_property(
@ -294,6 +297,7 @@ impl AppSrc {
}
}
#[doc(alias = "enough-data")]
pub fn connect_enough_data<F: Fn(&AppSrc) + Send + Sync + 'static>(
&self,
f: F,
@ -318,6 +322,7 @@ impl AppSrc {
}
}
#[doc(alias = "need-data")]
pub fn connect_need_data<F: Fn(&AppSrc, u32) + Send + Sync + 'static>(
&self,
f: F,
@ -343,6 +348,7 @@ impl AppSrc {
}
}
#[doc(alias = "seek-data")]
pub fn connect_seek_data<F: Fn(&AppSrc, u64) -> bool + Send + Sync + 'static>(
&self,
f: F,
@ -370,7 +376,8 @@ impl AppSrc {
}
}
pub fn connect_property_block_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
#[doc(alias = "block")]
pub fn connect_block_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -395,7 +402,8 @@ impl AppSrc {
}
}
pub fn connect_property_caps_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
#[doc(alias = "caps")]
pub fn connect_caps_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -420,7 +428,8 @@ impl AppSrc {
}
}
pub fn connect_property_current_level_bytes_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
#[doc(alias = "current-level-bytes")]
pub fn connect_current_level_bytes_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -449,7 +458,8 @@ impl AppSrc {
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn connect_property_duration_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
#[doc(alias = "duration")]
pub fn connect_duration_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -474,7 +484,8 @@ impl AppSrc {
}
}
pub fn connect_property_emit_signals_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
#[doc(alias = "emit-signals")]
pub fn connect_emit_signals_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -501,7 +512,8 @@ impl AppSrc {
}
}
pub fn connect_property_format_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
#[doc(alias = "format")]
pub fn connect_format_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -528,7 +540,8 @@ impl AppSrc {
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn connect_property_handle_segment_change_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
#[doc(alias = "handle-segment-change")]
pub fn connect_handle_segment_change_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -555,7 +568,8 @@ impl AppSrc {
}
}
pub fn connect_property_is_live_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
#[doc(alias = "is-live")]
pub fn connect_is_live_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -580,7 +594,8 @@ impl AppSrc {
}
}
pub fn connect_property_max_bytes_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
#[doc(alias = "max-bytes")]
pub fn connect_max_bytes_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -605,7 +620,8 @@ impl AppSrc {
}
}
pub fn connect_property_max_latency_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
#[doc(alias = "max-latency")]
pub fn connect_max_latency_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -632,7 +648,8 @@ impl AppSrc {
}
}
pub fn connect_property_min_latency_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
#[doc(alias = "min-latency")]
pub fn connect_min_latency_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -659,7 +676,8 @@ impl AppSrc {
}
}
pub fn connect_property_min_percent_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
#[doc(alias = "min-percent")]
pub fn connect_min_percent_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -686,7 +704,8 @@ impl AppSrc {
}
}
pub fn connect_property_size_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
#[doc(alias = "size")]
pub fn connect_size_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -711,7 +730,8 @@ impl AppSrc {
}
}
pub fn connect_property_stream_type_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
#[doc(alias = "stream-type")]
pub fn connect_stream_type_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -31,18 +31,23 @@ pub trait AudioBaseSinkExt: 'static {
//fn create_ringbuffer(&self) -> /*Ignored*/Option<AudioRingBuffer>;
#[doc(alias = "gst_audio_base_sink_get_alignment_threshold")]
#[doc(alias = "get_alignment_threshold")]
fn alignment_threshold(&self) -> gst::ClockTime;
#[doc(alias = "gst_audio_base_sink_get_discont_wait")]
#[doc(alias = "get_discont_wait")]
fn discont_wait(&self) -> gst::ClockTime;
#[doc(alias = "gst_audio_base_sink_get_drift_tolerance")]
#[doc(alias = "get_drift_tolerance")]
fn drift_tolerance(&self) -> i64;
#[doc(alias = "gst_audio_base_sink_get_provide_clock")]
#[doc(alias = "get_provide_clock")]
fn is_provide_clock(&self) -> bool;
//#[doc(alias = "gst_audio_base_sink_get_slave_method")]
//#[doc(alias = "get_slave_method")]
//fn slave_method(&self) -> /*Ignored*/AudioBaseSinkSlaveMethod;
#[doc(alias = "gst_audio_base_sink_report_device_failure")]
@ -66,60 +71,68 @@ pub trait AudioBaseSinkExt: 'static {
//#[doc(alias = "gst_audio_base_sink_set_slave_method")]
//fn set_slave_method(&self, method: /*Ignored*/AudioBaseSinkSlaveMethod);
#[doc(alias = "get_property_buffer_time")]
#[doc(alias = "buffer-time")]
fn buffer_time(&self) -> i64;
#[doc(alias = "set_property_buffer_time")]
#[doc(alias = "buffer-time")]
fn set_buffer_time(&self, buffer_time: i64);
#[doc(alias = "get_property_can_activate_pull")]
#[doc(alias = "can-activate-pull")]
fn can_activate_pull(&self) -> bool;
#[doc(alias = "set_property_can_activate_pull")]
#[doc(alias = "can-activate-pull")]
fn set_can_activate_pull(&self, can_activate_pull: bool);
#[doc(alias = "get_property_latency_time")]
#[doc(alias = "latency-time")]
fn latency_time(&self) -> i64;
#[doc(alias = "set_property_latency_time")]
#[doc(alias = "latency-time")]
fn set_latency_time(&self, latency_time: i64);
fn connect_property_alignment_threshold_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "alignment-threshold")]
fn connect_alignment_threshold_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_buffer_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "buffer-time")]
fn connect_buffer_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_can_activate_pull_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "can-activate-pull")]
fn connect_can_activate_pull_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_discont_wait_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "discont-wait")]
fn connect_discont_wait_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_drift_tolerance_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "drift-tolerance")]
fn connect_drift_tolerance_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_latency_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "latency-time")]
fn connect_latency_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_provide_clock_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "provide-clock")]
fn connect_provide_clock_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_slave_method_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "slave-method")]
fn connect_slave_method_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
@ -284,7 +297,8 @@ impl<O: IsA<AudioBaseSink>> AudioBaseSinkExt for O {
}
}
fn connect_property_alignment_threshold_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "alignment-threshold")]
fn connect_alignment_threshold_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -314,7 +328,8 @@ impl<O: IsA<AudioBaseSink>> AudioBaseSinkExt for O {
}
}
fn connect_property_buffer_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "buffer-time")]
fn connect_buffer_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -341,7 +356,8 @@ impl<O: IsA<AudioBaseSink>> AudioBaseSinkExt for O {
}
}
fn connect_property_can_activate_pull_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "can-activate-pull")]
fn connect_can_activate_pull_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -371,7 +387,8 @@ impl<O: IsA<AudioBaseSink>> AudioBaseSinkExt for O {
}
}
fn connect_property_discont_wait_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "discont-wait")]
fn connect_discont_wait_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -398,7 +415,8 @@ impl<O: IsA<AudioBaseSink>> AudioBaseSinkExt for O {
}
}
fn connect_property_drift_tolerance_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "drift-tolerance")]
fn connect_drift_tolerance_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -428,7 +446,8 @@ impl<O: IsA<AudioBaseSink>> AudioBaseSinkExt for O {
}
}
fn connect_property_latency_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "latency-time")]
fn connect_latency_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -455,7 +474,8 @@ impl<O: IsA<AudioBaseSink>> AudioBaseSinkExt for O {
}
}
fn connect_property_provide_clock_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "provide-clock")]
fn connect_provide_clock_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -482,7 +502,8 @@ impl<O: IsA<AudioBaseSink>> AudioBaseSinkExt for O {
}
}
fn connect_property_slave_method_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "slave-method")]
fn connect_slave_method_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {

View file

@ -31,9 +31,11 @@ pub trait AudioBaseSrcExt: 'static {
//fn create_ringbuffer(&self) -> /*Ignored*/Option<AudioRingBuffer>;
#[doc(alias = "gst_audio_base_src_get_provide_clock")]
#[doc(alias = "get_provide_clock")]
fn is_provide_clock(&self) -> bool;
//#[doc(alias = "gst_audio_base_src_get_slave_method")]
//#[doc(alias = "get_slave_method")]
//fn slave_method(&self) -> /*Ignored*/AudioBaseSrcSlaveMethod;
#[doc(alias = "gst_audio_base_src_set_provide_clock")]
@ -42,50 +44,56 @@ pub trait AudioBaseSrcExt: 'static {
//#[doc(alias = "gst_audio_base_src_set_slave_method")]
//fn set_slave_method(&self, method: /*Ignored*/AudioBaseSrcSlaveMethod);
#[doc(alias = "get_property_actual_buffer_time")]
#[doc(alias = "actual-buffer-time")]
fn actual_buffer_time(&self) -> i64;
#[doc(alias = "get_property_actual_latency_time")]
#[doc(alias = "actual-latency-time")]
fn actual_latency_time(&self) -> i64;
#[doc(alias = "get_property_buffer_time")]
#[doc(alias = "buffer-time")]
fn buffer_time(&self) -> i64;
#[doc(alias = "set_property_buffer_time")]
#[doc(alias = "buffer-time")]
fn set_buffer_time(&self, buffer_time: i64);
#[doc(alias = "get_property_latency_time")]
#[doc(alias = "latency-time")]
fn latency_time(&self) -> i64;
#[doc(alias = "set_property_latency_time")]
#[doc(alias = "latency-time")]
fn set_latency_time(&self, latency_time: i64);
fn connect_property_actual_buffer_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "actual-buffer-time")]
fn connect_actual_buffer_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_actual_latency_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "actual-latency-time")]
fn connect_actual_latency_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_buffer_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "buffer-time")]
fn connect_buffer_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_latency_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "latency-time")]
fn connect_latency_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_provide_clock_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "provide-clock")]
fn connect_provide_clock_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_slave_method_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "slave-method")]
fn connect_slave_method_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
@ -197,7 +205,8 @@ impl<O: IsA<AudioBaseSrc>> AudioBaseSrcExt for O {
}
}
fn connect_property_actual_buffer_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "actual-buffer-time")]
fn connect_actual_buffer_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -227,7 +236,8 @@ impl<O: IsA<AudioBaseSrc>> AudioBaseSrcExt for O {
}
}
fn connect_property_actual_latency_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "actual-latency-time")]
fn connect_actual_latency_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -257,7 +267,8 @@ impl<O: IsA<AudioBaseSrc>> AudioBaseSrcExt for O {
}
}
fn connect_property_buffer_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "buffer-time")]
fn connect_buffer_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -284,7 +295,8 @@ impl<O: IsA<AudioBaseSrc>> AudioBaseSrcExt for O {
}
}
fn connect_property_latency_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "latency-time")]
fn connect_latency_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -311,7 +323,8 @@ impl<O: IsA<AudioBaseSrc>> AudioBaseSrcExt for O {
}
}
fn connect_property_provide_clock_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "provide-clock")]
fn connect_provide_clock_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -338,7 +351,8 @@ impl<O: IsA<AudioBaseSrc>> AudioBaseSrcExt for O {
}
}
fn connect_property_slave_method_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "slave-method")]
fn connect_slave_method_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {

View file

@ -31,39 +31,51 @@ pub trait AudioDecoderExt: 'static {
fn allocate_output_buffer(&self, size: usize) -> Result<gst::Buffer, glib::BoolError>;
#[doc(alias = "gst_audio_decoder_get_audio_info")]
#[doc(alias = "get_audio_info")]
fn audio_info(&self) -> Option<AudioInfo>;
#[doc(alias = "gst_audio_decoder_get_delay")]
#[doc(alias = "get_delay")]
fn delay(&self) -> i32;
#[doc(alias = "gst_audio_decoder_get_drainable")]
#[doc(alias = "get_drainable")]
fn is_drainable(&self) -> bool;
#[doc(alias = "gst_audio_decoder_get_estimate_rate")]
#[doc(alias = "get_estimate_rate")]
fn estimate_rate(&self) -> i32;
#[doc(alias = "gst_audio_decoder_get_latency")]
#[doc(alias = "get_latency")]
fn latency(&self) -> (gst::ClockTime, gst::ClockTime);
#[doc(alias = "gst_audio_decoder_get_max_errors")]
#[doc(alias = "get_max_errors")]
fn max_errors(&self) -> i32;
#[doc(alias = "gst_audio_decoder_get_min_latency")]
#[doc(alias = "get_min_latency")]
fn min_latency(&self) -> gst::ClockTime;
#[doc(alias = "gst_audio_decoder_get_needs_format")]
#[doc(alias = "get_needs_format")]
fn needs_format(&self) -> bool;
#[doc(alias = "gst_audio_decoder_get_parse_state")]
#[doc(alias = "get_parse_state")]
fn parse_state(&self) -> (bool, bool);
#[doc(alias = "gst_audio_decoder_get_plc")]
#[doc(alias = "get_plc")]
fn is_plc(&self) -> bool;
#[doc(alias = "gst_audio_decoder_get_plc_aware")]
#[doc(alias = "get_plc_aware")]
fn plc_aware(&self) -> i32;
#[doc(alias = "gst_audio_decoder_get_tolerance")]
#[doc(alias = "get_tolerance")]
fn tolerance(&self) -> gst::ClockTime;
#[doc(alias = "gst_audio_decoder_merge_tags")]
@ -109,22 +121,23 @@ pub trait AudioDecoderExt: 'static {
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_property_max_errors_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "max-errors")]
fn connect_max_errors_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_min_latency_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "min-latency")]
fn connect_min_latency_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_plc_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
#[doc(alias = "plc")]
fn connect_plc_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_tolerance_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "tolerance")]
fn connect_tolerance_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
@ -347,7 +360,8 @@ impl<O: IsA<AudioDecoder>> AudioDecoderExt for O {
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_property_max_errors_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "max-errors")]
fn connect_max_errors_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -374,7 +388,8 @@ impl<O: IsA<AudioDecoder>> AudioDecoderExt for O {
}
}
fn connect_property_min_latency_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "min-latency")]
fn connect_min_latency_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -401,10 +416,8 @@ impl<O: IsA<AudioDecoder>> AudioDecoderExt for O {
}
}
fn connect_property_plc_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
#[doc(alias = "plc")]
fn connect_plc_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_plc_trampoline<P, F: Fn(&P) + Send + Sync + 'static>(
this: *mut ffi::GstAudioDecoder,
_param_spec: glib::ffi::gpointer,
@ -428,7 +441,8 @@ impl<O: IsA<AudioDecoder>> AudioDecoderExt for O {
}
}
fn connect_property_tolerance_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "tolerance")]
fn connect_tolerance_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {

View file

@ -30,36 +30,47 @@ pub trait AudioEncoderExt: 'static {
fn allocate_output_buffer(&self, size: usize) -> Result<gst::Buffer, glib::BoolError>;
#[doc(alias = "gst_audio_encoder_get_audio_info")]
#[doc(alias = "get_audio_info")]
fn audio_info(&self) -> Option<AudioInfo>;
#[doc(alias = "gst_audio_encoder_get_drainable")]
#[doc(alias = "get_drainable")]
fn is_drainable(&self) -> bool;
#[doc(alias = "gst_audio_encoder_get_frame_max")]
#[doc(alias = "get_frame_max")]
fn frame_max(&self) -> i32;
#[doc(alias = "gst_audio_encoder_get_frame_samples_max")]
#[doc(alias = "get_frame_samples_max")]
fn frame_samples_max(&self) -> i32;
#[doc(alias = "gst_audio_encoder_get_frame_samples_min")]
#[doc(alias = "get_frame_samples_min")]
fn frame_samples_min(&self) -> i32;
#[doc(alias = "gst_audio_encoder_get_hard_min")]
#[doc(alias = "get_hard_min")]
fn is_hard_min(&self) -> bool;
#[doc(alias = "gst_audio_encoder_get_hard_resync")]
#[doc(alias = "get_hard_resync")]
fn is_hard_resync(&self) -> bool;
#[doc(alias = "gst_audio_encoder_get_lookahead")]
#[doc(alias = "get_lookahead")]
fn lookahead(&self) -> i32;
#[doc(alias = "gst_audio_encoder_get_mark_granule")]
#[doc(alias = "get_mark_granule")]
fn is_mark_granule(&self) -> bool;
#[doc(alias = "gst_audio_encoder_get_perfect_timestamp")]
#[doc(alias = "get_perfect_timestamp")]
fn is_perfect_timestamp(&self) -> bool;
#[doc(alias = "gst_audio_encoder_get_tolerance")]
#[doc(alias = "get_tolerance")]
fn tolerance(&self) -> gst::ClockTime;
#[doc(alias = "gst_audio_encoder_merge_tags")]
@ -109,22 +120,26 @@ pub trait AudioEncoderExt: 'static {
#[doc(alias = "gst_audio_encoder_set_tolerance")]
fn set_tolerance(&self, tolerance: gst::ClockTime);
fn connect_property_hard_resync_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "hard-resync")]
fn connect_hard_resync_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_mark_granule_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "mark-granule")]
fn connect_mark_granule_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_perfect_timestamp_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "perfect-timestamp")]
fn connect_perfect_timestamp_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_tolerance_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "tolerance")]
fn connect_tolerance_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
@ -341,7 +356,8 @@ impl<O: IsA<AudioEncoder>> AudioEncoderExt for O {
}
}
fn connect_property_hard_resync_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "hard-resync")]
fn connect_hard_resync_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -368,7 +384,8 @@ impl<O: IsA<AudioEncoder>> AudioEncoderExt for O {
}
}
fn connect_property_mark_granule_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "mark-granule")]
fn connect_mark_granule_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -395,7 +412,8 @@ impl<O: IsA<AudioEncoder>> AudioEncoderExt for O {
}
}
fn connect_property_perfect_timestamp_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "perfect-timestamp")]
fn connect_perfect_timestamp_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -425,7 +443,8 @@ impl<O: IsA<AudioEncoder>> AudioEncoderExt for O {
}
}
fn connect_property_tolerance_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "tolerance")]
fn connect_tolerance_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {

View file

@ -34,6 +34,7 @@ impl AudioStreamAlign {
}
#[doc(alias = "gst_audio_stream_align_get_alignment_threshold")]
#[doc(alias = "get_alignment_threshold")]
pub fn alignment_threshold(&self) -> gst::ClockTime {
unsafe {
from_glib(ffi::gst_audio_stream_align_get_alignment_threshold(
@ -43,6 +44,7 @@ impl AudioStreamAlign {
}
#[doc(alias = "gst_audio_stream_align_get_discont_wait")]
#[doc(alias = "get_discont_wait")]
pub fn discont_wait(&self) -> gst::ClockTime {
unsafe {
from_glib(ffi::gst_audio_stream_align_get_discont_wait(mut_override(
@ -52,11 +54,13 @@ impl AudioStreamAlign {
}
#[doc(alias = "gst_audio_stream_align_get_rate")]
#[doc(alias = "get_rate")]
pub fn rate(&self) -> i32 {
unsafe { ffi::gst_audio_stream_align_get_rate(mut_override(self.to_glib_none().0)) }
}
#[doc(alias = "gst_audio_stream_align_get_samples_since_discont")]
#[doc(alias = "get_samples_since_discont")]
pub fn samples_since_discont(&self) -> u64 {
unsafe {
ffi::gst_audio_stream_align_get_samples_since_discont(mut_override(
@ -66,6 +70,7 @@ impl AudioStreamAlign {
}
#[doc(alias = "gst_audio_stream_align_get_timestamp_at_discont")]
#[doc(alias = "get_timestamp_at_discont")]
pub fn timestamp_at_discont(&self) -> gst::ClockTime {
unsafe {
from_glib(ffi::gst_audio_stream_align_get_timestamp_at_discont(

View file

@ -35,9 +35,11 @@ pub const NONE_STREAM_VOLUME: Option<&StreamVolume> = None;
pub trait StreamVolumeExt: 'static {
#[doc(alias = "gst_stream_volume_get_mute")]
#[doc(alias = "get_mute")]
fn is_muted(&self) -> bool;
#[doc(alias = "gst_stream_volume_get_volume")]
#[doc(alias = "get_volume")]
fn volume(&self, format: StreamVolumeFormat) -> f64;
#[doc(alias = "gst_stream_volume_set_mute")]
@ -46,15 +48,11 @@ pub trait StreamVolumeExt: 'static {
#[doc(alias = "gst_stream_volume_set_volume")]
fn set_volume(&self, format: StreamVolumeFormat, val: f64);
fn connect_property_mute_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
#[doc(alias = "mute")]
fn connect_mute_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_volume_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
#[doc(alias = "volume")]
fn connect_volume_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
}
impl<O: IsA<StreamVolume>> StreamVolumeExt for O {
@ -88,10 +86,8 @@ impl<O: IsA<StreamVolume>> StreamVolumeExt for O {
}
}
fn connect_property_mute_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
#[doc(alias = "mute")]
fn connect_mute_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_mute_trampoline<P, F: Fn(&P) + Send + Sync + 'static>(
this: *mut ffi::GstStreamVolume,
_param_spec: glib::ffi::gpointer,
@ -115,10 +111,8 @@ impl<O: IsA<StreamVolume>> StreamVolumeExt for O {
}
}
fn connect_property_volume_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
#[doc(alias = "volume")]
fn connect_volume_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_volume_trampoline<P, F: Fn(&P) + Send + Sync + 'static>(
this: *mut ffi::GstStreamVolume,
_param_spec: glib::ffi::gpointer,

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -34,12 +34,15 @@ pub const NONE_AGGREGATOR: Option<&Aggregator> = None;
pub trait AggregatorExt: 'static {
//#[doc(alias = "gst_aggregator_get_allocator")]
//#[doc(alias = "get_allocator")]
//fn allocator(&self, allocator: /*Ignored*/Option<gst::Allocator>, params: /*Ignored*/gst::AllocationParams);
#[doc(alias = "gst_aggregator_get_buffer_pool")]
#[doc(alias = "get_buffer_pool")]
fn buffer_pool(&self) -> Option<gst::BufferPool>;
#[doc(alias = "gst_aggregator_get_latency")]
#[doc(alias = "get_latency")]
fn latency(&self) -> gst::ClockTime;
#[cfg(any(feature = "v1_18", feature = "dox"))]
@ -70,56 +73,59 @@ pub trait AggregatorExt: 'static {
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
#[doc(alias = "get_property_emit_signals")]
#[doc(alias = "emit-signals")]
fn emits_signals(&self) -> bool;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
#[doc(alias = "set_property_emit_signals")]
#[doc(alias = "emit-signals")]
fn set_emit_signals(&self, emit_signals: bool);
#[doc(alias = "get_property_start_time")]
#[doc(alias = "start-time")]
fn start_time(&self) -> u64;
#[doc(alias = "set_property_start_time")]
#[doc(alias = "start-time")]
fn set_start_time(&self, start_time: u64);
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
#[doc(alias = "get_property_start_time_selection")]
#[doc(alias = "start-time-selection")]
fn start_time_selection(&self) -> AggregatorStartTimeSelection;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
#[doc(alias = "set_property_start_time_selection")]
#[doc(alias = "start-time-selection")]
fn set_start_time_selection(&self, start_time_selection: AggregatorStartTimeSelection);
//#[cfg(any(feature = "v1_18", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
//#[doc(alias = "samples-selected")]
//fn connect_samples_selected<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_property_emit_signals_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "emit-signals")]
fn connect_emit_signals_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
fn connect_property_latency_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
#[doc(alias = "latency")]
fn connect_latency_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F)
-> SignalHandlerId;
fn connect_property_start_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "start-time")]
fn connect_start_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_property_start_time_selection_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "start-time-selection")]
fn connect_start_time_selection_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
@ -282,13 +288,15 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
//#[cfg(any(feature = "v1_18", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
//#[doc(alias = "samples-selected")]
//fn connect_samples_selected<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId {
// Ignored segment: Gst.Segment
//}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_property_emit_signals_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "emit-signals")]
fn connect_emit_signals_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -317,7 +325,8 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
fn connect_property_latency_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "latency")]
fn connect_latency_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -344,7 +353,8 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
}
}
fn connect_property_start_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "start-time")]
fn connect_start_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -373,7 +383,8 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_property_start_time_selection_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "start-time-selection")]
fn connect_start_time_selection_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {

View file

@ -50,14 +50,15 @@ pub trait AggregatorPadExt: 'static {
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
#[doc(alias = "get_property_emit_signals")]
#[doc(alias = "emit-signals")]
fn emits_signals(&self) -> bool;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
#[doc(alias = "set_property_emit_signals")]
#[doc(alias = "emit-signals")]
fn set_emit_signals(&self, emit_signals: bool);
#[doc(alias = "buffer-consumed")]
fn connect_buffer_consumed<F: Fn(&Self, &gst::Buffer) + Send + Sync + 'static>(
&self,
f: F,
@ -65,7 +66,8 @@ pub trait AggregatorPadExt: 'static {
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
fn connect_property_emit_signals_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "emit-signals")]
fn connect_emit_signals_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
@ -142,6 +144,7 @@ impl<O: IsA<AggregatorPad>> AggregatorPadExt for O {
}
}
#[doc(alias = "buffer-consumed")]
fn connect_buffer_consumed<F: Fn(&Self, &gst::Buffer) + Send + Sync + 'static>(
&self,
f: F,
@ -177,7 +180,8 @@ impl<O: IsA<AggregatorPad>> AggregatorPadExt for O {
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
fn connect_property_emit_signals_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "emit-signals")]
fn connect_emit_signals_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {

View file

@ -65,13 +65,14 @@ pub trait BaseParseExt: 'static {
#[doc(alias = "gst_base_parse_set_ts_at_offset")]
fn set_ts_at_offset(&self, offset: usize);
#[doc(alias = "get_property_disable_passthrough")]
#[doc(alias = "disable-passthrough")]
fn is_disable_passthrough(&self) -> bool;
#[doc(alias = "set_property_disable_passthrough")]
#[doc(alias = "disable-passthrough")]
fn set_disable_passthrough(&self, disable_passthrough: bool);
fn connect_property_disable_passthrough_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "disable-passthrough")]
fn connect_disable_passthrough_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
@ -199,7 +200,8 @@ impl<O: IsA<BaseParse>> BaseParseExt for O {
}
}
fn connect_property_disable_passthrough_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "disable-passthrough")]
fn connect_disable_passthrough_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {

View file

@ -31,45 +31,57 @@ pub trait BaseSinkExt: 'static {
//fn do_preroll(&self, obj: /*Ignored*/&gst::MiniObject) -> gst::FlowReturn;
#[doc(alias = "gst_base_sink_get_blocksize")]
#[doc(alias = "get_blocksize")]
fn blocksize(&self) -> u32;
#[cfg(any(feature = "v1_12", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
#[doc(alias = "gst_base_sink_get_drop_out_of_segment")]
#[doc(alias = "get_drop_out_of_segment")]
fn is_drop_out_of_segment(&self) -> bool;
#[doc(alias = "gst_base_sink_get_last_sample")]
#[doc(alias = "get_last_sample")]
fn last_sample(&self) -> Option<gst::Sample>;
#[doc(alias = "gst_base_sink_get_latency")]
#[doc(alias = "get_latency")]
fn latency(&self) -> gst::ClockTime;
#[doc(alias = "gst_base_sink_get_max_bitrate")]
#[doc(alias = "get_max_bitrate")]
fn max_bitrate(&self) -> u64;
#[doc(alias = "gst_base_sink_get_max_lateness")]
#[doc(alias = "get_max_lateness")]
fn max_lateness(&self) -> i64;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
#[doc(alias = "gst_base_sink_get_processing_deadline")]
#[doc(alias = "get_processing_deadline")]
fn processing_deadline(&self) -> gst::ClockTime;
#[doc(alias = "gst_base_sink_get_render_delay")]
#[doc(alias = "get_render_delay")]
fn render_delay(&self) -> gst::ClockTime;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
#[doc(alias = "gst_base_sink_get_stats")]
#[doc(alias = "get_stats")]
fn stats(&self) -> gst::Structure;
#[doc(alias = "gst_base_sink_get_sync")]
#[doc(alias = "get_sync")]
fn is_sync(&self) -> bool;
#[doc(alias = "gst_base_sink_get_throttle_time")]
#[doc(alias = "get_throttle_time")]
fn throttle_time(&self) -> u64;
#[doc(alias = "gst_base_sink_get_ts_offset")]
#[doc(alias = "get_ts_offset")]
fn ts_offset(&self) -> gst::ClockTimeDiff;
#[doc(alias = "gst_base_sink_is_async_enabled")]
@ -121,89 +133,88 @@ pub trait BaseSinkExt: 'static {
#[doc(alias = "gst_base_sink_set_ts_offset")]
fn set_ts_offset(&self, offset: gst::ClockTimeDiff);
#[doc(alias = "get_property_async")]
#[doc(alias = "async")]
fn is_async(&self) -> bool;
#[doc(alias = "set_property_async")]
#[doc(alias = "async")]
fn set_async(&self, async_: bool);
#[doc(alias = "get_property_enable_last_sample")]
#[doc(alias = "enable-last-sample")]
fn enables_last_sample(&self) -> bool;
#[doc(alias = "set_property_enable_last_sample")]
#[doc(alias = "enable-last-sample")]
fn set_enable_last_sample(&self, enable_last_sample: bool);
#[doc(alias = "get_property_qos")]
fn is_qos(&self) -> bool;
#[doc(alias = "set_property_qos")]
fn set_qos(&self, qos: bool);
fn connect_property_async_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "async")]
fn connect_async_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "blocksize")]
fn connect_blocksize_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_blocksize_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "enable-last-sample")]
fn connect_enable_last_sample_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_enable_last_sample_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "last-sample")]
fn connect_last_sample_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_last_sample_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "max-bitrate")]
fn connect_max_bitrate_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_max_bitrate_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_max_lateness_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "max-lateness")]
fn connect_max_lateness_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
fn connect_property_processing_deadline_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "processing-deadline")]
fn connect_processing_deadline_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_qos_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
#[doc(alias = "qos")]
fn connect_qos_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_render_delay_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "render-delay")]
fn connect_render_delay_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_property_stats_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "stats")]
fn connect_stats_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "sync")]
fn connect_sync_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "throttle-time")]
fn connect_throttle_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_sync_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_throttle_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_ts_offset_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "ts-offset")]
fn connect_ts_offset_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
@ -470,10 +481,8 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
}
}
fn connect_property_async_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
#[doc(alias = "async")]
fn connect_async_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_async_trampoline<P, F: Fn(&P) + Send + Sync + 'static>(
this: *mut ffi::GstBaseSink,
_param_spec: glib::ffi::gpointer,
@ -497,7 +506,8 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
}
}
fn connect_property_blocksize_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "blocksize")]
fn connect_blocksize_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -524,7 +534,8 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
}
}
fn connect_property_enable_last_sample_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "enable-last-sample")]
fn connect_enable_last_sample_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -554,7 +565,8 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
}
}
fn connect_property_last_sample_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "last-sample")]
fn connect_last_sample_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -581,7 +593,8 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
}
}
fn connect_property_max_bitrate_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "max-bitrate")]
fn connect_max_bitrate_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -608,7 +621,8 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
}
}
fn connect_property_max_lateness_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "max-lateness")]
fn connect_max_lateness_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -637,7 +651,8 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
fn connect_property_processing_deadline_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "processing-deadline")]
fn connect_processing_deadline_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -667,10 +682,8 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
}
}
fn connect_property_qos_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
#[doc(alias = "qos")]
fn connect_qos_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_qos_trampoline<P, F: Fn(&P) + Send + Sync + 'static>(
this: *mut ffi::GstBaseSink,
_param_spec: glib::ffi::gpointer,
@ -694,7 +707,8 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
}
}
fn connect_property_render_delay_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "render-delay")]
fn connect_render_delay_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -723,10 +737,8 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_property_stats_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
#[doc(alias = "stats")]
fn connect_stats_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_stats_trampoline<P, F: Fn(&P) + Send + Sync + 'static>(
this: *mut ffi::GstBaseSink,
_param_spec: glib::ffi::gpointer,
@ -750,10 +762,8 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
}
}
fn connect_property_sync_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
#[doc(alias = "sync")]
fn connect_sync_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_sync_trampoline<P, F: Fn(&P) + Send + Sync + 'static>(
this: *mut ffi::GstBaseSink,
_param_spec: glib::ffi::gpointer,
@ -777,7 +787,8 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
}
}
fn connect_property_throttle_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "throttle-time")]
fn connect_throttle_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -804,7 +815,8 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
}
}
fn connect_property_ts_offset_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "ts-offset")]
fn connect_ts_offset_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {

View file

@ -28,15 +28,19 @@ pub const NONE_BASE_SRC: Option<&BaseSrc> = None;
pub trait BaseSrcExt: 'static {
//#[doc(alias = "gst_base_src_get_allocator")]
//#[doc(alias = "get_allocator")]
//fn allocator(&self, allocator: /*Ignored*/Option<gst::Allocator>, params: /*Ignored*/gst::AllocationParams);
#[doc(alias = "gst_base_src_get_blocksize")]
#[doc(alias = "get_blocksize")]
fn blocksize(&self) -> u32;
#[doc(alias = "gst_base_src_get_buffer_pool")]
#[doc(alias = "get_buffer_pool")]
fn buffer_pool(&self) -> Option<gst::BufferPool>;
#[doc(alias = "gst_base_src_get_do_timestamp")]
#[doc(alias = "get_do_timestamp")]
fn does_timestamp(&self) -> bool;
#[doc(alias = "gst_base_src_is_async")]
@ -78,34 +82,36 @@ pub trait BaseSrcExt: 'static {
#[doc(alias = "gst_base_src_set_live")]
fn set_live(&self, live: bool);
#[doc(alias = "get_property_num_buffers")]
#[doc(alias = "num-buffers")]
fn num_buffers(&self) -> i32;
#[doc(alias = "set_property_num_buffers")]
#[doc(alias = "num-buffers")]
fn set_num_buffers(&self, num_buffers: i32);
#[doc(alias = "get_property_typefind")]
fn is_typefind(&self) -> bool;
#[doc(alias = "set_property_typefind")]
fn set_typefind(&self, typefind: bool);
fn connect_property_blocksize_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "blocksize")]
fn connect_blocksize_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_do_timestamp_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "do-timestamp")]
fn connect_do_timestamp_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_num_buffers_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "num-buffers")]
fn connect_num_buffers_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_typefind_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "typefind")]
fn connect_typefind_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
@ -266,7 +272,8 @@ impl<O: IsA<BaseSrc>> BaseSrcExt for O {
}
}
fn connect_property_blocksize_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "blocksize")]
fn connect_blocksize_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -293,7 +300,8 @@ impl<O: IsA<BaseSrc>> BaseSrcExt for O {
}
}
fn connect_property_do_timestamp_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "do-timestamp")]
fn connect_do_timestamp_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -320,7 +328,8 @@ impl<O: IsA<BaseSrc>> BaseSrcExt for O {
}
}
fn connect_property_num_buffers_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "num-buffers")]
fn connect_num_buffers_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -347,7 +356,8 @@ impl<O: IsA<BaseSrc>> BaseSrcExt for O {
}
}
fn connect_property_typefind_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "typefind")]
fn connect_typefind_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {

View file

@ -28,9 +28,11 @@ pub const NONE_BASE_TRANSFORM: Option<&BaseTransform> = None;
pub trait BaseTransformExt: 'static {
//#[doc(alias = "gst_base_transform_get_allocator")]
//#[doc(alias = "get_allocator")]
//fn allocator(&self, allocator: /*Ignored*/Option<gst::Allocator>, params: /*Ignored*/gst::AllocationParams);
#[doc(alias = "gst_base_transform_get_buffer_pool")]
#[doc(alias = "get_buffer_pool")]
fn buffer_pool(&self) -> Option<gst::BufferPool>;
#[doc(alias = "gst_base_transform_is_in_place")]
@ -74,16 +76,12 @@ pub trait BaseTransformExt: 'static {
#[doc(alias = "gst_base_transform_update_src_caps")]
fn update_src_caps(&self, updated_caps: &gst::Caps) -> Result<(), glib::error::BoolError>;
#[doc(alias = "get_property_qos")]
fn is_qos(&self) -> bool;
#[doc(alias = "set_property_qos")]
fn set_qos(&self, qos: bool);
fn connect_property_qos_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
#[doc(alias = "qos")]
fn connect_qos_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
}
impl<O: IsA<BaseTransform>> BaseTransformExt for O {
@ -235,10 +233,8 @@ impl<O: IsA<BaseTransform>> BaseTransformExt for O {
}
}
fn connect_property_qos_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
#[doc(alias = "qos")]
fn connect_qos_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_qos_trampoline<P, F: Fn(&P) + Send + Sync + 'static>(
this: *mut ffi::GstBaseTransform,
_param_spec: glib::ffi::gpointer,

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -29,6 +29,7 @@ impl TestClock {
}
#[doc(alias = "gst_test_clock_new_with_start_time")]
#[doc(alias = "new_with_start_time")]
pub fn with_start_time(start_time: gst::ClockTime) -> TestClock {
assert_initialized_main_thread!();
unsafe {
@ -52,6 +53,7 @@ impl TestClock {
}
#[doc(alias = "gst_test_clock_get_next_entry_time")]
#[doc(alias = "get_next_entry_time")]
pub fn next_entry_time(&self) -> gst::ClockTime {
unsafe {
from_glib(ffi::gst_test_clock_get_next_entry_time(
@ -123,7 +125,7 @@ impl TestClock {
}
}
#[doc(alias = "get_property_clock_type")]
#[doc(alias = "clock-type")]
pub fn clock_type(&self) -> gst::ClockType {
unsafe {
let mut value = glib::Value::from_type(<gst::ClockType as StaticType>::static_type());
@ -138,7 +140,7 @@ impl TestClock {
}
}
#[doc(alias = "set_property_clock_type")]
#[doc(alias = "clock-type")]
pub fn set_clock_type(&self, clock_type: gst::ClockType) {
unsafe {
glib::gobject_ffi::g_object_set_property(
@ -149,7 +151,7 @@ impl TestClock {
}
}
#[doc(alias = "get_property_start_time")]
#[doc(alias = "start-time")]
pub fn start_time(&self) -> u64 {
unsafe {
let mut value = glib::Value::from_type(<u64 as StaticType>::static_type());
@ -169,7 +171,8 @@ impl TestClock {
// unsafe { TODO: call ffi:gst_test_clock_id_list_get_latest_time() }
//}
pub fn connect_property_clock_type_notify<F: Fn(&TestClock) + Send + Sync + 'static>(
#[doc(alias = "clock-type")]
pub fn connect_clock_type_notify<F: Fn(&TestClock) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -58,46 +58,50 @@ unsafe impl Sync for ARGBControlBinding {}
pub const NONE_ARGB_CONTROL_BINDING: Option<&ARGBControlBinding> = None;
pub trait ARGBControlBindingExt: 'static {
#[doc(alias = "get_property_control_source_a")]
#[doc(alias = "control-source-a")]
fn control_source_a(&self) -> Option<gst::ControlSource>;
#[doc(alias = "set_property_control_source_a")]
#[doc(alias = "control-source-a")]
fn set_control_source_a<P: IsA<gst::ControlSource>>(&self, control_source_a: Option<&P>);
#[doc(alias = "get_property_control_source_b")]
#[doc(alias = "control-source-b")]
fn control_source_b(&self) -> Option<gst::ControlSource>;
#[doc(alias = "set_property_control_source_b")]
#[doc(alias = "control-source-b")]
fn set_control_source_b<P: IsA<gst::ControlSource>>(&self, control_source_b: Option<&P>);
#[doc(alias = "get_property_control_source_g")]
#[doc(alias = "control-source-g")]
fn control_source_g(&self) -> Option<gst::ControlSource>;
#[doc(alias = "set_property_control_source_g")]
#[doc(alias = "control-source-g")]
fn set_control_source_g<P: IsA<gst::ControlSource>>(&self, control_source_g: Option<&P>);
#[doc(alias = "get_property_control_source_r")]
#[doc(alias = "control-source-r")]
fn control_source_r(&self) -> Option<gst::ControlSource>;
#[doc(alias = "set_property_control_source_r")]
#[doc(alias = "control-source-r")]
fn set_control_source_r<P: IsA<gst::ControlSource>>(&self, control_source_r: Option<&P>);
fn connect_property_control_source_a_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "control-source-a")]
fn connect_control_source_a_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_control_source_b_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "control-source-b")]
fn connect_control_source_b_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_control_source_g_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "control-source-g")]
fn connect_control_source_g_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_control_source_r_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "control-source-r")]
fn connect_control_source_r_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
@ -204,7 +208,8 @@ impl<O: IsA<ARGBControlBinding>> ARGBControlBindingExt for O {
}
}
fn connect_property_control_source_a_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "control-source-a")]
fn connect_control_source_a_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -234,7 +239,8 @@ impl<O: IsA<ARGBControlBinding>> ARGBControlBindingExt for O {
}
}
fn connect_property_control_source_b_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "control-source-b")]
fn connect_control_source_b_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -264,7 +270,8 @@ impl<O: IsA<ARGBControlBinding>> ARGBControlBindingExt for O {
}
}
fn connect_property_control_source_g_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "control-source-g")]
fn connect_control_source_g_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -294,7 +301,8 @@ impl<O: IsA<ARGBControlBinding>> ARGBControlBindingExt for O {
}
}
fn connect_property_control_source_r_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "control-source-r")]
fn connect_control_source_r_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {

View file

@ -63,16 +63,16 @@ unsafe impl Sync for DirectControlBinding {}
pub const NONE_DIRECT_CONTROL_BINDING: Option<&DirectControlBinding> = None;
pub trait DirectControlBindingExt: 'static {
#[doc(alias = "get_property_absolute")]
fn is_absolute(&self) -> bool;
#[doc(alias = "get_property_control_source")]
#[doc(alias = "control-source")]
fn control_source(&self) -> Option<gst::ControlSource>;
#[doc(alias = "set_property_control_source")]
#[doc(alias = "control-source")]
fn set_control_source<P: IsA<gst::ControlSource>>(&self, control_source: Option<&P>);
fn connect_property_control_source_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "control-source")]
fn connect_control_source_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
@ -118,7 +118,8 @@ impl<O: IsA<DirectControlBinding>> DirectControlBindingExt for O {
}
}
fn connect_property_control_source_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "control-source")]
fn connect_control_source_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {

View file

@ -46,16 +46,12 @@ unsafe impl Sync for InterpolationControlSource {}
pub const NONE_INTERPOLATION_CONTROL_SOURCE: Option<&InterpolationControlSource> = None;
pub trait InterpolationControlSourceExt: 'static {
#[doc(alias = "get_property_mode")]
fn mode(&self) -> InterpolationMode;
#[doc(alias = "set_property_mode")]
fn set_mode(&self, mode: InterpolationMode);
fn connect_property_mode_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
#[doc(alias = "mode")]
fn connect_mode_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
}
impl<O: IsA<InterpolationControlSource>> InterpolationControlSourceExt for O {
@ -84,10 +80,8 @@ impl<O: IsA<InterpolationControlSource>> InterpolationControlSourceExt for O {
}
}
fn connect_property_mode_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
#[doc(alias = "mode")]
fn connect_mode_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_mode_trampoline<P, F: Fn(&P) + Send + Sync + 'static>(
this: *mut ffi::GstInterpolationControlSource,
_param_spec: glib::ffi::gpointer,

View file

@ -44,57 +44,49 @@ unsafe impl Sync for LFOControlSource {}
pub const NONE_LFO_CONTROL_SOURCE: Option<&LFOControlSource> = None;
pub trait LFOControlSourceExt: 'static {
#[doc(alias = "get_property_amplitude")]
fn amplitude(&self) -> f64;
#[doc(alias = "set_property_amplitude")]
fn set_amplitude(&self, amplitude: f64);
#[doc(alias = "get_property_frequency")]
fn frequency(&self) -> f64;
#[doc(alias = "set_property_frequency")]
fn set_frequency(&self, frequency: f64);
#[doc(alias = "get_property_offset")]
fn offset(&self) -> f64;
#[doc(alias = "set_property_offset")]
fn set_offset(&self, offset: f64);
#[doc(alias = "get_property_timeshift")]
fn timeshift(&self) -> u64;
#[doc(alias = "set_property_timeshift")]
fn set_timeshift(&self, timeshift: u64);
#[doc(alias = "get_property_waveform")]
fn waveform(&self) -> LFOWaveform;
#[doc(alias = "set_property_waveform")]
fn set_waveform(&self, waveform: LFOWaveform);
fn connect_property_amplitude_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "amplitude")]
fn connect_amplitude_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_frequency_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "frequency")]
fn connect_frequency_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_offset_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "offset")]
fn connect_offset_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "timeshift")]
fn connect_timeshift_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_timeshift_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_waveform_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "waveform")]
fn connect_waveform_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
@ -221,7 +213,8 @@ impl<O: IsA<LFOControlSource>> LFOControlSourceExt for O {
}
}
fn connect_property_amplitude_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "amplitude")]
fn connect_amplitude_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -248,7 +241,8 @@ impl<O: IsA<LFOControlSource>> LFOControlSourceExt for O {
}
}
fn connect_property_frequency_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "frequency")]
fn connect_frequency_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -275,10 +269,8 @@ impl<O: IsA<LFOControlSource>> LFOControlSourceExt for O {
}
}
fn connect_property_offset_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
#[doc(alias = "offset")]
fn connect_offset_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_offset_trampoline<P, F: Fn(&P) + Send + Sync + 'static>(
this: *mut ffi::GstLFOControlSource,
_param_spec: glib::ffi::gpointer,
@ -302,7 +294,8 @@ impl<O: IsA<LFOControlSource>> LFOControlSourceExt for O {
}
}
fn connect_property_timeshift_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "timeshift")]
fn connect_timeshift_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -329,7 +322,8 @@ impl<O: IsA<LFOControlSource>> LFOControlSourceExt for O {
}
}
fn connect_property_waveform_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "waveform")]
fn connect_waveform_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {

View file

@ -30,9 +30,11 @@ pub trait TimedValueControlSourceExt: 'static {
//fn find_control_point_iter(&self, timestamp: gst::ClockTime) -> /*Ignored*/Option<glib::SequenceIter>;
//#[doc(alias = "gst_timed_value_control_source_get_all")]
//#[doc(alias = "get_all")]
//fn all(&self) -> /*Ignored*/Vec<gst::TimedValue>;
#[doc(alias = "gst_timed_value_control_source_get_count")]
#[doc(alias = "get_count")]
fn count(&self) -> i32;
#[doc(alias = "gst_timed_value_control_source_set")]
@ -47,16 +49,19 @@ pub trait TimedValueControlSourceExt: 'static {
#[doc(alias = "gst_timed_value_control_source_unset_all")]
fn unset_all(&self);
#[doc(alias = "value-added")]
fn connect_value_added<F: Fn(&Self, &ControlPoint) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
#[doc(alias = "value-changed")]
fn connect_value_changed<F: Fn(&Self, &ControlPoint) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
#[doc(alias = "value-removed")]
fn connect_value_removed<F: Fn(&Self, &ControlPoint) + Send + Sync + 'static>(
&self,
f: F,
@ -105,6 +110,7 @@ impl<O: IsA<TimedValueControlSource>> TimedValueControlSourceExt for O {
}
}
#[doc(alias = "value-added")]
fn connect_value_added<F: Fn(&Self, &ControlPoint) + Send + Sync + 'static>(
&self,
f: F,
@ -138,6 +144,7 @@ impl<O: IsA<TimedValueControlSource>> TimedValueControlSourceExt for O {
}
}
#[doc(alias = "value-changed")]
fn connect_value_changed<F: Fn(&Self, &ControlPoint) + Send + Sync + 'static>(
&self,
f: F,
@ -171,6 +178,7 @@ impl<O: IsA<TimedValueControlSource>> TimedValueControlSourceExt for O {
}
}
#[doc(alias = "value-removed")]
fn connect_value_removed<F: Fn(&Self, &ControlPoint) + Send + Sync + 'static>(
&self,
f: F,

View file

@ -44,13 +44,12 @@ unsafe impl Sync for TriggerControlSource {}
pub const NONE_TRIGGER_CONTROL_SOURCE: Option<&TriggerControlSource> = None;
pub trait TriggerControlSourceExt: 'static {
#[doc(alias = "get_property_tolerance")]
fn tolerance(&self) -> i64;
#[doc(alias = "set_property_tolerance")]
fn set_tolerance(&self, tolerance: i64);
fn connect_property_tolerance_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "tolerance")]
fn connect_tolerance_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
@ -81,7 +80,8 @@ impl<O: IsA<TriggerControlSource>> TriggerControlSourceExt for O {
}
}
fn connect_property_tolerance_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "tolerance")]
fn connect_tolerance_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -125,18 +125,23 @@ pub trait AssetExt: 'static {
fn extract(&self) -> Result<Extractable, glib::Error>;
#[doc(alias = "ges_asset_get_error")]
#[doc(alias = "get_error")]
fn error(&self) -> Option<glib::Error>;
#[doc(alias = "ges_asset_get_extractable_type")]
#[doc(alias = "get_extractable_type")]
fn extractable_type(&self) -> glib::types::Type;
#[doc(alias = "ges_asset_get_id")]
#[doc(alias = "get_id")]
fn id(&self) -> Option<glib::GString>;
#[doc(alias = "ges_asset_get_proxy")]
#[doc(alias = "get_proxy")]
fn proxy(&self) -> Option<Asset>;
#[doc(alias = "ges_asset_get_proxy_target")]
#[doc(alias = "get_proxy_target")]
fn proxy_target(&self) -> Option<Asset>;
#[doc(alias = "ges_asset_list_proxies")]
@ -148,10 +153,11 @@ pub trait AssetExt: 'static {
#[doc(alias = "ges_asset_unproxy")]
fn unproxy<P: IsA<Asset>>(&self, proxy: &P) -> Result<(), glib::error::BoolError>;
fn connect_property_proxy_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "proxy")]
fn connect_proxy_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_proxy_target_notify<F: Fn(&Self) + 'static>(&self, f: F)
-> SignalHandlerId;
#[doc(alias = "proxy-target")]
fn connect_proxy_target_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
}
impl<O: IsA<Asset>> AssetExt for O {
@ -227,7 +233,8 @@ impl<O: IsA<Asset>> AssetExt for O {
}
}
fn connect_property_proxy_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
#[doc(alias = "proxy")]
fn connect_proxy_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_proxy_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESAsset,
_param_spec: glib::ffi::gpointer,
@ -251,10 +258,8 @@ impl<O: IsA<Asset>> AssetExt for O {
}
}
fn connect_property_proxy_target_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId {
#[doc(alias = "proxy-target")]
fn connect_proxy_target_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_proxy_target_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESAsset,
_param_spec: glib::ffi::gpointer,

View file

@ -73,11 +73,13 @@ pub trait ClipExt: 'static {
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
#[doc(alias = "ges_clip_get_duration_limit")]
#[doc(alias = "get_duration_limit")]
fn duration_limit(&self) -> gst::ClockTime;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
#[doc(alias = "ges_clip_get_internal_time_from_timeline_time")]
#[doc(alias = "get_internal_time_from_timeline_time")]
fn internal_time_from_timeline_time<P: IsA<TrackElement>>(
&self,
child: &P,
@ -85,14 +87,17 @@ pub trait ClipExt: 'static {
) -> Result<gst::ClockTime, glib::Error>;
#[doc(alias = "ges_clip_get_layer")]
#[doc(alias = "get_layer")]
fn layer(&self) -> Option<Layer>;
#[doc(alias = "ges_clip_get_supported_formats")]
#[doc(alias = "get_supported_formats")]
fn supported_formats(&self) -> TrackType;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
#[doc(alias = "ges_clip_get_timeline_time_from_internal_time")]
#[doc(alias = "get_timeline_time_from_internal_time")]
fn timeline_time_from_internal_time<P: IsA<TrackElement>>(
&self,
child: &P,
@ -102,18 +107,22 @@ pub trait ClipExt: 'static {
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
#[doc(alias = "ges_clip_get_timeline_time_from_source_frame")]
#[doc(alias = "get_timeline_time_from_source_frame")]
fn timeline_time_from_source_frame(
&self,
frame_number: FrameNumber,
) -> Result<gst::ClockTime, glib::Error>;
#[doc(alias = "ges_clip_get_top_effect_index")]
#[doc(alias = "get_top_effect_index")]
fn top_effect_index<P: IsA<BaseEffect>>(&self, effect: &P) -> i32;
#[doc(alias = "ges_clip_get_top_effect_position")]
#[doc(alias = "get_top_effect_position")]
fn top_effect_position<P: IsA<BaseEffect>>(&self, effect: &P) -> i32;
#[doc(alias = "ges_clip_get_top_effects")]
#[doc(alias = "get_top_effects")]
fn top_effects(&self) -> Vec<TrackElement>;
#[doc(alias = "ges_clip_move_to_layer")]
@ -165,17 +174,14 @@ pub trait ClipExt: 'static {
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_property_duration_limit_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
#[doc(alias = "duration-limit")]
fn connect_duration_limit_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_layer_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "layer")]
fn connect_layer_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_supported_formats_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
#[doc(alias = "supported-formats")]
fn connect_supported_formats_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
}
impl<O: IsA<Clip>> ClipExt for O {
@ -521,10 +527,8 @@ impl<O: IsA<Clip>> ClipExt for O {
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_property_duration_limit_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId {
#[doc(alias = "duration-limit")]
fn connect_duration_limit_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_duration_limit_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESClip,
_param_spec: glib::ffi::gpointer,
@ -548,7 +552,8 @@ impl<O: IsA<Clip>> ClipExt for O {
}
}
fn connect_property_layer_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
#[doc(alias = "layer")]
fn connect_layer_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_layer_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESClip,
_param_spec: glib::ffi::gpointer,
@ -572,10 +577,8 @@ impl<O: IsA<Clip>> ClipExt for O {
}
}
fn connect_property_supported_formats_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId {
#[doc(alias = "supported-formats")]
fn connect_supported_formats_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_supported_formats_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESClip,
_param_spec: glib::ffi::gpointer,

View file

@ -51,6 +51,7 @@ pub trait GESContainerExt: 'static {
) -> Result<(), glib::error::BoolError>;
#[doc(alias = "ges_container_get_children")]
#[doc(alias = "get_children")]
fn children(&self, recursive: bool) -> Vec<TimelineElement>;
#[doc(alias = "ges_container_remove")]
@ -59,20 +60,22 @@ pub trait GESContainerExt: 'static {
#[doc(alias = "ges_container_ungroup")]
fn ungroup(&self, recursive: bool) -> Vec<Container>;
#[doc(alias = "get_property_height")]
fn height(&self) -> u32;
#[doc(alias = "child-added")]
fn connect_child_added<F: Fn(&Self, &TimelineElement) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
#[doc(alias = "child-removed")]
fn connect_child_removed<F: Fn(&Self, &TimelineElement) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_height_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "height")]
fn connect_height_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
}
impl<O: IsA<Container>> GESContainerExt for O {
@ -155,6 +158,7 @@ impl<O: IsA<Container>> GESContainerExt for O {
}
}
#[doc(alias = "child-added")]
fn connect_child_added<F: Fn(&Self, &TimelineElement) + 'static>(
&self,
f: F,
@ -185,6 +189,7 @@ impl<O: IsA<Container>> GESContainerExt for O {
}
}
#[doc(alias = "child-removed")]
fn connect_child_removed<F: Fn(&Self, &TimelineElement) + 'static>(
&self,
f: F,
@ -215,7 +220,8 @@ impl<O: IsA<Container>> GESContainerExt for O {
}
}
fn connect_property_height_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
#[doc(alias = "height")]
fn connect_height_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_height_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESContainer,
_param_spec: glib::ffi::gpointer,

View file

@ -33,7 +33,7 @@ impl Effect {
pub const NONE_EFFECT: Option<&Effect> = None;
pub trait EffectExt: 'static {
#[doc(alias = "get_property_bin_description")]
#[doc(alias = "bin-description")]
fn bin_description(&self) -> Option<glib::GString>;
}

View file

@ -19,9 +19,11 @@ pub const NONE_EXTRACTABLE: Option<&Extractable> = None;
pub trait ExtractableExt: 'static {
#[doc(alias = "ges_extractable_get_asset")]
#[doc(alias = "get_asset")]
fn asset(&self) -> Option<Asset>;
#[doc(alias = "ges_extractable_get_id")]
#[doc(alias = "get_id")]
fn id(&self) -> Option<glib::GString>;
#[doc(alias = "ges_extractable_set_asset")]

View file

@ -41,46 +41,44 @@ impl Default for Group {
pub const NONE_GROUP: Option<&Group> = None;
pub trait GroupExt: 'static {
#[doc(alias = "get_property_duration")]
fn duration(&self) -> u64;
#[doc(alias = "set_property_duration")]
fn set_duration(&self, duration: u64);
#[doc(alias = "get_property_in_point")]
#[doc(alias = "in-point")]
fn in_point(&self) -> u64;
#[doc(alias = "set_property_in_point")]
#[doc(alias = "in-point")]
fn set_in_point(&self, in_point: u64);
#[doc(alias = "get_property_max_duration")]
#[doc(alias = "max-duration")]
fn max_duration(&self) -> u64;
#[doc(alias = "set_property_max_duration")]
#[doc(alias = "max-duration")]
fn set_max_duration(&self, max_duration: u64);
#[doc(alias = "get_property_priority")]
fn priority(&self) -> u32;
#[doc(alias = "set_property_priority")]
fn set_priority(&self, priority: u32);
#[doc(alias = "get_property_start")]
fn start(&self) -> u64;
#[doc(alias = "set_property_start")]
fn set_start(&self, start: u64);
fn connect_property_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "duration")]
fn connect_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_in_point_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "in-point")]
fn connect_in_point_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_max_duration_notify<F: Fn(&Self) + 'static>(&self, f: F)
-> SignalHandlerId;
#[doc(alias = "max-duration")]
fn connect_max_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_priority_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "priority")]
fn connect_priority_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_start_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "start")]
fn connect_start_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
}
impl<O: IsA<Group>> GroupExt for O {
@ -204,7 +202,8 @@ impl<O: IsA<Group>> GroupExt for O {
}
}
fn connect_property_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
#[doc(alias = "duration")]
fn connect_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_duration_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESGroup,
_param_spec: glib::ffi::gpointer,
@ -228,7 +227,8 @@ impl<O: IsA<Group>> GroupExt for O {
}
}
fn connect_property_in_point_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
#[doc(alias = "in-point")]
fn connect_in_point_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_in_point_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESGroup,
_param_spec: glib::ffi::gpointer,
@ -252,10 +252,8 @@ impl<O: IsA<Group>> GroupExt for O {
}
}
fn connect_property_max_duration_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId {
#[doc(alias = "max-duration")]
fn connect_max_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_max_duration_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESGroup,
_param_spec: glib::ffi::gpointer,
@ -279,7 +277,8 @@ impl<O: IsA<Group>> GroupExt for O {
}
}
fn connect_property_priority_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
#[doc(alias = "priority")]
fn connect_priority_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_priority_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESGroup,
_param_spec: glib::ffi::gpointer,
@ -303,7 +302,8 @@ impl<O: IsA<Group>> GroupExt for O {
}
}
fn connect_property_start_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
#[doc(alias = "start")]
fn connect_start_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_start_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESGroup,
_param_spec: glib::ffi::gpointer,

View file

@ -80,24 +80,31 @@ pub trait LayerExt: 'static {
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
#[doc(alias = "ges_layer_get_active_for_track")]
#[doc(alias = "get_active_for_track")]
fn is_active_for_track<P: IsA<Track>>(&self, track: &P) -> bool;
#[doc(alias = "ges_layer_get_auto_transition")]
#[doc(alias = "get_auto_transition")]
fn is_auto_transition(&self) -> bool;
#[doc(alias = "ges_layer_get_clips")]
#[doc(alias = "get_clips")]
fn clips(&self) -> Vec<Clip>;
#[doc(alias = "ges_layer_get_clips_in_interval")]
#[doc(alias = "get_clips_in_interval")]
fn clips_in_interval(&self, start: gst::ClockTime, end: gst::ClockTime) -> Vec<Clip>;
#[doc(alias = "ges_layer_get_duration")]
#[doc(alias = "get_duration")]
fn duration(&self) -> gst::ClockTime;
#[doc(alias = "ges_layer_get_priority")]
#[doc(alias = "get_priority")]
fn priority(&self) -> u32;
#[doc(alias = "ges_layer_get_timeline")]
#[doc(alias = "get_timeline")]
fn timeline(&self) -> Option<Timeline>;
#[doc(alias = "ges_layer_is_empty")]
@ -123,19 +130,21 @@ pub trait LayerExt: 'static {
//#[cfg(any(feature = "v1_18", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
//#[doc(alias = "active-changed")]
//fn connect_active_changed<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "clip-added")]
fn connect_clip_added<F: Fn(&Self, &Clip) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "clip-removed")]
fn connect_clip_removed<F: Fn(&Self, &Clip) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_auto_transition_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
#[doc(alias = "auto-transition")]
fn connect_auto_transition_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[cfg_attr(feature = "v1_16", deprecated = "Since 1.16")]
fn connect_property_priority_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "priority")]
fn connect_priority_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
}
impl<O: IsA<Layer>> LayerExt for O {
@ -322,10 +331,12 @@ impl<O: IsA<Layer>> LayerExt for O {
//#[cfg(any(feature = "v1_18", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
//#[doc(alias = "active-changed")]
//fn connect_active_changed<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId {
// Empty ctype tracks: *.PtrArray TypeId { ns_id: 1, id: 17 }
//}
#[doc(alias = "clip-added")]
fn connect_clip_added<F: Fn(&Self, &Clip) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn clip_added_trampoline<P, F: Fn(&P, &Clip) + 'static>(
this: *mut ffi::GESLayer,
@ -353,6 +364,7 @@ impl<O: IsA<Layer>> LayerExt for O {
}
}
#[doc(alias = "clip-removed")]
fn connect_clip_removed<F: Fn(&Self, &Clip) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn clip_removed_trampoline<P, F: Fn(&P, &Clip) + 'static>(
this: *mut ffi::GESLayer,
@ -380,10 +392,8 @@ impl<O: IsA<Layer>> LayerExt for O {
}
}
fn connect_property_auto_transition_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId {
#[doc(alias = "auto-transition")]
fn connect_auto_transition_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_auto_transition_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESLayer,
_param_spec: glib::ffi::gpointer,
@ -407,7 +417,8 @@ impl<O: IsA<Layer>> LayerExt for O {
}
}
fn connect_property_priority_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
#[doc(alias = "priority")]
fn connect_priority_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_priority_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESLayer,
_param_spec: glib::ffi::gpointer,

View file

@ -42,12 +42,15 @@ pub const NONE_PIPELINE: Option<&Pipeline> = None;
pub trait GESPipelineExt: 'static {
#[doc(alias = "ges_pipeline_get_mode")]
#[doc(alias = "get_mode")]
fn mode(&self) -> PipelineFlags;
#[doc(alias = "ges_pipeline_get_thumbnail")]
#[doc(alias = "get_thumbnail")]
fn thumbnail(&self, caps: &gst::Caps) -> Option<gst::Sample>;
#[doc(alias = "ges_pipeline_get_thumbnail_rgb24")]
#[doc(alias = "get_thumbnail_rgb24")]
fn thumbnail_rgb24(&self, width: i32, height: i32) -> Option<gst::Sample>;
#[doc(alias = "ges_pipeline_preview_get_audio_sink")]
@ -84,46 +87,49 @@ pub trait GESPipelineExt: 'static {
#[doc(alias = "ges_pipeline_set_timeline")]
fn set_timeline<P: IsA<Timeline>>(&self, timeline: &P) -> Result<(), glib::error::BoolError>;
#[doc(alias = "get_property_audio_filter")]
#[doc(alias = "audio-filter")]
fn audio_filter(&self) -> Option<gst::Element>;
#[doc(alias = "set_property_audio_filter")]
#[doc(alias = "audio-filter")]
fn set_audio_filter<P: IsA<gst::Element>>(&self, audio_filter: Option<&P>);
#[doc(alias = "get_property_audio_sink")]
#[doc(alias = "audio-sink")]
fn audio_sink(&self) -> Option<gst::Element>;
#[doc(alias = "set_property_audio_sink")]
#[doc(alias = "audio-sink")]
fn set_audio_sink<P: IsA<gst::Element>>(&self, audio_sink: Option<&P>);
#[doc(alias = "get_property_timeline")]
fn timeline(&self) -> Option<Timeline>;
#[doc(alias = "get_property_video_filter")]
#[doc(alias = "video-filter")]
fn video_filter(&self) -> Option<gst::Element>;
#[doc(alias = "set_property_video_filter")]
#[doc(alias = "video-filter")]
fn set_video_filter<P: IsA<gst::Element>>(&self, video_filter: Option<&P>);
#[doc(alias = "get_property_video_sink")]
#[doc(alias = "video-sink")]
fn video_sink(&self) -> Option<gst::Element>;
#[doc(alias = "set_property_video_sink")]
#[doc(alias = "video-sink")]
fn set_video_sink<P: IsA<gst::Element>>(&self, video_sink: Option<&P>);
fn connect_property_audio_filter_notify<F: Fn(&Self) + 'static>(&self, f: F)
-> SignalHandlerId;
#[doc(alias = "audio-filter")]
fn connect_audio_filter_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_audio_sink_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "audio-sink")]
fn connect_audio_sink_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_mode_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "mode")]
fn connect_mode_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_timeline_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "timeline")]
fn connect_timeline_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_video_filter_notify<F: Fn(&Self) + 'static>(&self, f: F)
-> SignalHandlerId;
#[doc(alias = "video-filter")]
fn connect_video_filter_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_video_sink_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "video-sink")]
fn connect_video_sink_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
}
impl<O: IsA<Pipeline>> GESPipelineExt for O {
@ -357,10 +363,8 @@ impl<O: IsA<Pipeline>> GESPipelineExt for O {
}
}
fn connect_property_audio_filter_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId {
#[doc(alias = "audio-filter")]
fn connect_audio_filter_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_audio_filter_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESPipeline,
_param_spec: glib::ffi::gpointer,
@ -384,7 +388,8 @@ impl<O: IsA<Pipeline>> GESPipelineExt for O {
}
}
fn connect_property_audio_sink_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
#[doc(alias = "audio-sink")]
fn connect_audio_sink_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_audio_sink_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESPipeline,
_param_spec: glib::ffi::gpointer,
@ -408,7 +413,8 @@ impl<O: IsA<Pipeline>> GESPipelineExt for O {
}
}
fn connect_property_mode_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
#[doc(alias = "mode")]
fn connect_mode_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_mode_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESPipeline,
_param_spec: glib::ffi::gpointer,
@ -432,7 +438,8 @@ impl<O: IsA<Pipeline>> GESPipelineExt for O {
}
}
fn connect_property_timeline_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
#[doc(alias = "timeline")]
fn connect_timeline_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_timeline_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESPipeline,
_param_spec: glib::ffi::gpointer,
@ -456,10 +463,8 @@ impl<O: IsA<Pipeline>> GESPipelineExt for O {
}
}
fn connect_property_video_filter_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId {
#[doc(alias = "video-filter")]
fn connect_video_filter_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_video_filter_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESPipeline,
_param_spec: glib::ffi::gpointer,
@ -483,7 +488,8 @@ impl<O: IsA<Pipeline>> GESPipelineExt for O {
}
}
fn connect_property_video_sink_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
#[doc(alias = "video-sink")]
fn connect_video_sink_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_video_sink_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESPipeline,
_param_spec: glib::ffi::gpointer,

View file

@ -58,12 +58,15 @@ pub trait ProjectExt: 'static {
) -> Result<Option<Asset>, glib::Error>;
#[doc(alias = "ges_project_get_asset")]
#[doc(alias = "get_asset")]
fn asset(&self, id: &str, extractable_type: glib::types::Type) -> Option<Asset>;
#[doc(alias = "ges_project_get_loading_assets")]
#[doc(alias = "get_loading_assets")]
fn loading_assets(&self) -> Vec<Asset>;
#[doc(alias = "ges_project_get_uri")]
#[doc(alias = "get_uri")]
fn uri(&self) -> Option<glib::GString>;
#[doc(alias = "ges_project_list_assets")]
@ -87,30 +90,38 @@ pub trait ProjectExt: 'static {
overwrite: bool,
) -> Result<(), glib::Error>;
#[doc(alias = "asset-added")]
fn connect_asset_added<F: Fn(&Self, &Asset) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "asset-loading")]
fn connect_asset_loading<F: Fn(&Self, &Asset) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "asset-removed")]
fn connect_asset_removed<F: Fn(&Self, &Asset) + 'static>(&self, f: F) -> SignalHandlerId;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
#[doc(alias = "error-loading")]
fn connect_error_loading<F: Fn(&Self, &Timeline, &glib::Error) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
#[doc(alias = "error-loading-asset")]
fn connect_error_loading_asset<F: Fn(&Self, &glib::Error, &str, glib::types::Type) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
#[doc(alias = "loaded")]
fn connect_loaded<F: Fn(&Self, &Timeline) + 'static>(&self, f: F) -> SignalHandlerId;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
#[doc(alias = "loading")]
fn connect_loading<F: Fn(&Self, &Timeline) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "missing-uri")]
fn connect_missing_uri<F: Fn(&Self, &glib::Error, &Asset) -> Option<glib::GString> + 'static>(
&self,
f: F,
@ -271,6 +282,7 @@ impl<O: IsA<Project>> ProjectExt for O {
}
}
#[doc(alias = "asset-added")]
fn connect_asset_added<F: Fn(&Self, &Asset) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn asset_added_trampoline<P, F: Fn(&P, &Asset) + 'static>(
this: *mut ffi::GESProject,
@ -298,6 +310,7 @@ impl<O: IsA<Project>> ProjectExt for O {
}
}
#[doc(alias = "asset-loading")]
fn connect_asset_loading<F: Fn(&Self, &Asset) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn asset_loading_trampoline<P, F: Fn(&P, &Asset) + 'static>(
this: *mut ffi::GESProject,
@ -325,6 +338,7 @@ impl<O: IsA<Project>> ProjectExt for O {
}
}
#[doc(alias = "asset-removed")]
fn connect_asset_removed<F: Fn(&Self, &Asset) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn asset_removed_trampoline<P, F: Fn(&P, &Asset) + 'static>(
this: *mut ffi::GESProject,
@ -354,6 +368,7 @@ impl<O: IsA<Project>> ProjectExt for O {
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
#[doc(alias = "error-loading")]
fn connect_error_loading<F: Fn(&Self, &Timeline, &glib::Error) + 'static>(
&self,
f: F,
@ -389,6 +404,7 @@ impl<O: IsA<Project>> ProjectExt for O {
}
}
#[doc(alias = "error-loading-asset")]
fn connect_error_loading_asset<
F: Fn(&Self, &glib::Error, &str, glib::types::Type) + 'static,
>(
@ -428,6 +444,7 @@ impl<O: IsA<Project>> ProjectExt for O {
}
}
#[doc(alias = "loaded")]
fn connect_loaded<F: Fn(&Self, &Timeline) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn loaded_trampoline<P, F: Fn(&P, &Timeline) + 'static>(
this: *mut ffi::GESProject,
@ -457,6 +474,7 @@ impl<O: IsA<Project>> ProjectExt for O {
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
#[doc(alias = "loading")]
fn connect_loading<F: Fn(&Self, &Timeline) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn loading_trampoline<P, F: Fn(&P, &Timeline) + 'static>(
this: *mut ffi::GESProject,
@ -484,6 +502,7 @@ impl<O: IsA<Project>> ProjectExt for O {
}
}
#[doc(alias = "missing-uri")]
fn connect_missing_uri<
F: Fn(&Self, &glib::Error, &Asset) -> Option<glib::GString> + 'static,
>(

View file

@ -47,6 +47,7 @@ impl Timeline {
}
#[doc(alias = "ges_timeline_new_from_uri")]
#[doc(alias = "new_from_uri")]
pub fn from_uri(uri: &str) -> Result<Option<Timeline>, glib::Error> {
assert_initialized_main_thread!();
unsafe {
@ -87,43 +88,55 @@ pub trait TimelineExt: 'static {
fn commit_sync(&self) -> bool;
#[doc(alias = "ges_timeline_get_auto_transition")]
#[doc(alias = "get_auto_transition")]
fn is_auto_transition(&self) -> bool;
#[doc(alias = "ges_timeline_get_duration")]
#[doc(alias = "get_duration")]
fn duration(&self) -> gst::ClockTime;
#[doc(alias = "ges_timeline_get_element")]
#[doc(alias = "get_element")]
fn element(&self, name: &str) -> Option<TimelineElement>;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
#[doc(alias = "ges_timeline_get_frame_at")]
#[doc(alias = "get_frame_at")]
fn frame_at(&self, timestamp: gst::ClockTime) -> FrameNumber;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
#[doc(alias = "ges_timeline_get_frame_time")]
#[doc(alias = "get_frame_time")]
fn frame_time(&self, frame_number: FrameNumber) -> gst::ClockTime;
#[doc(alias = "ges_timeline_get_groups")]
#[doc(alias = "get_groups")]
fn groups(&self) -> Vec<Group>;
#[doc(alias = "ges_timeline_get_layer")]
#[doc(alias = "get_layer")]
fn layer(&self, priority: u32) -> Option<Layer>;
#[doc(alias = "ges_timeline_get_layers")]
#[doc(alias = "get_layers")]
fn layers(&self) -> Vec<Layer>;
#[doc(alias = "ges_timeline_get_pad_for_track")]
#[doc(alias = "get_pad_for_track")]
fn pad_for_track<P: IsA<Track>>(&self, track: &P) -> Option<gst::Pad>;
#[doc(alias = "ges_timeline_get_snapping_distance")]
#[doc(alias = "get_snapping_distance")]
fn snapping_distance(&self) -> gst::ClockTime;
#[doc(alias = "ges_timeline_get_track_for_pad")]
#[doc(alias = "get_track_for_pad")]
fn track_for_pad<P: IsA<gst::Pad>>(&self, pad: &P) -> Option<Track>;
#[doc(alias = "ges_timeline_get_tracks")]
#[doc(alias = "get_tracks")]
fn tracks(&self) -> Vec<Track>;
#[doc(alias = "ges_timeline_is_empty")]
@ -169,50 +182,58 @@ pub trait TimelineExt: 'static {
#[doc(alias = "ges_timeline_set_snapping_distance")]
fn set_snapping_distance(&self, snapping_distance: gst::ClockTime);
#[doc(alias = "commited")]
fn connect_commited<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "group-added")]
fn connect_group_added<F: Fn(&Self, &Group) + 'static>(&self, f: F) -> SignalHandlerId;
//#[doc(alias = "group-removed")]
//fn connect_group_removed<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "layer-added")]
fn connect_layer_added<F: Fn(&Self, &Layer) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "layer-removed")]
fn connect_layer_removed<F: Fn(&Self, &Layer) + 'static>(&self, f: F) -> SignalHandlerId;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
#[doc(alias = "select-element-track")]
fn connect_select_element_track<F: Fn(&Self, &Clip, &TrackElement) -> Track + 'static>(
&self,
f: F,
) -> SignalHandlerId;
//#[doc(alias = "select-tracks-for-object")]
//fn connect_select_tracks_for_object<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "snapping-ended")]
fn connect_snapping_ended<F: Fn(&Self, &TrackElement, &TrackElement, u64) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
#[doc(alias = "snapping-started")]
fn connect_snapping_started<F: Fn(&Self, &TrackElement, &TrackElement, u64) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
#[doc(alias = "track-added")]
fn connect_track_added<F: Fn(&Self, &Track) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "track-removed")]
fn connect_track_removed<F: Fn(&Self, &Track) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_auto_transition_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
#[doc(alias = "auto-transition")]
fn connect_auto_transition_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "duration")]
fn connect_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_snapping_distance_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
#[doc(alias = "snapping-distance")]
fn connect_snapping_distance_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
}
impl<O: IsA<Timeline>> TimelineExt for O {
@ -483,6 +504,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
}
}
#[doc(alias = "commited")]
fn connect_commited<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn commited_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESTimeline,
@ -506,6 +528,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
}
}
#[doc(alias = "group-added")]
fn connect_group_added<F: Fn(&Self, &Group) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn group_added_trampoline<P, F: Fn(&P, &Group) + 'static>(
this: *mut ffi::GESTimeline,
@ -533,10 +556,12 @@ impl<O: IsA<Timeline>> TimelineExt for O {
}
}
//#[doc(alias = "group-removed")]
//fn connect_group_removed<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId {
// Empty ctype children: *.PtrArray TypeId { ns_id: 1, id: 54 }
//}
#[doc(alias = "layer-added")]
fn connect_layer_added<F: Fn(&Self, &Layer) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn layer_added_trampoline<P, F: Fn(&P, &Layer) + 'static>(
this: *mut ffi::GESTimeline,
@ -564,6 +589,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
}
}
#[doc(alias = "layer-removed")]
fn connect_layer_removed<F: Fn(&Self, &Layer) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn layer_removed_trampoline<P, F: Fn(&P, &Layer) + 'static>(
this: *mut ffi::GESTimeline,
@ -593,6 +619,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
#[doc(alias = "select-element-track")]
fn connect_select_element_track<F: Fn(&Self, &Clip, &TrackElement) -> Track + 'static>(
&self,
f: F,
@ -630,10 +657,12 @@ impl<O: IsA<Timeline>> TimelineExt for O {
}
}
//#[doc(alias = "select-tracks-for-object")]
//fn connect_select_tracks_for_object<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId {
// Empty ctype return value *.PtrArray TypeId { ns_id: 1, id: 17 }
//}
#[doc(alias = "snapping-ended")]
fn connect_snapping_ended<F: Fn(&Self, &TrackElement, &TrackElement, u64) + 'static>(
&self,
f: F,
@ -671,6 +700,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
}
}
#[doc(alias = "snapping-started")]
fn connect_snapping_started<F: Fn(&Self, &TrackElement, &TrackElement, u64) + 'static>(
&self,
f: F,
@ -708,6 +738,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
}
}
#[doc(alias = "track-added")]
fn connect_track_added<F: Fn(&Self, &Track) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn track_added_trampoline<P, F: Fn(&P, &Track) + 'static>(
this: *mut ffi::GESTimeline,
@ -735,6 +766,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
}
}
#[doc(alias = "track-removed")]
fn connect_track_removed<F: Fn(&Self, &Track) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn track_removed_trampoline<P, F: Fn(&P, &Track) + 'static>(
this: *mut ffi::GESTimeline,
@ -762,10 +794,8 @@ impl<O: IsA<Timeline>> TimelineExt for O {
}
}
fn connect_property_auto_transition_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId {
#[doc(alias = "auto-transition")]
fn connect_auto_transition_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_auto_transition_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESTimeline,
_param_spec: glib::ffi::gpointer,
@ -789,7 +819,8 @@ impl<O: IsA<Timeline>> TimelineExt for O {
}
}
fn connect_property_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
#[doc(alias = "duration")]
fn connect_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_duration_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESTimeline,
_param_spec: glib::ffi::gpointer,
@ -813,10 +844,8 @@ impl<O: IsA<Timeline>> TimelineExt for O {
}
}
fn connect_property_snapping_distance_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId {
#[doc(alias = "snapping-distance")]
fn connect_snapping_distance_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_snapping_distance_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESTimeline,
_param_spec: glib::ffi::gpointer,

View file

@ -72,55 +72,71 @@ pub trait TimelineElementExt: 'static {
) -> Result<(), glib::Error>;
//#[doc(alias = "ges_timeline_element_get_child_properties")]
//#[doc(alias = "get_child_properties")]
//fn child_properties(&self, first_property_name: &str, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs);
//#[doc(alias = "ges_timeline_element_get_child_property")]
//#[doc(alias = "get_child_property")]
//fn child_property(&self, property_name: &str, value: /*Ignored*/glib::Value) -> bool;
//#[doc(alias = "ges_timeline_element_get_child_property_by_pspec")]
//#[doc(alias = "get_child_property_by_pspec")]
//fn child_property_by_pspec(&self, pspec: /*Ignored*/&glib::ParamSpec, value: /*Ignored*/glib::Value);
//#[doc(alias = "ges_timeline_element_get_child_property_valist")]
//#[doc(alias = "get_child_property_valist")]
//fn child_property_valist(&self, first_property_name: &str, var_args: /*Unknown conversion*//*Unimplemented*/Unsupported);
#[doc(alias = "ges_timeline_element_get_duration")]
#[doc(alias = "get_duration")]
fn duration(&self) -> gst::ClockTime;
#[doc(alias = "ges_timeline_element_get_inpoint")]
#[doc(alias = "get_inpoint")]
fn inpoint(&self) -> gst::ClockTime;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
#[doc(alias = "ges_timeline_element_get_layer_priority")]
#[doc(alias = "get_layer_priority")]
fn layer_priority(&self) -> u32;
#[doc(alias = "ges_timeline_element_get_max_duration")]
#[doc(alias = "get_max_duration")]
fn max_duration(&self) -> gst::ClockTime;
#[doc(alias = "ges_timeline_element_get_name")]
#[doc(alias = "get_name")]
fn name(&self) -> Option<glib::GString>;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
#[doc(alias = "ges_timeline_element_get_natural_framerate")]
#[doc(alias = "get_natural_framerate")]
fn natural_framerate(&self) -> Option<(i32, i32)>;
#[doc(alias = "ges_timeline_element_get_parent")]
#[doc(alias = "get_parent")]
fn parent(&self) -> Option<TimelineElement>;
#[doc(alias = "ges_timeline_element_get_priority")]
#[doc(alias = "get_priority")]
fn priority(&self) -> u32;
#[doc(alias = "ges_timeline_element_get_start")]
#[doc(alias = "get_start")]
fn start(&self) -> gst::ClockTime;
#[doc(alias = "ges_timeline_element_get_timeline")]
#[doc(alias = "get_timeline")]
fn timeline(&self) -> Option<Timeline>;
#[doc(alias = "ges_timeline_element_get_toplevel_parent")]
#[doc(alias = "get_toplevel_parent")]
fn toplevel_parent(&self) -> Option<TimelineElement>;
#[doc(alias = "ges_timeline_element_get_track_types")]
#[doc(alias = "get_track_types")]
fn track_types(&self) -> TrackType;
//#[doc(alias = "ges_timeline_element_list_children_properties")]
@ -193,47 +209,56 @@ pub trait TimelineElementExt: 'static {
#[doc(alias = "ges_timeline_element_trim")]
fn trim(&self, start: gst::ClockTime) -> Result<(), glib::error::BoolError>;
#[doc(alias = "get_property_in_point")]
#[doc(alias = "in-point")]
fn in_point(&self) -> u64;
#[doc(alias = "set_property_in_point")]
#[doc(alias = "in-point")]
fn set_in_point(&self, in_point: u64);
#[doc(alias = "get_property_serialize")]
fn is_serialize(&self) -> bool;
#[doc(alias = "set_property_serialize")]
fn set_serialize(&self, serialize: bool);
//#[cfg(any(feature = "v1_18", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
//#[doc(alias = "child-property-added")]
//fn connect_child_property_added<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId;
//#[cfg(any(feature = "v1_18", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
//#[doc(alias = "child-property-removed")]
//fn connect_child_property_removed<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId;
//#[doc(alias = "deep-notify")]
//fn connect_deep_notify<Unsupported or ignored types>(&self, detail: Option<&str>, f: F) -> SignalHandlerId;
fn connect_property_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "duration")]
fn connect_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_in_point_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "in-point")]
fn connect_in_point_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_max_duration_notify<F: Fn(&Self) + 'static>(&self, f: F)
-> SignalHandlerId;
#[doc(alias = "max-duration")]
fn connect_max_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "name")]
fn connect_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_parent_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "parent")]
fn connect_parent_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[cfg_attr(feature = "v1_10", deprecated = "Since 1.10")]
fn connect_property_priority_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "priority")]
fn connect_priority_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_serialize_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "serialize")]
fn connect_serialize_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_start_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "start")]
fn connect_start_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_timeline_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "timeline")]
fn connect_timeline_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
}
impl<O: IsA<TimelineElement>> TimelineElementExt for O {
@ -648,21 +673,25 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
//#[cfg(any(feature = "v1_18", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
//#[doc(alias = "child-property-added")]
//fn connect_child_property_added<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId {
// Ignored prop: GObject.ParamSpec
//}
//#[cfg(any(feature = "v1_18", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
//#[doc(alias = "child-property-removed")]
//fn connect_child_property_removed<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId {
// Ignored prop: GObject.ParamSpec
//}
//#[doc(alias = "deep-notify")]
//fn connect_deep_notify<Unsupported or ignored types>(&self, detail: Option<&str>, f: F) -> SignalHandlerId {
// Ignored prop: GObject.ParamSpec
//}
fn connect_property_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
#[doc(alias = "duration")]
fn connect_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_duration_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESTimelineElement,
_param_spec: glib::ffi::gpointer,
@ -686,7 +715,8 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
}
}
fn connect_property_in_point_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
#[doc(alias = "in-point")]
fn connect_in_point_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_in_point_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESTimelineElement,
_param_spec: glib::ffi::gpointer,
@ -710,10 +740,8 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
}
}
fn connect_property_max_duration_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId {
#[doc(alias = "max-duration")]
fn connect_max_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_max_duration_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESTimelineElement,
_param_spec: glib::ffi::gpointer,
@ -737,7 +765,8 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
}
}
fn connect_property_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
#[doc(alias = "name")]
fn connect_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_name_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESTimelineElement,
_param_spec: glib::ffi::gpointer,
@ -761,7 +790,8 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
}
}
fn connect_property_parent_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
#[doc(alias = "parent")]
fn connect_parent_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_parent_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESTimelineElement,
_param_spec: glib::ffi::gpointer,
@ -785,7 +815,8 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
}
}
fn connect_property_priority_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
#[doc(alias = "priority")]
fn connect_priority_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_priority_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESTimelineElement,
_param_spec: glib::ffi::gpointer,
@ -809,7 +840,8 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
}
}
fn connect_property_serialize_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
#[doc(alias = "serialize")]
fn connect_serialize_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_serialize_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESTimelineElement,
_param_spec: glib::ffi::gpointer,
@ -833,7 +865,8 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
}
}
fn connect_property_start_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
#[doc(alias = "start")]
fn connect_start_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_start_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESTimelineElement,
_param_spec: glib::ffi::gpointer,
@ -857,7 +890,8 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
}
}
fn connect_property_timeline_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
#[doc(alias = "timeline")]
fn connect_timeline_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_timeline_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESTimelineElement,
_param_spec: glib::ffi::gpointer,

View file

@ -52,20 +52,25 @@ pub trait GESTrackExt: 'static {
fn commit(&self) -> bool;
#[doc(alias = "ges_track_get_caps")]
#[doc(alias = "get_caps")]
fn caps(&self) -> Option<gst::Caps>;
#[doc(alias = "ges_track_get_elements")]
#[doc(alias = "get_elements")]
fn elements(&self) -> Vec<TrackElement>;
#[doc(alias = "ges_track_get_mixing")]
#[doc(alias = "get_mixing")]
fn is_mixing(&self) -> bool;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
#[doc(alias = "ges_track_get_restriction_caps")]
#[doc(alias = "get_restriction_caps")]
fn restriction_caps(&self) -> Option<gst::Caps>;
#[doc(alias = "ges_track_get_timeline")]
#[doc(alias = "get_timeline")]
fn timeline(&self) -> Option<Timeline>;
#[doc(alias = "ges_track_remove_element")]
@ -94,48 +99,50 @@ pub trait GESTrackExt: 'static {
#[doc(alias = "ges_track_update_restriction_caps")]
fn update_restriction_caps(&self, caps: &gst::Caps);
#[doc(alias = "get_property_duration")]
fn duration(&self) -> u64;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
#[doc(alias = "get_property_id")]
fn id(&self) -> Option<glib::GString>;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
#[doc(alias = "set_property_id")]
fn set_id(&self, id: Option<&str>);
#[doc(alias = "restriction-caps")]
fn get_property_restriction_caps(&self) -> Option<gst::Caps>;
#[doc(alias = "get_property_track_type")]
#[doc(alias = "track-type")]
fn track_type(&self) -> TrackType;
#[doc(alias = "commited")]
fn connect_commited<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "track-element-added")]
fn connect_track_element_added<F: Fn(&Self, &TrackElement) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
#[doc(alias = "track-element-removed")]
fn connect_track_element_removed<F: Fn(&Self, &TrackElement) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "duration")]
fn connect_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_property_id_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "id")]
fn connect_id_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_mixing_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "mixing")]
fn connect_mixing_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_restriction_caps_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
#[doc(alias = "restriction-caps")]
fn connect_restriction_caps_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
}
impl<O: IsA<Track>> GESTrackExt for O {
@ -341,6 +348,7 @@ impl<O: IsA<Track>> GESTrackExt for O {
}
}
#[doc(alias = "commited")]
fn connect_commited<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn commited_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESTrack,
@ -364,6 +372,7 @@ impl<O: IsA<Track>> GESTrackExt for O {
}
}
#[doc(alias = "track-element-added")]
fn connect_track_element_added<F: Fn(&Self, &TrackElement) + 'static>(
&self,
f: F,
@ -394,6 +403,7 @@ impl<O: IsA<Track>> GESTrackExt for O {
}
}
#[doc(alias = "track-element-removed")]
fn connect_track_element_removed<F: Fn(&Self, &TrackElement) + 'static>(
&self,
f: F,
@ -427,7 +437,8 @@ impl<O: IsA<Track>> GESTrackExt for O {
}
}
fn connect_property_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
#[doc(alias = "duration")]
fn connect_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_duration_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESTrack,
_param_spec: glib::ffi::gpointer,
@ -453,7 +464,8 @@ impl<O: IsA<Track>> GESTrackExt for O {
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_property_id_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
#[doc(alias = "id")]
fn connect_id_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_id_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESTrack,
_param_spec: glib::ffi::gpointer,
@ -477,7 +489,8 @@ impl<O: IsA<Track>> GESTrackExt for O {
}
}
fn connect_property_mixing_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
#[doc(alias = "mixing")]
fn connect_mixing_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_mixing_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESTrack,
_param_spec: glib::ffi::gpointer,
@ -501,10 +514,8 @@ impl<O: IsA<Track>> GESTrackExt for O {
}
}
fn connect_property_restriction_caps_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId {
#[doc(alias = "restriction-caps")]
fn connect_restriction_caps_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_restriction_caps_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESTrack,
_param_spec: glib::ffi::gpointer,

View file

@ -54,29 +54,37 @@ pub trait TrackElementExt: 'static {
) -> Result<(), glib::error::BoolError>;
//#[doc(alias = "ges_track_element_get_all_control_bindings")]
//#[doc(alias = "get_all_control_bindings")]
//fn all_control_bindings(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 6, id: 83 };
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
#[doc(alias = "ges_track_element_get_auto_clamp_control_sources")]
#[doc(alias = "get_auto_clamp_control_sources")]
fn is_auto_clamp_control_sources(&self) -> bool;
//#[doc(alias = "ges_track_element_get_control_binding")]
//#[doc(alias = "get_control_binding")]
//fn control_binding(&self, property_name: &str) -> /*Ignored*/Option<gst::ControlBinding>;
#[doc(alias = "ges_track_element_get_element")]
#[doc(alias = "get_element")]
fn element(&self) -> Option<gst::Element>;
#[doc(alias = "ges_track_element_get_gnlobject")]
#[doc(alias = "get_gnlobject")]
fn gnlobject(&self) -> Option<gst::Element>;
#[doc(alias = "ges_track_element_get_nleobject")]
#[doc(alias = "get_nleobject")]
fn nleobject(&self) -> Option<gst::Element>;
#[doc(alias = "ges_track_element_get_track")]
#[doc(alias = "get_track")]
fn track(&self) -> Option<Track>;
#[doc(alias = "ges_track_element_get_track_type")]
#[doc(alias = "get_track_type")]
fn track_type(&self) -> TrackType;
#[cfg(any(feature = "v1_18", feature = "dox"))]
@ -117,29 +125,33 @@ pub trait TrackElementExt: 'static {
#[doc(alias = "ges_track_element_set_track_type")]
fn set_track_type(&self, type_: TrackType);
//#[doc(alias = "control-binding-added")]
//fn connect_control_binding_added<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId;
//#[doc(alias = "control-binding-removed")]
//fn connect_control_binding_removed<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId;
fn connect_property_active_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "active")]
fn connect_active_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_property_auto_clamp_control_sources_notify<F: Fn(&Self) + 'static>(
#[doc(alias = "auto-clamp-control-sources")]
fn connect_auto_clamp_control_sources_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_property_has_internal_source_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
#[doc(alias = "has-internal-source")]
fn connect_has_internal_source_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_track_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "track")]
fn connect_track_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_track_type_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "track-type")]
fn connect_track_type_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
}
impl<O: IsA<TrackElement>> TrackElementExt for O {
@ -339,15 +351,18 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
}
}
//#[doc(alias = "control-binding-added")]
//fn connect_control_binding_added<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId {
// Ignored control_binding: Gst.ControlBinding
//}
//#[doc(alias = "control-binding-removed")]
//fn connect_control_binding_removed<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId {
// Ignored control_binding: Gst.ControlBinding
//}
fn connect_property_active_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
#[doc(alias = "active")]
fn connect_active_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_active_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESTrackElement,
_param_spec: glib::ffi::gpointer,
@ -373,7 +388,8 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_property_auto_clamp_control_sources_notify<F: Fn(&Self) + 'static>(
#[doc(alias = "auto-clamp-control-sources")]
fn connect_auto_clamp_control_sources_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -402,10 +418,8 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_property_has_internal_source_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId {
#[doc(alias = "has-internal-source")]
fn connect_has_internal_source_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_has_internal_source_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESTrackElement,
_param_spec: glib::ffi::gpointer,
@ -429,7 +443,8 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
}
}
fn connect_property_track_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
#[doc(alias = "track")]
fn connect_track_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_track_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESTrackElement,
_param_spec: glib::ffi::gpointer,
@ -453,7 +468,8 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
}
}
fn connect_property_track_type_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
#[doc(alias = "track-type")]
fn connect_track_type_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_track_type_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESTrackElement,
_param_spec: glib::ffi::gpointer,

View file

@ -36,6 +36,7 @@ impl TransitionClip {
}
#[doc(alias = "ges_transition_clip_new_for_nick")]
#[doc(alias = "new_for_nick")]
pub fn for_nick(nick: &str) -> Option<TransitionClip> {
assert_initialized_main_thread!();
unsafe { from_glib_none(ffi::ges_transition_clip_new_for_nick(nick.to_glib_none().0)) }
@ -45,13 +46,12 @@ impl TransitionClip {
pub const NONE_TRANSITION_CLIP: Option<&TransitionClip> = None;
pub trait TransitionClipExt: 'static {
#[doc(alias = "get_property_vtype")]
fn vtype(&self) -> VideoStandardTransitionType;
#[doc(alias = "set_property_vtype")]
fn set_vtype(&self, vtype: VideoStandardTransitionType);
fn connect_property_vtype_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "vtype")]
fn connect_vtype_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
}
impl<O: IsA<TransitionClip>> TransitionClipExt for O {
@ -80,7 +80,8 @@ impl<O: IsA<TransitionClip>> TransitionClipExt for O {
}
}
fn connect_property_vtype_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
#[doc(alias = "vtype")]
fn connect_vtype_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_vtype_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESTransitionClip,
_param_spec: glib::ffi::gpointer,

View file

@ -38,6 +38,7 @@ pub const NONE_URI_CLIP: Option<&UriClip> = None;
pub trait UriClipExt: 'static {
#[doc(alias = "ges_uri_clip_get_uri")]
#[doc(alias = "get_uri")]
fn uri(&self) -> Option<glib::GString>;
#[doc(alias = "ges_uri_clip_is_image")]
@ -52,14 +53,14 @@ pub trait UriClipExt: 'static {
#[doc(alias = "ges_uri_clip_set_mute")]
fn set_mute(&self, mute: bool);
fn connect_property_is_image_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "is-image")]
fn connect_is_image_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_mute_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "mute")]
fn connect_mute_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_supported_formats_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
#[doc(alias = "supported-formats")]
fn connect_supported_formats_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
}
impl<O: IsA<UriClip>> UriClipExt for O {
@ -87,7 +88,8 @@ impl<O: IsA<UriClip>> UriClipExt for O {
}
}
fn connect_property_is_image_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
#[doc(alias = "is-image")]
fn connect_is_image_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_is_image_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESUriClip,
_param_spec: glib::ffi::gpointer,
@ -111,7 +113,8 @@ impl<O: IsA<UriClip>> UriClipExt for O {
}
}
fn connect_property_mute_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
#[doc(alias = "mute")]
fn connect_mute_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_mute_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESUriClip,
_param_spec: glib::ffi::gpointer,
@ -135,10 +138,8 @@ impl<O: IsA<UriClip>> UriClipExt for O {
}
}
fn connect_property_supported_formats_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId {
#[doc(alias = "supported-formats")]
fn connect_supported_formats_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_supported_formats_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESUriClip,
_param_spec: glib::ffi::gpointer,

View file

@ -58,17 +58,21 @@ pub const NONE_URI_CLIP_ASSET: Option<&UriClipAsset> = None;
pub trait UriClipAssetExt: 'static {
#[doc(alias = "ges_uri_clip_asset_get_duration")]
#[doc(alias = "get_duration")]
fn duration(&self) -> gst::ClockTime;
#[doc(alias = "ges_uri_clip_asset_get_info")]
#[doc(alias = "get_info")]
fn info(&self) -> Option<gst_pbutils::DiscovererInfo>;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
#[doc(alias = "ges_uri_clip_asset_get_max_duration")]
#[doc(alias = "get_max_duration")]
fn max_duration(&self) -> gst::ClockTime;
#[doc(alias = "ges_uri_clip_asset_get_stream_assets")]
#[doc(alias = "get_stream_assets")]
fn stream_assets(&self) -> Vec<UriSourceAsset>;
#[cfg(any(feature = "v1_18", feature = "dox"))]
@ -76,22 +80,20 @@ pub trait UriClipAssetExt: 'static {
#[doc(alias = "ges_uri_clip_asset_is_image")]
fn is_image(&self) -> bool;
#[doc(alias = "set_property_duration")]
fn set_duration(&self, duration: u64);
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
#[doc(alias = "get_property_is_nested_timeline")]
#[doc(alias = "is-nested-timeline")]
fn is_nested_timeline(&self) -> bool;
fn connect_property_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "duration")]
fn connect_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_property_is_nested_timeline_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
#[doc(alias = "is-nested-timeline")]
fn connect_is_nested_timeline_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
}
impl<O: IsA<UriClipAsset>> UriClipAssetExt for O {
@ -165,7 +167,8 @@ impl<O: IsA<UriClipAsset>> UriClipAssetExt for O {
}
}
fn connect_property_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
#[doc(alias = "duration")]
fn connect_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_duration_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESUriClipAsset,
_param_spec: glib::ffi::gpointer,
@ -191,10 +194,8 @@ impl<O: IsA<UriClipAsset>> UriClipAssetExt for O {
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_property_is_nested_timeline_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId {
#[doc(alias = "is-nested-timeline")]
fn connect_is_nested_timeline_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_is_nested_timeline_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESUriClipAsset,
_param_spec: glib::ffi::gpointer,

View file

@ -20,12 +20,15 @@ pub const NONE_URI_SOURCE_ASSET: Option<&UriSourceAsset> = None;
pub trait UriSourceAssetExt: 'static {
#[doc(alias = "ges_uri_source_asset_get_filesource_asset")]
#[doc(alias = "get_filesource_asset")]
fn filesource_asset(&self) -> Option<UriClipAsset>;
#[doc(alias = "ges_uri_source_asset_get_stream_info")]
#[doc(alias = "get_stream_info")]
fn stream_info(&self) -> Option<gst_pbutils::DiscovererStreamInfo>;
#[doc(alias = "ges_uri_source_asset_get_stream_uri")]
#[doc(alias = "get_stream_uri")]
fn stream_uri(&self) -> Option<glib::GString>;
#[cfg(any(feature = "v1_18", feature = "dox"))]

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -22,6 +22,7 @@ impl GLDisplayEGL {
}
//#[doc(alias = "gst_gl_display_egl_new_with_egl_display")]
//#[doc(alias = "new_with_egl_display")]
//pub fn with_egl_display(display: /*Unimplemented*/Option<Fundamental: Pointer>) -> GLDisplayEGL {
// unsafe { TODO: call ffi:gst_gl_display_egl_new_with_egl_display() }
//}
@ -37,6 +38,7 @@ impl GLDisplayEGL {
}
//#[doc(alias = "gst_gl_display_egl_get_from_native")]
//#[doc(alias = "get_from_native")]
//pub fn from_native(type_: /*Ignored*/gst_gl::GLDisplayType, display: /*Unimplemented*/Fundamental: UIntPtr) -> /*Unimplemented*/Option<Fundamental: Pointer> {
// unsafe { TODO: call ffi:gst_gl_display_egl_get_from_native() }
//}

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -572,6 +572,7 @@ impl GLSLVersion {
}
#[doc(alias = "gst_glsl_version_to_string")]
#[doc(alias = "to_string")]
pub fn to_str(self) -> Option<glib::GString> {
assert_initialized_main_thread!();
unsafe { from_glib_none(ffi::gst_glsl_version_to_string(self.into_glib())) }
@ -786,6 +787,7 @@ impl GLTextureTarget {
}
#[doc(alias = "gst_gl_texture_target_to_string")]
#[doc(alias = "to_string")]
pub fn to_str(self) -> Option<glib::GString> {
assert_initialized_main_thread!();
unsafe { from_glib_none(ffi::gst_gl_texture_target_to_string(self.into_glib())) }

View file

@ -28,6 +28,7 @@ impl GLAPI {
}
#[doc(alias = "gst_gl_api_to_string")]
#[doc(alias = "to_string")]
pub fn to_str(self) -> glib::GString {
assert_initialized_main_thread!();
unsafe { from_glib_full(ffi::gst_gl_api_to_string(self.into_glib())) }
@ -179,6 +180,7 @@ impl GLPlatform {
}
#[doc(alias = "gst_gl_platform_to_string")]
#[doc(alias = "to_string")]
pub fn to_str(self) -> glib::GString {
assert_initialized_main_thread!();
unsafe { from_glib_full(ffi::gst_gl_platform_to_string(self.into_glib())) }
@ -258,6 +260,7 @@ impl GLSLProfile {
}
#[doc(alias = "gst_glsl_profile_to_string")]
#[doc(alias = "to_string")]
pub fn to_str(self) -> Option<glib::GString> {
assert_initialized_main_thread!();
unsafe { from_glib_none(ffi::gst_glsl_profile_to_string(self.into_glib())) }

View file

@ -35,15 +35,14 @@ pub trait GLBaseFilterExt: 'static {
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
#[doc(alias = "gst_gl_base_filter_get_gl_context")]
#[doc(alias = "get_gl_context")]
fn gl_context(&self) -> Option<GLContext>;
#[doc(alias = "get_property_context")]
fn context(&self) -> Option<GLContext>;
fn connect_property_context_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
#[doc(alias = "context")]
fn connect_context_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F)
-> SignalHandlerId;
}
impl<O: IsA<GLBaseFilter>> GLBaseFilterExt for O {
@ -81,7 +80,8 @@ impl<O: IsA<GLBaseFilter>> GLBaseFilterExt for O {
}
}
fn connect_property_context_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "context")]
fn connect_context_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {

View file

@ -27,13 +27,14 @@ unsafe impl Sync for GLBaseSrc {}
pub const NONE_GL_BASE_SRC: Option<&GLBaseSrc> = None;
pub trait GLBaseSrcExt: 'static {
#[doc(alias = "get_property_timestamp_offset")]
#[doc(alias = "timestamp-offset")]
fn timestamp_offset(&self) -> i64;
#[doc(alias = "set_property_timestamp_offset")]
#[doc(alias = "timestamp-offset")]
fn set_timestamp_offset(&self, timestamp_offset: i64);
fn connect_property_timestamp_offset_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "timestamp-offset")]
fn connect_timestamp_offset_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
@ -64,7 +65,8 @@ impl<O: IsA<GLBaseSrc>> GLBaseSrcExt for O {
}
}
fn connect_property_timestamp_offset_notify<F: Fn(&Self) + Send + Sync + 'static>(
#[doc(alias = "timestamp-offset")]
fn connect_timestamp_offset_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {

View file

@ -30,12 +30,14 @@ impl GLContext {
}
#[doc(alias = "gst_gl_context_get_current")]
#[doc(alias = "get_current")]
pub fn current() -> Option<GLContext> {
assert_initialized_main_thread!();
unsafe { from_glib_none(ffi::gst_gl_context_get_current()) }
}
#[doc(alias = "gst_gl_context_get_current_gl_api")]
#[doc(alias = "get_current_gl_api")]
pub fn current_gl_api(platform: GLPlatform) -> (GLAPI, u32, u32) {
assert_initialized_main_thread!();
unsafe {
@ -90,21 +92,27 @@ pub trait GLContextExt: 'static {
fn fill_info(&self) -> Result<(), glib::Error>;
#[doc(alias = "gst_gl_context_get_display")]
#[doc(alias = "get_display")]
fn display(&self) -> GLDisplay;
#[doc(alias = "gst_gl_context_get_gl_api")]
#[doc(alias = "get_gl_api")]
fn gl_api(&self) -> GLAPI;
#[doc(alias = "gst_gl_context_get_gl_platform")]
#[doc(alias = "get_gl_platform")]
fn gl_platform(&self) -> GLPlatform;
#[doc(alias = "gst_gl_context_get_gl_platform_version")]
#[doc(alias = "get_gl_platform_version")]
fn gl_platform_version(&self) -> (i32, i32);
#[doc(alias = "gst_gl_context_get_gl_version")]
#[doc(alias = "get_gl_version")]
fn gl_version(&self) -> (i32, i32);
#[doc(alias = "gst_gl_context_get_window")]
#[doc(alias = "get_window")]
fn window(&self) -> Option<GLWindow>;
#[doc(alias = "gst_gl_context_is_shared")]

View file

@ -60,12 +60,15 @@ pub trait GLDisplayExt: 'static {
fn filter_gl_api(&self, gl_api: GLAPI);
#[doc(alias = "gst_gl_display_get_gl_api")]
#[doc(alias = "get_gl_api")]
fn gl_api(&self) -> GLAPI;
#[doc(alias = "gst_gl_display_get_gl_api_unlocked")]
#[doc(alias = "get_gl_api_unlocked")]
fn gl_api_unlocked(&self) -> GLAPI;
#[doc(alias = "gst_gl_display_get_handle_type")]
#[doc(alias = "get_handle_type")]
fn handle_type(&self) -> GLDisplayType;
#[cfg(any(feature = "v1_18", feature = "dox"))]
@ -81,6 +84,7 @@ pub trait GLDisplayExt: 'static {
//#[doc(alias = "gst_gl_display_retrieve_window")]
//fn retrieve_window(&self, data: /*Unimplemented*/Option<Fundamental: Pointer>, compare_func: /*Unimplemented*/FnMut(/*Unimplemented*/Option<Fundamental: Pointer>, /*Unimplemented*/Option<Fundamental: Pointer>) -> i32) -> Option<GLWindow>;
#[doc(alias = "create-context")]
fn connect_create_context<F: Fn(&Self, &GLContext) -> GLContext + Send + Sync + 'static>(
&self,
f: F,
@ -189,6 +193,7 @@ impl<O: IsA<GLDisplay>> GLDisplayExt for O {
// unsafe { TODO: call ffi:gst_gl_display_retrieve_window() }
//}
#[doc(alias = "create-context")]
fn connect_create_context<F: Fn(&Self, &GLContext) -> GLContext + Send + Sync + 'static>(
&self,
f: F,

View file

@ -29,6 +29,7 @@ impl GLFramebuffer {
}
#[doc(alias = "gst_gl_framebuffer_new_with_default_depth")]
#[doc(alias = "new_with_default_depth")]
pub fn with_default_depth<P: IsA<GLContext>>(
context: &P,
width: u32,
@ -61,9 +62,11 @@ pub trait GLFramebufferExt: 'static {
//fn draw_to_texture(&self, mem: &mut GLMemory, func: /*Unimplemented*/FnMut(/*Unimplemented*/Option<Fundamental: Pointer>) -> bool, user_data: /*Unimplemented*/Option<Fundamental: Pointer>) -> bool;
#[doc(alias = "gst_gl_framebuffer_get_effective_dimensions")]
#[doc(alias = "get_effective_dimensions")]
fn effective_dimensions(&self) -> (u32, u32);
#[doc(alias = "gst_gl_framebuffer_get_id")]
#[doc(alias = "get_id")]
fn id(&self) -> u32;
}

View file

@ -18,6 +18,7 @@ glib::wrapper! {
impl GLMemoryAllocator {
#[doc(alias = "gst_gl_memory_allocator_get_default")]
#[doc(alias = "get_default")]
pub fn default<P: IsA<GLContext>>(context: &P) -> Option<GLMemoryAllocator> {
skip_assert_initialized!();
unsafe {

View file

@ -63,7 +63,6 @@ impl GLOverlayCompositor {
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
#[doc(alias = "get_property_yinvert")]
pub fn is_yinvert(&self) -> bool {
unsafe {
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
@ -80,7 +79,6 @@ impl GLOverlayCompositor {
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
#[doc(alias = "set_property_yinvert")]
pub fn set_yinvert(&self, yinvert: bool) {
unsafe {
glib::gobject_ffi::g_object_set_property(
@ -103,7 +101,8 @@ impl GLOverlayCompositor {
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn connect_property_yinvert_notify<F: Fn(&GLOverlayCompositor) + Send + Sync + 'static>(
#[doc(alias = "yinvert")]
pub fn connect_yinvert_notify<F: Fn(&GLOverlayCompositor) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {

View file

@ -55,6 +55,7 @@ impl GLShader {
//}
//#[doc(alias = "gst_gl_shader_new_with_stages")]
//#[doc(alias = "new_with_stages")]
//pub fn with_stages<P: IsA<GLContext>>(context: &P, error: &mut glib::Error, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs) -> GLShader {
// unsafe { TODO: call ffi:gst_gl_shader_new_with_stages() }
//}
@ -133,6 +134,7 @@ impl GLShader {
}
#[doc(alias = "gst_gl_shader_get_attribute_location")]
#[doc(alias = "get_attribute_location")]
pub fn attribute_location(&self, name: &str) -> i32 {
unsafe {
ffi::gst_gl_shader_get_attribute_location(self.to_glib_none().0, name.to_glib_none().0)
@ -140,6 +142,7 @@ impl GLShader {
}
#[doc(alias = "gst_gl_shader_get_program_handle")]
#[doc(alias = "get_program_handle")]
pub fn program_handle(&self) -> i32 {
unsafe { ffi::gst_gl_shader_get_program_handle(self.to_glib_none().0) }
}
@ -363,6 +366,7 @@ impl GLShader {
}
#[doc(alias = "gst_gl_shader_use")]
#[doc(alias = "use")]
pub fn use_(&self) {
unsafe {
ffi::gst_gl_shader_use(self.to_glib_none().0);
@ -423,7 +427,8 @@ impl GLShader {
}
}
pub fn connect_property_linked_notify<F: Fn(&GLShader) + Send + Sync + 'static>(
#[doc(alias = "linked")]
pub fn connect_linked_notify<F: Fn(&GLShader) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {

View file

@ -24,6 +24,7 @@ impl GLUpload {
}
#[doc(alias = "gst_gl_upload_get_caps")]
#[doc(alias = "get_caps")]
pub fn caps(&self) -> (gst::Caps, gst::Caps) {
unsafe {
let mut in_caps = ptr::null_mut();
@ -81,6 +82,7 @@ impl GLUpload {
}
#[doc(alias = "gst_gl_upload_get_input_template_caps")]
#[doc(alias = "get_input_template_caps")]
pub fn input_template_caps() -> gst::Caps {
assert_initialized_main_thread!();
unsafe { from_glib_full(ffi::gst_gl_upload_get_input_template_caps()) }

View file

@ -92,7 +92,7 @@ impl GLViewConvert {
}
}
#[doc(alias = "get_property_downmix_mode")]
#[doc(alias = "downmix-mode")]
pub fn downmix_mode(&self) -> GLStereoDownmix {
unsafe {
let mut value = glib::Value::from_type(<GLStereoDownmix as StaticType>::static_type());
@ -107,7 +107,7 @@ impl GLViewConvert {
}
}
#[doc(alias = "set_property_downmix_mode")]
#[doc(alias = "downmix-mode")]
pub fn set_downmix_mode(&self, downmix_mode: GLStereoDownmix) {
unsafe {
glib::gobject_ffi::g_object_set_property(
@ -118,7 +118,7 @@ impl GLViewConvert {
}
}
#[doc(alias = "get_property_input_flags_override")]
#[doc(alias = "input-flags-override")]
pub fn input_flags_override(&self) -> gst_video::VideoMultiviewFlags {
unsafe {
let mut value = glib::Value::from_type(
@ -135,7 +135,7 @@ impl GLViewConvert {
}
}
#[doc(alias = "set_property_input_flags_override")]
#[doc(alias = "input-flags-override")]
pub fn set_input_flags_override(&self, input_flags_override: gst_video::VideoMultiviewFlags) {
unsafe {
glib::gobject_ffi::g_object_set_property(
@ -146,7 +146,7 @@ impl GLViewConvert {
}
}
#[doc(alias = "get_property_input_mode_override")]
#[doc(alias = "input-mode-override")]
pub fn input_mode_override(&self) -> gst_video::VideoMultiviewMode {
unsafe {
let mut value = glib::Value::from_type(
@ -163,7 +163,7 @@ impl GLViewConvert {
}
}
#[doc(alias = "set_property_input_mode_override")]
#[doc(alias = "input-mode-override")]
pub fn set_input_mode_override(&self, input_mode_override: gst_video::VideoMultiviewMode) {
unsafe {
glib::gobject_ffi::g_object_set_property(
@ -174,7 +174,7 @@ impl GLViewConvert {
}
}
#[doc(alias = "get_property_output_flags_override")]
#[doc(alias = "output-flags-override")]
pub fn output_flags_override(&self) -> gst_video::VideoMultiviewFlags {
unsafe {
let mut value = glib::Value::from_type(
@ -191,7 +191,7 @@ impl GLViewConvert {
}
}
#[doc(alias = "set_property_output_flags_override")]
#[doc(alias = "output-flags-override")]
pub fn set_output_flags_override(&self, output_flags_override: gst_video::VideoMultiviewFlags) {
unsafe {
glib::gobject_ffi::g_object_set_property(
@ -202,7 +202,7 @@ impl GLViewConvert {
}
}
#[doc(alias = "get_property_output_mode_override")]
#[doc(alias = "output-mode-override")]
pub fn output_mode_override(&self) -> gst_video::VideoMultiviewMode {
unsafe {
let mut value = glib::Value::from_type(
@ -219,7 +219,7 @@ impl GLViewConvert {
}
}
#[doc(alias = "set_property_output_mode_override")]
#[doc(alias = "output-mode-override")]
pub fn set_output_mode_override(&self, output_mode_override: gst_video::VideoMultiviewMode) {
unsafe {
glib::gobject_ffi::g_object_set_property(
@ -230,7 +230,8 @@ impl GLViewConvert {
}
}
pub fn connect_property_downmix_mode_notify<F: Fn(&GLViewConvert) + Send + Sync + 'static>(
#[doc(alias = "downmix-mode")]
pub fn connect_downmix_mode_notify<F: Fn(&GLViewConvert) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -257,9 +258,8 @@ impl GLViewConvert {
}
}
pub fn connect_property_input_flags_override_notify<
F: Fn(&GLViewConvert) + Send + Sync + 'static,
>(
#[doc(alias = "input-flags-override")]
pub fn connect_input_flags_override_notify<F: Fn(&GLViewConvert) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -286,9 +286,8 @@ impl GLViewConvert {
}
}
pub fn connect_property_input_mode_override_notify<
F: Fn(&GLViewConvert) + Send + Sync + 'static,
>(
#[doc(alias = "input-mode-override")]
pub fn connect_input_mode_override_notify<F: Fn(&GLViewConvert) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -315,9 +314,8 @@ impl GLViewConvert {
}
}
pub fn connect_property_output_flags_override_notify<
F: Fn(&GLViewConvert) + Send + Sync + 'static,
>(
#[doc(alias = "output-flags-override")]
pub fn connect_output_flags_override_notify<F: Fn(&GLViewConvert) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
@ -344,9 +342,8 @@ impl GLViewConvert {
}
}
pub fn connect_property_output_mode_override_notify<
F: Fn(&GLViewConvert) + Send + Sync + 'static,
>(
#[doc(alias = "output-mode-override")]
pub fn connect_output_mode_override_notify<F: Fn(&GLViewConvert) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {

View file

@ -45,9 +45,11 @@ pub trait GLWindowExt: 'static {
fn draw(&self);
#[doc(alias = "gst_gl_window_get_context")]
#[doc(alias = "get_context")]
fn context(&self) -> Option<GLContext>;
#[doc(alias = "gst_gl_window_get_surface_dimensions")]
#[doc(alias = "get_surface_dimensions")]
fn surface_dimensions(&self) -> (u32, u32);
#[doc(alias = "gst_gl_window_handle_events")]
@ -96,11 +98,13 @@ pub trait GLWindowExt: 'static {
#[doc(alias = "gst_gl_window_show")]
fn show(&self);
#[doc(alias = "key-event")]
fn connect_key_event<F: Fn(&Self, &str, &str) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
#[doc(alias = "mouse-event")]
fn connect_mouse_event<F: Fn(&Self, &str, i32, f64, f64) + Send + Sync + 'static>(
&self,
f: F,
@ -108,6 +112,7 @@ pub trait GLWindowExt: 'static {
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
#[doc(alias = "scroll-event")]
fn connect_scroll_event<F: Fn(&Self, f64, f64, f64, f64) + Send + Sync + 'static>(
&self,
f: F,
@ -266,6 +271,7 @@ impl<O: IsA<GLWindow>> GLWindowExt for O {
}
}
#[doc(alias = "key-event")]
fn connect_key_event<F: Fn(&Self, &str, &str) + Send + Sync + 'static>(
&self,
f: F,
@ -301,6 +307,7 @@ impl<O: IsA<GLWindow>> GLWindowExt for O {
}
}
#[doc(alias = "mouse-event")]
fn connect_mouse_event<F: Fn(&Self, &str, i32, f64, f64) + Send + Sync + 'static>(
&self,
f: F,
@ -342,6 +349,7 @@ impl<O: IsA<GLWindow>> GLWindowExt for O {
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
#[doc(alias = "scroll-event")]
fn connect_scroll_event<F: Fn(&Self, f64, f64, f64, f64) + Send + Sync + 'static>(
&self,
f: F,

View file

@ -51,6 +51,7 @@ impl GLSLStage {
}
#[doc(alias = "gst_glsl_stage_new_with_string")]
#[doc(alias = "new_with_string")]
pub fn with_string<P: IsA<GLContext>>(
context: &P,
type_: u32,
@ -71,6 +72,7 @@ impl GLSLStage {
}
#[doc(alias = "gst_glsl_stage_new_with_strings")]
#[doc(alias = "new_with_strings")]
pub fn with_strings<P: IsA<GLContext>>(
context: &P,
type_: u32,
@ -106,21 +108,25 @@ impl GLSLStage {
}
#[doc(alias = "gst_glsl_stage_get_handle")]
#[doc(alias = "get_handle")]
pub fn handle(&self) -> u32 {
unsafe { ffi::gst_glsl_stage_get_handle(self.to_glib_none().0) }
}
#[doc(alias = "gst_glsl_stage_get_profile")]
#[doc(alias = "get_profile")]
pub fn profile(&self) -> GLSLProfile {
unsafe { from_glib(ffi::gst_glsl_stage_get_profile(self.to_glib_none().0)) }
}
#[doc(alias = "gst_glsl_stage_get_shader_type")]
#[doc(alias = "get_shader_type")]
pub fn shader_type(&self) -> u32 {
unsafe { ffi::gst_glsl_stage_get_shader_type(self.to_glib_none().0) }
}
#[doc(alias = "gst_glsl_stage_get_version")]
#[doc(alias = "get_version")]
pub fn version(&self) -> GLSLVersion {
unsafe { from_glib(ffi::gst_glsl_stage_get_version(self.to_glib_none().0)) }
}

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// Generated by gir (https://github.com/gtk-rs/gir @ b5ff6f8)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

Some files were not shown because too many files have changed in this diff Show more