Issue #116: Navigate to text

This commit is contained in:
Jakub Melka
2023-12-02 15:40:11 +01:00
parent a892c192fc
commit 288eead65e
6 changed files with 175 additions and 70 deletions

View File

@ -288,6 +288,11 @@ public:
/// \param pageIndex Page to scroll to
void goToPage(PDFInteger pageIndex);
/// Go to the specified page and ensures point on the page is visible
/// \param pageIndex Page to scroll to
/// \param ensureVisibleRect Rectangle on page, which should be visible
void goToPageAndEnsureVisible(PDFInteger pageIndex, QRectF ensureVisibleRect);
/// Returns current zoom from widget space to device space. So, for example 2.00 corresponds to 200% zoom,
/// and each 1 cm of widget area corresponds to 0.5 cm of the device space area.
PDFReal getZoom() const { return m_zoom; }