diff options
author | Paul Gardiner <paul@glidos.net> | 2012-05-15 13:20:10 +0100 |
---|---|---|
committer | Paul Gardiner <paul@glidos.net> | 2012-05-15 13:20:10 +0100 |
commit | 407e39962d537d7c9cc38110cf37c0b93f329d0e (patch) | |
tree | ad053699f8bc9b8a221f786819e20cafa98f92a4 /fitz/doc_interactive.c | |
parent | 0b8667c0c3c85bf497b554bfa64375a13527cd1c (diff) | |
download | mupdf-407e39962d537d7c9cc38110cf37c0b93f329d0e.tar.xz |
Forms: make forms API separate to the main document API
This also provides a way to test whether interactive methods
are supported.
Diffstat (limited to 'fitz/doc_interactive.c')
-rw-r--r-- | fitz/doc_interactive.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/fitz/doc_interactive.c b/fitz/doc_interactive.c new file mode 100644 index 00000000..eccb9ffd --- /dev/null +++ b/fitz/doc_interactive.c @@ -0,0 +1,22 @@ +#include "fitz.h" +#include "mupdf-internal.h" + +/* + PDF is currently the only interactive format, so no need + to indirect through function pointers. +*/ + +int fz_pass_event(fz_interactive *idoc, fz_page *page, fz_ui_event *ui_event) +{ + return pdf_pass_event((pdf_document*)idoc, (pdf_page*)page, ui_event); +} + +fz_rect *fz_get_screen_update(fz_interactive *idoc) +{ + return pdf_get_screen_update((pdf_document*)idoc); +} + +fz_widget *fz_get_focussed_widget(fz_interactive *idoc) +{ + return pdf_get_focussed_widget((pdf_document*)idoc); +} |