ui::ObserverEvent MouseEventManager::getObserverEvent (const unsigned int& state) { unsigned int button = getButtonFlags(state); unsigned int modifierFlags = _modifiers.getKeyboardFlags(state); return findObserverEvent(button, modifierFlags); }
ui::XYViewEvent MouseEventManager::getXYViewEvent(wxMouseEvent& ev) { unsigned int button = getButtonFlags(ev); unsigned int modifierFlags = _modifiers.getKeyboardFlags(ev); return findXYViewEvent(button, modifierFlags); }
// The same as above, just with a state as argument rather than a GdkEventButton bool MouseEventManager::stateMatchesXYViewEvent (const ui::XYViewEvent& xyViewEvent, const unsigned int& state) { return matchXYViewEvent(xyViewEvent, getButtonFlags(state), _modifiers.getKeyboardFlags(state)); }
bool MouseEventManager::stateMatchesCameraViewEvent(const ui::CamViewEvent& camViewEvent, wxMouseEvent& ev) { return matchCameraViewEvent(camViewEvent, getButtonFlags(ev), _modifiers.getKeyboardFlags(ev)); }
bool MouseEventManager::stateMatchesObserverEvent(const ui::ObserverEvent& observerEvent, wxMouseEvent& ev) { return matchObserverEvent(observerEvent, getButtonFlags(ev), _modifiers.getKeyboardFlags(ev)); }
bool MouseEventManager::stateMatchesXYViewEvent(const ui::XYViewEvent& xyViewEvent, wxMouseEvent& ev) { return matchXYViewEvent(xyViewEvent, getButtonFlags(ev), _modifiers.getKeyboardFlags(ev)); }