Binding extra arguments



Hi,

I want to bind extra arguments to my signal handler.
I read about "Binding extra arguments"  in "programming with gtkmm"  tutorial.

I found the following example:
m_button1.signal_clicked().connect( sigc::bind<Glib::ustring>( sigc::mem_fun(*this, &HelloWorld::on_button_clicked), "button 1") );
In this example only one argument is bound(Glib::ustring). But I want to bind two arguments to my signal handler.(int, and Glib::ustring ).

how to bind two arguments to a signal handler?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]