Esempio n. 1
0
Burden::Burden()
{
    updateSignal.connect(boost::bind(&Burden::update, this));
    displaySignal.connect(boost::bind(&Burden::display, this));
    reshapeSignal.connect(boost::bind(&Burden::reshape, this, _1, _2));
    keyboardSignal.connect(boost::bind(&Burden::keyboard, this, _1, _2, _3));
    keyboardUpSignal.connect(boost::bind(&Burden::keyboardUp, this, _1, _2, _3));
    mouseSignal.connect(boost::bind(&Burden::mouse, this, _1, _2, _3, _4));
    mouseMotionSignal.connect(boost::bind(&Burden::mouseMotion, this, _1, _2));
    specialSignal.connect(boost::bind(&Burden::special, this, _1, _2, _3));
    specialUpSignal.connect(boost::bind(&Burden::specialUp, this, _1, _2, _3));
}
Esempio n. 2
0
	//IObservable
	void registerObserver(IObserver& observer)
	{	
		boost::signals::connection conn=
			m_signal.connect(boost::bind(&IObserver::update, &observer, _1, _2));
		m_observers.push_back(std::pair<IObserver*, boost::signals::connection>(&observer, conn));

	}
Esempio n. 3
0
boost::signals::connection  Element::CGraphicsContainer::RegisterContainerChanged(boost::function<void (Element::IElementPtr pElement)> fun)
	{
		return gCallbackChangeGraphics.connect(fun);
	}
Esempio n. 4
0
		void connect(boost::function<void(std::string)> cmd){m_sig.connect(cmd);}