本文整理汇总了C++中MainFrame::pageOverlayController方法的典型用法代码示例。如果您正苦于以下问题:C++ MainFrame::pageOverlayController方法的具体用法?C++ MainFrame::pageOverlayController怎么用?C++ MainFrame::pageOverlayController使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MainFrame
的用法示例。
在下文中一共展示了MainFrame::pageOverlayController方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: hideRegionOverlay
void DebugPageOverlays::hideRegionOverlay(MainFrame& frame, RegionType regionType)
{
auto it = m_frameRegionOverlays.find(&frame);
if (it != m_frameRegionOverlays.end()) {
auto& visualizers = it->value;
if (RegionOverlay* visualizer = visualizers[indexOf(regionType)].get()) {
frame.pageOverlayController().uninstallPageOverlay(&visualizer->overlay(), PageOverlay::FadeMode::DoNotFade);
visualizers[indexOf(regionType)] = nullptr;
}
}
}
示例2: layerTreeAsText
String MockPageOverlayClient::layerTreeAsText(MainFrame& mainFrame)
{
return "View-relative:\n" + mainFrame.pageOverlayController().viewOverlayRootLayer().layerTreeAsText(LayerTreeAsTextIncludePageOverlayLayers) + "\n\nDocument-relative:\n" + mainFrame.pageOverlayController().documentOverlayRootLayer().layerTreeAsText(LayerTreeAsTextIncludePageOverlayLayers);
}
示例3: showRegionOverlay
void DebugPageOverlays::showRegionOverlay(MainFrame& frame, RegionType regionType)
{
RegionOverlay& visualizer = ensureRegionOverlayForFrame(frame, regionType);
frame.pageOverlayController().installPageOverlay(&visualizer.overlay(), PageOverlay::FadeMode::DoNotFade);
}
示例4: installOverlay
void MockPageOverlayClient::installOverlay(MainFrame& mainFrame, PageOverlay::OverlayType overlayType)
{
RefPtr<PageOverlay> overlay = PageOverlay::create(*this, overlayType);
mainFrame.pageOverlayController().installPageOverlay(overlay, PageOverlay::FadeMode::DoNotFade);
m_overlays.add(overlay.get());
}