From 5b029fe5752c11e8de2e683c857db547e90a45be Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 7 Jul 2016 14:06:10 +0200 Subject: Slim pdf_annot struct: remove cached annot_type and widget_type fields. --- include/mupdf/pdf/annot.h | 4 ---- include/mupdf/pdf/widget.h | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'include') 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. -- cgit v1.2.3