void Dragger::firePositionChanged() { for( PositionChangedCallbackList::iterator i = _callbacks.begin(); i != _callbacks.end(); i++ ) { i->get()->onPositionChanged(this, _position); } }
void Dragger::setPosition( const GeoPoint& position, bool fireEvents) { if (_position != position) { _position = position; updateTransform(); if (fireEvents) { for( PositionChangedCallbackList::iterator i = _callbacks.begin(); i != _callbacks.end(); i++ ) { i->get()->onPositionChanged(this, _position); } } } }