summaryrefslogtreecommitdiff
path: root/fitz/doc_document.c
diff options
context:
space:
mode:
authorPaul Gardiner <paul@glidos.net>2012-05-08 12:35:00 +0100
committerPaul Gardiner <paul@glidos.net>2012-05-08 12:35:00 +0100
commit50b0de6e463ebd954b1a97a2cd093731335f1671 (patch)
tree9a632a6a346a8d4c941f636ca5fcf2ffb2e6bf0c /fitz/doc_document.c
parent6a6d2016149c731dfa3a485b1bf0b46d7127681d (diff)
downloadmupdf-50b0de6e463ebd954b1a97a2cd093731335f1671.tar.xz
Forms: handle field appearance change on mouse up/down
Diffstat (limited to 'fitz/doc_document.c')
-rw-r--r--fitz/doc_document.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/fitz/doc_document.c b/fitz/doc_document.c
index 22229892..18b9d557 100644
--- a/fitz/doc_document.c
+++ b/fitz/doc_document.c
@@ -129,3 +129,27 @@ fz_meta(fz_document *doc, int key, void *ptr, int size)
return doc->meta(doc, key, ptr, size);
return FZ_META_UNKNOWN_KEY;
}
+
+int
+fz_pass_event(fz_document *doc, fz_page *page, fz_ui_event *ui_event)
+{
+ if (doc && doc->pass_event)
+ return doc->pass_event(doc, page, ui_event);
+ return 0;
+}
+
+fz_rect *
+fz_get_screen_update(fz_document *doc)
+{
+ if (doc && doc->get_screen_update, doc)
+ return doc->get_screen_update(doc);
+ return NULL;
+}
+
+fz_widget *
+fz_get_focussed_widget(fz_document *doc)
+{
+ if (doc && doc->get_focussed_widget)
+ return doc->get_focussed_widget(doc);
+ return NULL;
+}