/** * Return the rectangle which is visible on screen, in document cooordinates * * Or NULL if the page is not visible */ Rectangle* XournalView::getVisibleRect(size_t page) { XOJ_CHECK_TYPE(XournalView); if (page == size_t_npos || page >= this->viewPagesLen) { return NULL; } PageView* p = this->viewPages[page]; return gtk_xournal_get_visible_area(this->widget, p); }
Rectangle* XournalView::getVisibleRect(XojPageView* redrawable) { XOJ_CHECK_TYPE(XournalView); return gtk_xournal_get_visible_area(this->widget, redrawable); }