本文整理汇总了C++中MouseEventWithHitTestResults::event方法的典型用法代码示例。如果您正苦于以下问题:C++ MouseEventWithHitTestResults::event方法的具体用法?C++ MouseEventWithHitTestResults::event怎么用?C++ MouseEventWithHitTestResults::event使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MouseEventWithHitTestResults
的用法示例。
在下文中一共展示了MouseEventWithHitTestResults::event方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: passMouseMoveEventToSubframe
bool EventHandler::passMouseMoveEventToSubframe(MouseEventWithHitTestResults& mev, Frame* subframe, HitTestResult* hoveredNode)
{
if (m_mouseDownMayStartDrag && !m_mouseDownWasInSubframe)
return false;
subframe->eventHandler()->handleMouseMoveEvent(mev.event(), hoveredNode);
return true;
}
示例2: passMouseMoveEventToSubframe
bool EventHandler::passMouseMoveEventToSubframe(MouseEventWithHitTestResults& mev, Frame* subframe, HitTestResult* hoveredNode)
{
#if ENABLE(DRAG_SUPPORT)
if (m_mouseDownMayStartDrag && !m_mouseDownWasInSubframe)
return false;
#endif
subframe->eventHandler().handleMouseMoveEvent(mev.event(), hoveredNode);
return true;
}
示例3: passMousePressEventToSubframe
bool EventHandler::passMousePressEventToSubframe(MouseEventWithHitTestResults& mev, Frame* subframe)
{
// If we're clicking into a frame that is selected, the frame will appear
// greyed out even though we're clicking on the selection. This looks
// really strange (having the whole frame be greyed out), so we deselect the
// selection.
IntPoint p = m_frame->view()->windowToContents(mev.event().pos());
if (m_frame->selection()->contains(p)) {
VisiblePosition visiblePos(
mev.targetNode()->renderer()->positionForPoint(mev.localPoint()));
Selection newSelection(visiblePos);
if (m_frame->shouldChangeSelection(newSelection))
m_frame->selection()->setSelection(newSelection);
}
subframe->eventHandler()->handleMousePressEvent(mev.event());
return true;
}
示例4: passMouseReleaseEventToSubframe
bool EventHandler::passMouseReleaseEventToSubframe(MouseEventWithHitTestResults& mev, Frame* subframe)
{
subframe->eventHandler().handleMouseReleaseEvent(mev.event());
return true;
}
示例5: passMouseMoveEventToSubframe
bool EventHandler::passMouseMoveEventToSubframe(MouseEventWithHitTestResults& mev, Frame* subframe, HitTestResult* hoveredNode)
{
subframe->eventHandler().handleMouseMoveEvent(mev.event(), hoveredNode);
return true;
}
示例6: passMouseMoveEventToSubframe
bool EventHandler::passMouseMoveEventToSubframe(MouseEventWithHitTestResults& mev, Frame* subframe, WebCore::HitTestResult* hittest)
{
subframe->eventHandler()->handleMouseMoveEvent(mev.event(), hittest);
return true;
}