Signal to other class
- From: "Paulo Flabiano Smorigo" <pfsmorigo gmail com>
- To: gtkmm-list gnome org
- Subject: Signal to other class
- Date: Wed, 6 Aug 2008 11:38:56 -0300
Hi everyone,
I'm new with this signal stuff and maybe I'm zone out but is it possible to create a signal that calls a function from other class?
Like that:
FunctionB::FunctionB()
{
...
button.signal_clicked().connect(sigc::mem_fun(*this, &FunctionA::onButtonClick));
...
}
FunctionA::FunctionA()
{
...
...
}
FunctionA::onButtonClick()
{
std::ccout << "TESTE" << std:endl;
}
--
P.F.Smorigo
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]