fn generate_func_callback<W: Write>(
        &self,
        dest: &mut W,
        struct_name: &str,
        func: &Function,
    ) -> io::Result<()> {
        let signal_type_name = signal_type_callback(&func);
        let func_name = function_name(struct_name, func);

        let mut callback_def = String::with_capacity(128);
        CapiHeaderGen::callback_fun_def_name(&mut callback_def, false, &func_name, "_event", func);

        let func_def = generate_func_def_input_parms_only(func);
        let mut object = Object::new();

        object.insert("event_def".into(), Value::scalar(&callback_def));
        object.insert("signal_type_name".into(), Value::scalar(&signal_type_name));
        object.insert(
            "qt_signal_name".into(),
            Value::scalar(func.name.to_mixed_case()),
        );
        object.insert("func_def".into(), Value::scalar(&func_def));

        let res = self.set_signal_template.render(&object).unwrap();
        dest.write_all(res.as_bytes())
    }
///
/// Generation function def for callbacks/slots
///
Generation function def for callbacks/slots
Generation function def for callbacks / slots
fn generate_func_callback<W: Write>(
        &self,
        dest: &mut W,
        struct_name: &str,
        func: &Function,
    ) -> io::Result<()> {
        let signal_type_name = signal_type_callback(&func);
        let func_name = function_name(struct_name, func);
        let mut callback_def = String::with_capacity(128);
        CapiHeaderGen::callback_fun_def_name(&mut callback_def, false, &func_name, "_event", func);
        let func_def = generate_func_def_input_parms_only(func);
        let mut object = Object::new();
        object.insert("event_def".into(), Value::scalar(&callback_def));
        object.insert("signal_type_name".into(), Value::scalar(&signal_type_name));
        object.insert(
            "qt_signal_name".into(),
            Value::scalar(func.name.to_mixed_case()),
        );
        object.insert("func_def".into(), Value::scalar(&func_def));
        let res = self.set_signal_template.render(&object).unwrap();
        dest.write_all(res.as_bytes())
    }
fn generate_func_callback < W : Write > ( & self , dest : & mut W , struct_name : & str , func : & Function , ) -> io :: Result < ( ) > { let signal_type_name = signal_type_callback ( & func ) ; let func_name = function_name ( struct_name , func ) ; let mut callback_def = String :: with_capacity ( 128 ) ; CapiHeaderGen :: callback_fun_def_name ( & mut callback_def , false , & func_name , " " , func ) ; let func_def = generate_func_def_input_parms_only ( func ) ; let mut object = Object :: new ( ) ; object . insert ( " " . into ( ) , Value :: scalar ( & callback_def ) ) ; object . insert ( " " . into ( ) , Value :: scalar ( & signal_type_name ) ) ; object . insert ( " " . into ( ) , Value :: scalar ( func . name . to_mixed_case ( ) ) , ) ; object . insert ( " " . into ( ) , Value :: scalar ( & func_def ) ) ; let res = self . set_signal_template . render ( & object ) . unwrap ( ) ; dest . write_all ( res . as_bytes ( ) ) }
Generation function def for callbacks/slots
Generation function def for callbacks / slots
&self
dest
&mut W
struct_name
&str
func
&Function
&self
dest
&mut W
struct_name
&str
func
&Function