2018-07-30 08:54:06 +00:00
|
|
|
// This file was generated by gir (https://github.com/gtk-rs/gir)
|
|
|
|
// from gir-files (https://github.com/gtk-rs/gir-files)
|
2021-04-01 13:58:41 +00:00
|
|
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
|
2018-07-30 08:54:06 +00:00
|
|
|
// DO NOT EDIT
|
|
|
|
|
2023-05-04 05:51:18 +00:00
|
|
|
#[cfg(feature = "v1_18")]
|
|
|
|
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
2023-01-03 18:56:00 +00:00
|
|
|
use crate::{AggregatorPad, AggregatorStartTimeSelection};
|
|
|
|
use glib::{
|
|
|
|
prelude::*,
|
|
|
|
signal::{connect_raw, SignalHandlerId},
|
|
|
|
translate::*,
|
|
|
|
};
|
2023-08-28 16:52:26 +00:00
|
|
|
use std::boxed::Box as Box_;
|
2018-07-30 08:54:06 +00:00
|
|
|
|
2020-12-17 22:34:53 +00:00
|
|
|
glib::wrapper! {
|
2021-06-02 07:47:51 +00:00
|
|
|
#[doc(alias = "GstAggregator")]
|
2020-11-21 17:59:12 +00:00
|
|
|
pub struct Aggregator(Object<ffi::GstAggregator, ffi::GstAggregatorClass>) @extends gst::Element, gst::Object;
|
2018-07-30 08:54:06 +00:00
|
|
|
|
|
|
|
match fn {
|
2021-04-19 19:55:01 +00:00
|
|
|
type_ => || ffi::gst_aggregator_get_type(),
|
2018-07-30 08:54:06 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-03 17:28:46 +00:00
|
|
|
impl Aggregator {
|
|
|
|
pub const NONE: Option<&'static Aggregator> = None;
|
|
|
|
}
|
2019-01-16 11:32:39 +00:00
|
|
|
|
2021-11-16 14:02:58 +00:00
|
|
|
unsafe impl Send for Aggregator {}
|
|
|
|
unsafe impl Sync for Aggregator {}
|
|
|
|
|
2023-07-05 18:20:29 +00:00
|
|
|
mod sealed {
|
|
|
|
pub trait Sealed {}
|
|
|
|
impl<T: super::IsA<super::Aggregator>> Sealed for T {}
|
2018-07-30 08:54:06 +00:00
|
|
|
}
|
|
|
|
|
2023-07-05 18:20:29 +00:00
|
|
|
pub trait AggregatorExt: IsA<Aggregator> + sealed::Sealed + 'static {
|
|
|
|
#[doc(alias = "gst_aggregator_finish_buffer")]
|
2023-01-03 19:08:39 +00:00
|
|
|
fn finish_buffer(&self, buffer: gst::Buffer) -> Result<gst::FlowSuccess, gst::FlowError> {
|
|
|
|
unsafe {
|
|
|
|
try_from_glib(ffi::gst_aggregator_finish_buffer(
|
|
|
|
self.as_ref().to_glib_none().0,
|
|
|
|
buffer.into_glib_ptr(),
|
|
|
|
))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-04 05:51:18 +00:00
|
|
|
#[cfg(feature = "v1_18")]
|
|
|
|
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
2023-07-05 18:20:29 +00:00
|
|
|
#[doc(alias = "gst_aggregator_finish_buffer_list")]
|
2023-01-03 19:08:39 +00:00
|
|
|
fn finish_buffer_list(
|
|
|
|
&self,
|
|
|
|
bufferlist: gst::BufferList,
|
|
|
|
) -> Result<gst::FlowSuccess, gst::FlowError> {
|
|
|
|
unsafe {
|
|
|
|
try_from_glib(ffi::gst_aggregator_finish_buffer_list(
|
|
|
|
self.as_ref().to_glib_none().0,
|
|
|
|
bufferlist.into_glib_ptr(),
|
|
|
|
))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-07-05 18:20:29 +00:00
|
|
|
#[doc(alias = "gst_aggregator_get_buffer_pool")]
|
|
|
|
#[doc(alias = "get_buffer_pool")]
|
2021-04-11 19:38:18 +00:00
|
|
|
fn buffer_pool(&self) -> Option<gst::BufferPool> {
|
2018-07-30 08:54:06 +00:00
|
|
|
unsafe {
|
2020-11-21 17:59:12 +00:00
|
|
|
from_glib_full(ffi::gst_aggregator_get_buffer_pool(
|
2019-06-18 10:12:00 +00:00
|
|
|
self.as_ref().to_glib_none().0,
|
|
|
|
))
|
2018-07-30 08:54:06 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-04 05:51:18 +00:00
|
|
|
#[cfg(feature = "v1_22")]
|
|
|
|
#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
|
2023-07-05 18:20:29 +00:00
|
|
|
#[doc(alias = "gst_aggregator_get_force_live")]
|
|
|
|
#[doc(alias = "get_force_live")]
|
2022-11-21 11:04:29 +00:00
|
|
|
fn is_force_live(&self) -> bool {
|
|
|
|
unsafe {
|
|
|
|
from_glib(ffi::gst_aggregator_get_force_live(
|
|
|
|
self.as_ref().to_glib_none().0,
|
|
|
|
))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-04 05:51:18 +00:00
|
|
|
#[cfg(feature = "v1_20")]
|
|
|
|
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
2023-07-05 18:20:29 +00:00
|
|
|
#[doc(alias = "gst_aggregator_get_ignore_inactive_pads")]
|
|
|
|
#[doc(alias = "get_ignore_inactive_pads")]
|
2021-10-30 11:27:17 +00:00
|
|
|
fn ignores_inactive_pads(&self) -> bool {
|
|
|
|
unsafe {
|
|
|
|
from_glib(ffi::gst_aggregator_get_ignore_inactive_pads(
|
|
|
|
self.as_ref().to_glib_none().0,
|
|
|
|
))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-07-05 18:20:29 +00:00
|
|
|
#[doc(alias = "gst_aggregator_get_latency")]
|
|
|
|
#[doc(alias = "get_latency")]
|
2021-04-05 10:48:30 +00:00
|
|
|
fn latency(&self) -> Option<gst::ClockTime> {
|
2018-07-30 08:54:06 +00:00
|
|
|
unsafe {
|
2020-11-21 17:59:12 +00:00
|
|
|
from_glib(ffi::gst_aggregator_get_latency(
|
2019-06-18 10:12:00 +00:00
|
|
|
self.as_ref().to_glib_none().0,
|
|
|
|
))
|
2018-07-30 08:54:06 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-04 05:51:18 +00:00
|
|
|
#[cfg(feature = "v1_18")]
|
|
|
|
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
2023-07-05 18:20:29 +00:00
|
|
|
#[doc(alias = "gst_aggregator_negotiate")]
|
2020-04-30 16:51:41 +00:00
|
|
|
fn negotiate(&self) -> bool {
|
|
|
|
unsafe {
|
2020-11-21 17:59:12 +00:00
|
|
|
from_glib(ffi::gst_aggregator_negotiate(
|
2020-04-30 16:51:41 +00:00
|
|
|
self.as_ref().to_glib_none().0,
|
|
|
|
))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-04 05:51:18 +00:00
|
|
|
#[cfg(feature = "v1_18")]
|
|
|
|
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
2023-07-05 18:20:29 +00:00
|
|
|
#[doc(alias = "gst_aggregator_peek_next_sample")]
|
2021-05-23 19:22:45 +00:00
|
|
|
fn peek_next_sample(&self, pad: &impl IsA<AggregatorPad>) -> Option<gst::Sample> {
|
2020-08-11 07:49:37 +00:00
|
|
|
unsafe {
|
2020-11-21 17:59:12 +00:00
|
|
|
from_glib_full(ffi::gst_aggregator_peek_next_sample(
|
2020-08-11 07:49:37 +00:00
|
|
|
self.as_ref().to_glib_none().0,
|
|
|
|
pad.as_ref().to_glib_none().0,
|
|
|
|
))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-04 05:51:18 +00:00
|
|
|
#[cfg(feature = "v1_22")]
|
|
|
|
#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
|
2023-07-05 18:20:29 +00:00
|
|
|
#[doc(alias = "gst_aggregator_set_force_live")]
|
2022-11-21 11:04:29 +00:00
|
|
|
fn set_force_live(&self, force_live: bool) {
|
|
|
|
unsafe {
|
|
|
|
ffi::gst_aggregator_set_force_live(
|
|
|
|
self.as_ref().to_glib_none().0,
|
|
|
|
force_live.into_glib(),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-04 05:51:18 +00:00
|
|
|
#[cfg(feature = "v1_20")]
|
|
|
|
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
2023-07-05 18:20:29 +00:00
|
|
|
#[doc(alias = "gst_aggregator_set_ignore_inactive_pads")]
|
2021-10-30 11:27:17 +00:00
|
|
|
fn set_ignore_inactive_pads(&self, ignore: bool) {
|
|
|
|
unsafe {
|
|
|
|
ffi::gst_aggregator_set_ignore_inactive_pads(
|
|
|
|
self.as_ref().to_glib_none().0,
|
|
|
|
ignore.into_glib(),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-07-05 18:20:29 +00:00
|
|
|
#[doc(alias = "gst_aggregator_set_latency")]
|
2021-04-05 10:48:30 +00:00
|
|
|
fn set_latency(
|
|
|
|
&self,
|
|
|
|
min_latency: gst::ClockTime,
|
|
|
|
max_latency: impl Into<Option<gst::ClockTime>>,
|
|
|
|
) {
|
2018-07-30 08:54:06 +00:00
|
|
|
unsafe {
|
2020-11-21 17:59:12 +00:00
|
|
|
ffi::gst_aggregator_set_latency(
|
2019-06-18 10:12:00 +00:00
|
|
|
self.as_ref().to_glib_none().0,
|
2021-04-27 15:10:39 +00:00
|
|
|
min_latency.into_glib(),
|
2021-04-05 10:48:30 +00:00
|
|
|
max_latency.into().into_glib(),
|
2019-06-18 10:12:00 +00:00
|
|
|
);
|
2018-07-30 08:54:06 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-07-05 18:20:29 +00:00
|
|
|
#[doc(alias = "gst_aggregator_set_src_caps")]
|
2018-07-30 08:54:06 +00:00
|
|
|
fn set_src_caps(&self, caps: &gst::Caps) {
|
|
|
|
unsafe {
|
2020-11-21 17:59:12 +00:00
|
|
|
ffi::gst_aggregator_set_src_caps(self.as_ref().to_glib_none().0, caps.to_glib_none().0);
|
2018-07-30 08:54:06 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-04 05:51:18 +00:00
|
|
|
#[cfg(feature = "v1_16")]
|
|
|
|
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
2023-07-05 18:20:29 +00:00
|
|
|
#[doc(alias = "gst_aggregator_simple_get_next_time")]
|
2021-04-05 10:48:30 +00:00
|
|
|
fn simple_get_next_time(&self) -> Option<gst::ClockTime> {
|
2019-04-23 14:32:09 +00:00
|
|
|
unsafe {
|
2020-11-21 17:59:12 +00:00
|
|
|
from_glib(ffi::gst_aggregator_simple_get_next_time(
|
2019-06-18 10:12:00 +00:00
|
|
|
self.as_ref().to_glib_none().0,
|
|
|
|
))
|
2019-04-23 14:32:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-04 05:51:18 +00:00
|
|
|
#[cfg(feature = "v1_18")]
|
|
|
|
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
2023-07-05 18:20:29 +00:00
|
|
|
#[doc(alias = "emit-signals")]
|
2021-04-11 19:38:18 +00:00
|
|
|
fn emits_signals(&self) -> bool {
|
2023-07-06 13:05:38 +00:00
|
|
|
ObjectExt::property(self.as_ref(), "emit-signals")
|
2020-08-11 07:49:37 +00:00
|
|
|
}
|
|
|
|
|
2023-05-04 05:51:18 +00:00
|
|
|
#[cfg(feature = "v1_18")]
|
|
|
|
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
2023-07-05 18:20:29 +00:00
|
|
|
#[doc(alias = "emit-signals")]
|
2021-04-11 19:38:18 +00:00
|
|
|
fn set_emit_signals(&self, emit_signals: bool) {
|
2023-07-06 13:05:38 +00:00
|
|
|
ObjectExt::set_property(self.as_ref(), "emit-signals", emit_signals)
|
2020-08-11 07:49:37 +00:00
|
|
|
}
|
|
|
|
|
2023-07-05 18:20:29 +00:00
|
|
|
#[doc(alias = "start-time")]
|
2021-04-11 19:38:18 +00:00
|
|
|
fn start_time(&self) -> u64 {
|
2023-07-06 13:05:38 +00:00
|
|
|
ObjectExt::property(self.as_ref(), "start-time")
|
2018-07-30 08:54:06 +00:00
|
|
|
}
|
|
|
|
|
2023-07-05 18:20:29 +00:00
|
|
|
#[doc(alias = "start-time")]
|
2021-04-11 19:38:18 +00:00
|
|
|
fn set_start_time(&self, start_time: u64) {
|
2023-07-06 13:05:38 +00:00
|
|
|
ObjectExt::set_property(self.as_ref(), "start-time", start_time)
|
2018-07-30 08:54:06 +00:00
|
|
|
}
|
|
|
|
|
2023-05-04 05:51:18 +00:00
|
|
|
#[cfg(feature = "v1_18")]
|
|
|
|
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
2023-07-05 18:20:29 +00:00
|
|
|
#[doc(alias = "start-time-selection")]
|
2021-04-11 19:38:18 +00:00
|
|
|
fn start_time_selection(&self) -> AggregatorStartTimeSelection {
|
2023-07-06 13:05:38 +00:00
|
|
|
ObjectExt::property(self.as_ref(), "start-time-selection")
|
2020-07-06 08:37:14 +00:00
|
|
|
}
|
|
|
|
|
2023-05-04 05:51:18 +00:00
|
|
|
#[cfg(feature = "v1_18")]
|
|
|
|
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
2023-07-05 18:20:29 +00:00
|
|
|
#[doc(alias = "start-time-selection")]
|
2021-04-11 19:38:18 +00:00
|
|
|
fn set_start_time_selection(&self, start_time_selection: AggregatorStartTimeSelection) {
|
2023-07-06 13:05:38 +00:00
|
|
|
ObjectExt::set_property(self.as_ref(), "start-time-selection", start_time_selection)
|
2020-07-06 08:37:14 +00:00
|
|
|
}
|
|
|
|
|
2023-05-04 05:51:18 +00:00
|
|
|
#[cfg(feature = "v1_18")]
|
|
|
|
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
2023-07-05 18:20:29 +00:00
|
|
|
#[doc(alias = "emit-signals")]
|
2021-05-03 18:35:37 +00:00
|
|
|
fn connect_emit_signals_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
2020-08-11 07:49:37 +00:00
|
|
|
&self,
|
|
|
|
f: F,
|
|
|
|
) -> SignalHandlerId {
|
2021-05-26 22:02:42 +00:00
|
|
|
unsafe extern "C" fn notify_emit_signals_trampoline<
|
|
|
|
P: IsA<Aggregator>,
|
|
|
|
F: Fn(&P) + Send + Sync + 'static,
|
|
|
|
>(
|
2020-11-21 17:59:12 +00:00
|
|
|
this: *mut ffi::GstAggregator,
|
|
|
|
_param_spec: glib::ffi::gpointer,
|
|
|
|
f: glib::ffi::gpointer,
|
2021-05-26 22:02:42 +00:00
|
|
|
) {
|
2020-08-11 07:49:37 +00:00
|
|
|
let f: &F = &*(f as *const F);
|
2021-06-21 21:07:45 +00:00
|
|
|
f(Aggregator::from_glib_borrow(this).unsafe_cast_ref())
|
2020-08-11 07:49:37 +00:00
|
|
|
}
|
|
|
|
unsafe {
|
|
|
|
let f: Box_<F> = Box_::new(f);
|
|
|
|
connect_raw(
|
|
|
|
self.as_ptr() as *mut _,
|
|
|
|
b"notify::emit-signals\0".as_ptr() as *const _,
|
2023-08-28 16:52:26 +00:00
|
|
|
Some(std::mem::transmute::<_, unsafe extern "C" fn()>(
|
2020-08-11 07:49:37 +00:00
|
|
|
notify_emit_signals_trampoline::<Self, F> as *const (),
|
|
|
|
)),
|
|
|
|
Box_::into_raw(f),
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-07-05 18:20:29 +00:00
|
|
|
#[doc(alias = "latency")]
|
2021-05-03 18:35:37 +00:00
|
|
|
fn connect_latency_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
2019-06-18 10:12:00 +00:00
|
|
|
&self,
|
|
|
|
f: F,
|
|
|
|
) -> SignalHandlerId {
|
2021-05-26 22:02:42 +00:00
|
|
|
unsafe extern "C" fn notify_latency_trampoline<
|
|
|
|
P: IsA<Aggregator>,
|
|
|
|
F: Fn(&P) + Send + Sync + 'static,
|
|
|
|
>(
|
2020-11-21 17:59:12 +00:00
|
|
|
this: *mut ffi::GstAggregator,
|
|
|
|
_param_spec: glib::ffi::gpointer,
|
|
|
|
f: glib::ffi::gpointer,
|
2021-05-26 22:02:42 +00:00
|
|
|
) {
|
2019-06-18 10:10:46 +00:00
|
|
|
let f: &F = &*(f as *const F);
|
2021-06-21 21:07:45 +00:00
|
|
|
f(Aggregator::from_glib_borrow(this).unsafe_cast_ref())
|
2019-06-18 10:10:46 +00:00
|
|
|
}
|
2018-07-30 08:54:06 +00:00
|
|
|
unsafe {
|
2019-01-29 13:53:44 +00:00
|
|
|
let f: Box_<F> = Box_::new(f);
|
2019-06-18 10:12:00 +00:00
|
|
|
connect_raw(
|
|
|
|
self.as_ptr() as *mut _,
|
|
|
|
b"notify::latency\0".as_ptr() as *const _,
|
2023-08-28 16:52:26 +00:00
|
|
|
Some(std::mem::transmute::<_, unsafe extern "C" fn()>(
|
2020-04-13 16:11:33 +00:00
|
|
|
notify_latency_trampoline::<Self, F> as *const (),
|
|
|
|
)),
|
2019-06-18 10:12:00 +00:00
|
|
|
Box_::into_raw(f),
|
|
|
|
)
|
2018-07-30 08:54:06 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-07-05 18:20:29 +00:00
|
|
|
#[doc(alias = "start-time")]
|
2021-05-03 18:35:37 +00:00
|
|
|
fn connect_start_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
2019-06-18 10:12:00 +00:00
|
|
|
&self,
|
|
|
|
f: F,
|
|
|
|
) -> SignalHandlerId {
|
2021-05-26 22:02:42 +00:00
|
|
|
unsafe extern "C" fn notify_start_time_trampoline<
|
|
|
|
P: IsA<Aggregator>,
|
|
|
|
F: Fn(&P) + Send + Sync + 'static,
|
|
|
|
>(
|
2020-11-21 17:59:12 +00:00
|
|
|
this: *mut ffi::GstAggregator,
|
|
|
|
_param_spec: glib::ffi::gpointer,
|
|
|
|
f: glib::ffi::gpointer,
|
2021-05-26 22:02:42 +00:00
|
|
|
) {
|
2019-06-18 10:10:46 +00:00
|
|
|
let f: &F = &*(f as *const F);
|
2021-06-21 21:07:45 +00:00
|
|
|
f(Aggregator::from_glib_borrow(this).unsafe_cast_ref())
|
2019-06-18 10:10:46 +00:00
|
|
|
}
|
2018-07-30 08:54:06 +00:00
|
|
|
unsafe {
|
2019-01-29 13:53:44 +00:00
|
|
|
let f: Box_<F> = Box_::new(f);
|
2019-06-18 10:12:00 +00:00
|
|
|
connect_raw(
|
|
|
|
self.as_ptr() as *mut _,
|
|
|
|
b"notify::start-time\0".as_ptr() as *const _,
|
2023-08-28 16:52:26 +00:00
|
|
|
Some(std::mem::transmute::<_, unsafe extern "C" fn()>(
|
2020-04-13 16:11:33 +00:00
|
|
|
notify_start_time_trampoline::<Self, F> as *const (),
|
|
|
|
)),
|
2019-06-18 10:12:00 +00:00
|
|
|
Box_::into_raw(f),
|
|
|
|
)
|
2018-07-30 08:54:06 +00:00
|
|
|
}
|
|
|
|
}
|
2020-07-06 08:37:14 +00:00
|
|
|
|
2023-05-04 05:51:18 +00:00
|
|
|
#[cfg(feature = "v1_18")]
|
|
|
|
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
2023-07-05 18:20:29 +00:00
|
|
|
#[doc(alias = "start-time-selection")]
|
2021-05-03 18:35:37 +00:00
|
|
|
fn connect_start_time_selection_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
2020-07-06 08:37:14 +00:00
|
|
|
&self,
|
|
|
|
f: F,
|
|
|
|
) -> SignalHandlerId {
|
|
|
|
unsafe extern "C" fn notify_start_time_selection_trampoline<
|
2021-05-26 22:02:42 +00:00
|
|
|
P: IsA<Aggregator>,
|
2020-07-06 08:37:14 +00:00
|
|
|
F: Fn(&P) + Send + Sync + 'static,
|
|
|
|
>(
|
2020-11-21 17:59:12 +00:00
|
|
|
this: *mut ffi::GstAggregator,
|
|
|
|
_param_spec: glib::ffi::gpointer,
|
|
|
|
f: glib::ffi::gpointer,
|
2021-05-26 22:02:42 +00:00
|
|
|
) {
|
2020-07-06 08:37:14 +00:00
|
|
|
let f: &F = &*(f as *const F);
|
2021-06-21 21:07:45 +00:00
|
|
|
f(Aggregator::from_glib_borrow(this).unsafe_cast_ref())
|
2020-07-06 08:37:14 +00:00
|
|
|
}
|
|
|
|
unsafe {
|
|
|
|
let f: Box_<F> = Box_::new(f);
|
|
|
|
connect_raw(
|
|
|
|
self.as_ptr() as *mut _,
|
|
|
|
b"notify::start-time-selection\0".as_ptr() as *const _,
|
2023-08-28 16:52:26 +00:00
|
|
|
Some(std::mem::transmute::<_, unsafe extern "C" fn()>(
|
2020-07-06 08:37:14 +00:00
|
|
|
notify_start_time_selection_trampoline::<Self, F> as *const (),
|
|
|
|
)),
|
|
|
|
Box_::into_raw(f),
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
2018-07-30 08:54:06 +00:00
|
|
|
}
|
2023-07-05 18:20:29 +00:00
|
|
|
|
|
|
|
impl<O: IsA<Aggregator>> AggregatorExt for O {}
|