MCPcopy Create free account
hub / github.com/dillo-browser/dillo / handleEvent

Method handleEvent

dw/selection.cc:233–253  ·  view source on GitHub ↗

* \brief General form of dw::core::SelectionState::buttonPress, * dw::core::SelectionState::buttonRelease and * dw::core::SelectionState::buttonMotion. */

Source from the content-addressed store, hash-verified

231 * dw::core::SelectionState::buttonMotion.
232 */
233bool SelectionState::handleEvent (EventType eventType, Iterator *it,
234 int charPos, int linkNo,
235 MousePositionEvent *event)
236{
237 switch (eventType) {
238 case BUTTON_PRESS:
239 return buttonPress (it, charPos, linkNo, (EventButton*)event);
240
241 case BUTTON_RELEASE:
242 return buttonRelease (it, charPos, linkNo, (EventButton*)event);
243
244 case BUTTON_MOTION:
245 return buttonMotion (it, charPos, linkNo, (EventMotion*)event);
246
247
248 default:
249 misc::assertNotReached ();
250 }
251
252 return false;
253}
254
255
256/**

Callers 1

selectionHandleEventFunction · 0.80

Calls 1

assertNotReachedFunction · 0.85

Tested by

no test coverage detected