void PlayStack::dispatchEvent(const XEvent& ev) { switch (ev.type) { case ButtonPress: dispatchButtonPress(ev); break; case EnterNotify: dispatchEnterNotify(); break; case LeaveNotify: dispatchLeaveNotify(); break; } }
void Card::dispatchEvent(const gi_msg_t& ev) { switch (ev.type) { case GI_MSG_BUTTON_DOWN: dispatchButtonPress(ev); break; case GI_MSG_MOUSE_ENTER: dispatchEnterNotify(ev); break; case GI_MSG_MOUSE_EXIT: dispatchLeaveNotify(ev); break; } }