* \brief General form of dw::core::SelectionState::buttonPress, * dw::core::SelectionState::buttonRelease and * dw::core::SelectionState::buttonMotion. */
| 231 | * dw::core::SelectionState::buttonMotion. |
| 232 | */ |
| 233 | bool 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 | /** |
no test coverage detected