Exemplo 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));
}
Exemplo 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));

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