diff options
author | Tor Andersson <tor@ghostscript.com> | 2010-06-21 02:41:21 +0200 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2010-06-21 02:41:21 +0200 |
commit | 9a0ea9019264614956e822f25af201815d3160f6 (patch) | |
tree | 91ea3d9fba03838306f2120c68ccd68c7c2434e5 /apps/pdfapp.h | |
parent | 7d99b0fdbdcfb802bee9222bd0e90ed4fde2515d (diff) | |
download | mupdf-9a0ea9019264614956e822f25af201815d3160f6.tar.xz |
Implement searching for text within the current page.
Diffstat (limited to 'apps/pdfapp.h')
-rw-r--r-- | apps/pdfapp.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/pdfapp.h b/apps/pdfapp.h index dc19be58..cc4e9e22 100644 --- a/apps/pdfapp.h +++ b/apps/pdfapp.h @@ -40,7 +40,6 @@ struct pdfapp_s int resolution; int rotate; fz_pixmap *image; - fz_textspan *text; /* current page params */ int pageno; @@ -70,6 +69,8 @@ struct pdfapp_s /* search state */ int isediting; char search[512]; + int hit; + int hitlen; /* client context storage */ void *userdata; @@ -86,4 +87,5 @@ void pdfapp_onmouse(pdfapp_t *app, int x, int y, int btn, int modifiers, int sta void pdfapp_oncopy(pdfapp_t *app, unsigned short *ucsbuf, int ucslen); void pdfapp_onresize(pdfapp_t *app, int w, int h); -extern void pdfapp_invert(pdfapp_t *app, fz_bbox rect); +void pdfapp_invert(pdfapp_t *app, fz_bbox rect); +void pdfapp_inverthit(pdfapp_t *app); |