diff options
Diffstat (limited to 'src/websnap.h')
-rw-r--r-- | src/websnap.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/websnap.h b/src/websnap.h index d1006c18..41db8c71 100644 --- a/src/websnap.h +++ b/src/websnap.h @@ -89,7 +89,29 @@ public: * @return the pixmap snapped from the page */ static QPixmap renderPagePreview(const QWebPage &page, int w = WIDTH, int h = HEIGHT); + + /** + * Snaps a pixmap of size w * h from a visible page + * + * @param page the page to snap + * @param w the image width + * @param h the image height + * + * @return the pixmap snapped from the page + */ + static QPixmap renderVisiblePagePreview(const QWebPage &page, int w = WIDTH, int h = HEIGHT); + + /** + * Snaps a pixmap of size w * h from a visible page + * + * @param page the page to snap + * @param w the image width + * @param h the image height + * + * @return the pixmap snapped from the page + */ + static QPixmap renderClosingPagePreview(const QWebPage &page, int w = WIDTH, int h = HEIGHT); /** * Snaps a pixmap of size w * h from a page for tab preview |