pub unsafe trait ObjectClassExt<T: ObjectBase>where
T::ImplType: ObjectImpl<T>,{
fn override_vfuncs(&mut self, _: &ClassInitToken) { ... }
fn install_properties(&mut self, properties: &[Property<'_>]) { ... }
fn add_signal(&mut self, name: &str, arg_types: &[Type], ret_type: Type) { ... }
fn add_signal_with_accumulator<F>(
&mut self,
name: &str,
arg_types: &[Type],
ret_type: Type,
accumulator: F
)
where
F: Fn(&mut Value, &Value) -> bool + Send + Sync + 'static,
{ ... }
fn add_action_signal<F>(
&mut self,
name: &str,
arg_types: &[Type],
ret_type: Type,
handler: F
)
where
F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static,
{ ... }
}