当前位置: 首页>>代码示例>>C++>>正文


C++ MouseEventWithHitTestResults类代码示例

本文整理汇总了C++中MouseEventWithHitTestResults的典型用法代码示例。如果您正苦于以下问题:C++ MouseEventWithHitTestResults类的具体用法?C++ MouseEventWithHitTestResults怎么用?C++ MouseEventWithHitTestResults使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了MouseEventWithHitTestResults类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: passWidgetMouseDownEventToWidget

bool EventHandler::passWidgetMouseDownEventToWidget(const MouseEventWithHitTestResults& event)
{
    // Figure out which view to send the event to.
    if (!event.targetNode() || !event.targetNode()->renderer() || !event.targetNode()->renderer()->isWidget())
        return false;
    return passMouseDownEventToWidget(toRenderWidget(event.targetNode()->renderer())->widget());
}
开发者ID:achellies,项目名称:WinCEWebKit,代码行数:7,代码来源:EventHandlerChromium.cpp

示例2: passWidgetMouseDownEventToWidget

bool EventHandler::passWidgetMouseDownEventToWidget(const MouseEventWithHitTestResults& event)
{
    // Figure out which view to send the event to.
    RenderObject* target = event.targetNode() ? event.targetNode()->renderer() : nullptr;
    if (!is<RenderWidget>(target))
        return false;
    return passMouseDownEventToWidget(downcast<RenderWidget>(*target).widget());
}
开发者ID:Comcast,项目名称:WebKitForWayland,代码行数:8,代码来源:EventHandlerGtk.cpp

示例3: passWidgetMouseDownEventToWidget

bool EventHandler::passWidgetMouseDownEventToWidget(const MouseEventWithHitTestResults& event)
{
    // Figure out which view to send the event to.
    RenderObject* target = event.targetNode() ? event.targetNode()->renderer() : 0;
    if (!target || !target->isWidget())
        return false;

    return passMouseDownEventToWidget(static_cast<RenderWidget*>(target)->widget());
}
开发者ID:acss,项目名称:owb-mirror,代码行数:9,代码来源:EventHandlerGtk.cpp

示例4: 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;
}
开发者ID:1833183060,项目名称:wke,代码行数:7,代码来源:EventHandlerWin.cpp

示例5: 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;
}
开发者ID:Happy-Ferret,项目名称:webkit.js,代码行数:9,代码来源:EventHandlerWin.cpp

示例6: 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;
}
开发者ID:arjunroy,项目名称:cinder_webkit,代码行数:18,代码来源:EventHandlerChromium.cpp

示例7: passMouseReleaseEventToSubframe

bool EventHandler::passMouseReleaseEventToSubframe(MouseEventWithHitTestResults& mev, Frame* subframe)
{
    subframe->eventHandler().handleMouseReleaseEvent(mev.event());
    return true;
}
开发者ID:webOS-ports,项目名称:webkit,代码行数:5,代码来源:EventHandlerQt.cpp

示例8: passMouseMoveEventToSubframe

bool EventHandler::passMouseMoveEventToSubframe(MouseEventWithHitTestResults& mev, Frame* subframe, HitTestResult* hoveredNode)
{
    subframe->eventHandler().handleMouseMoveEvent(mev.event(), hoveredNode);
    return true;
}
开发者ID:webOS-ports,项目名称:webkit,代码行数:5,代码来源:EventHandlerQt.cpp

示例9: passMouseMoveEventToSubframe

bool EventHandler::passMouseMoveEventToSubframe(MouseEventWithHitTestResults& mev, Frame* subframe, WebCore::HitTestResult* hittest)
{
    subframe->eventHandler()->handleMouseMoveEvent(mev.event(), hittest);
    return true;
}
开发者ID:0omega,项目名称:platform_external_webkit,代码行数:5,代码来源:EventHandlerWx.cpp

示例10: passSubframeEventToSubframe

bool FrameGdk::passSubframeEventToSubframe(MouseEventWithHitTestResults& mev, Frame*)
{
    if (mev.targetNode() == 0)
        return true;
    return false;
}
开发者ID:oroisec,项目名称:ios,代码行数:6,代码来源:FrameGdk.cpp


注:本文中的MouseEventWithHitTestResults类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。