summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-07-07 14:06:10 +0200
committerTor Andersson <tor.andersson@artifex.com>2016-07-08 17:21:23 +0200
commit5b029fe5752c11e8de2e683c857db547e90a45be (patch)
treecfa6ed22c7f4785bfd66a5f3741b5ff6567bc99e /include
parentadc4932af62fde5e9eb1106f751659962cb89dc3 (diff)
downloadmupdf-5b029fe5752c11e8de2e683c857db547e90a45be.tar.xz
Slim pdf_annot struct: remove cached annot_type and widget_type fields.
Diffstat (limited to 'include')
-rw-r--r--include/mupdf/pdf/annot.h4
-rw-r--r--include/mupdf/pdf/widget.h4
2 files changed, 2 insertions, 6 deletions
diff --git a/include/mupdf/pdf/annot.h b/include/mupdf/pdf/annot.h
index 1773efae..ea6b2caa 100644
--- a/include/mupdf/pdf/annot.h
+++ b/include/mupdf/pdf/annot.h
@@ -66,8 +66,6 @@ struct pdf_annot_s
int ap_iteration;
pdf_annot *next;
pdf_annot *next_changed;
- int annot_type;
- int widget_type;
};
fz_link_dest pdf_parse_link_dest(fz_context *ctx, pdf_document *doc, fz_link_kind kind, pdf_obj *dest);
@@ -143,8 +141,6 @@ pdf_obj *pdf_annot_irt(fz_context *ctx, pdf_annot *annot);
*/
void pdf_set_free_text_details(fz_context *ctx, pdf_document *doc, pdf_annot *annot, fz_point *pos, char *text, char *font_name, float font_size, float color[3]);
-fz_annot_type pdf_annot_obj_type(fz_context *ctx, pdf_obj *obj);
-
/*
pdf_poll_changed_annot: enumerate the changed annotations recorded
by a call to pdf_update_page.
diff --git a/include/mupdf/pdf/widget.h b/include/mupdf/pdf/widget.h
index c5ed339b..5f2c38af 100644
--- a/include/mupdf/pdf/widget.h
+++ b/include/mupdf/pdf/widget.h
@@ -55,12 +55,12 @@ pdf_widget *pdf_next_widget(fz_context *ctx, pdf_widget *previous);
pdf_widget *pdf_create_widget(fz_context *ctx, pdf_document *doc, pdf_page *page, int type, char *fieldname);
/*
- pdf_widget_get_type: find out the type of a widget.
+ pdf_widget_type: find out the type of a widget.
The type determines what widget subclass the widget
can safely be cast to.
*/
-int pdf_widget_get_type(fz_context *ctx, pdf_widget *widget);
+int pdf_widget_type(fz_context *ctx, pdf_widget *widget);
/*
pdf_bound_widget: get the bounding box of a widget.