summaryrefslogtreecommitdiff
path: root/fitz
diff options
context:
space:
mode:
authorPaul Gardiner <paul@glidos.net>2012-07-16 10:42:02 +0100
committerPaul Gardiner <paul@glidos.net>2012-07-17 12:57:39 +0100
commit4387a60412b2c24f6961d0e3cc45ed97c7f05d5a (patch)
treea01081c905cf51ee1672ec36feb75192d26ea1bd /fitz
parentee93773f786228f8f199cf547f7af6e456a90741 (diff)
downloadmupdf-4387a60412b2c24f6961d0e3cc45ed97c7f05d5a.tar.xz
Forms: remove unhelpful type distinction
Diffstat (limited to 'fitz')
-rw-r--r--fitz/doc_interactive.c8
-rw-r--r--fitz/fitz.h13
2 files changed, 8 insertions, 13 deletions
diff --git a/fitz/doc_interactive.c b/fitz/doc_interactive.c
index b781f972..6dc04cf0 100644
--- a/fitz/doc_interactive.c
+++ b/fitz/doc_interactive.c
@@ -31,22 +31,22 @@ fz_widget *fz_next_widget(fz_interactive *idoc, fz_widget *previous)
return pdf_next_widget(previous);
}
-char *fz_widget_text_get_text(fz_interactive *idoc, fz_widget_text *tw)
+char *fz_widget_text_get_text(fz_interactive *idoc, fz_widget *tw)
{
return pdf_widget_text_get_text((pdf_document *)idoc, tw);
}
-int fz_widget_text_get_max_len(fz_interactive *idoc, fz_widget_text *tw)
+int fz_widget_text_get_max_len(fz_interactive *idoc, fz_widget *tw)
{
return pdf_widget_text_get_max_len((pdf_document *)idoc, tw);
}
-int fz_widget_text_get_content_type(fz_interactive *idoc, fz_widget_text *tw)
+int fz_widget_text_get_content_type(fz_interactive *idoc, fz_widget *tw)
{
return pdf_widget_text_get_content_type((pdf_document *)idoc, tw);
}
-void fz_widget_text_set_text(fz_interactive *idoc, fz_widget_text *tw, char *text)
+void fz_widget_text_set_text(fz_interactive *idoc, fz_widget *tw, char *text)
{
pdf_widget_text_set_text((pdf_document *)idoc, tw, text);
}
diff --git a/fitz/fitz.h b/fitz/fitz.h
index 5bff0af5..24b7f1da 100644
--- a/fitz/fitz.h
+++ b/fitz/fitz.h
@@ -2403,11 +2403,6 @@ typedef struct fz_ui_event_s
typedef struct fz_widget_s fz_widget;
/*
- Specific types of widget
-*/
-typedef struct fz_widget_text_s fz_widget_text;
-
-/*
Obtain an interface for interaction from a document.
For document types that don't support interaction, NULL
is returned.
@@ -2480,24 +2475,24 @@ fz_rect *fz_widget_get_bbox(fz_widget *widget);
fz_widget_text_get_text: Get the text currently displayed in
a text widget.
*/
-char *fz_widget_text_get_text(fz_interactive *idoc, fz_widget_text *tw);
+char *fz_widget_text_get_text(fz_interactive *idoc, fz_widget *tw);
/*
fz_widget_text_max_len: get the maximum number of
characters permitted in a text widget
*/
-int fz_widget_text_get_max_len(fz_interactive *idoc, fz_widget_text *tw);
+int fz_widget_text_get_max_len(fz_interactive *idoc, fz_widget *tw);
/*
fz_widget_text_get_content_type: get the type of content
required by a text widget
*/
-int fz_widget_text_get_content_type(fz_interactive *idoc, fz_widget_text *tw);
+int fz_widget_text_get_content_type(fz_interactive *idoc, fz_widget *tw);
/*
fz_widget_text_set_text: Update the text of a text widget.
*/
-void fz_widget_text_set_text(fz_interactive *idoc, fz_widget_text *tw, char *text);
+void fz_widget_text_set_text(fz_interactive *idoc, fz_widget *tw, char *text);
typedef struct fz_write_options_s fz_write_options;