MCPcopy Create free account
hub / github.com/KDE/okular / isNormalizedRectangleFullyVisible

Method isNormalizedRectangleFullyVisible

core/document.cpp:2048–2056  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2046}
2047
2048bool DocumentPrivate::isNormalizedRectangleFullyVisible(const Okular::NormalizedRect &rectOfInterest, int rectPage)
2049{
2050 const auto &visibleRects = m_parent->visiblePageRects();
2051 return std::ranges::any_of(visibleRects, [&](VisiblePageRect *const it) {
2052 return it->pageNumber == rectPage //
2053 && it->rect.contains(rectOfInterest.left, rectOfInterest.top) //
2054 && it->rect.contains(rectOfInterest.right, rectOfInterest.bottom);
2055 });
2056}
2057
2058struct pdfsyncpoint {
2059 QString file;

Calls 1

containsMethod · 0.60

Tested by

no test coverage detected