diff options
Diffstat (limited to 'include/mupdf/pdf/widget.h')
-rw-r--r-- | include/mupdf/pdf/widget.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/include/mupdf/pdf/widget.h b/include/mupdf/pdf/widget.h index 9f2745cc..45441e55 100644 --- a/include/mupdf/pdf/widget.h +++ b/include/mupdf/pdf/widget.h @@ -37,22 +37,22 @@ enum widget, e.g., to collect the text for a text widget, rather than routing key strokes through pdf_pass_event. */ -pdf_widget *pdf_focused_widget(pdf_document *doc); +pdf_widget *pdf_focused_widget(fz_context *ctx, pdf_document *doc); /* pdf_first_widget: get first widget when enumerating */ -pdf_widget *pdf_first_widget(pdf_document *doc, pdf_page *page); +pdf_widget *pdf_first_widget(fz_context *ctx, pdf_document *doc, pdf_page *page); /* pdf_next_widget: get next widget when enumerating */ -pdf_widget *pdf_next_widget(pdf_widget *previous); +pdf_widget *pdf_next_widget(fz_context *ctx, pdf_widget *previous); /* pdf_create_widget: create a new widget of a specific type */ -pdf_widget *pdf_create_widget(pdf_document *doc, pdf_page *page, int type, char *fieldname); +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. @@ -60,37 +60,37 @@ pdf_widget *pdf_create_widget(pdf_document *doc, pdf_page *page, int type, char The type determines what widget subclass the widget can safely be cast to. */ -int pdf_widget_get_type(pdf_widget *widget); +int pdf_widget_get_type(fz_context *ctx, pdf_widget *widget); /* pdf_bound_widget: get the bounding box of a widget. */ -fz_rect *pdf_bound_widget(pdf_widget *widget, fz_rect *); +fz_rect *pdf_bound_widget(fz_context *ctx, pdf_widget *widget, fz_rect *); /* pdf_text_widget_text: Get the text currently displayed in a text widget. */ -char *pdf_text_widget_text(pdf_document *doc, pdf_widget *tw); +char *pdf_text_widget_text(fz_context *ctx, pdf_document *doc, pdf_widget *tw); /* pdf_widget_text_max_len: get the maximum number of characters permitted in a text widget */ -int pdf_text_widget_max_len(pdf_document *doc, pdf_widget *tw); +int pdf_text_widget_max_len(fz_context *ctx, pdf_document *doc, pdf_widget *tw); /* pdf_text_widget_content_type: get the type of content required by a text widget */ -int pdf_text_widget_content_type(pdf_document *doc, pdf_widget *tw); +int pdf_text_widget_content_type(fz_context *ctx, pdf_document *doc, pdf_widget *tw); /* pdf_text_widget_set_text: Update the text of a text widget. The text is first validated and accepted only if it passes. The function returns whether validation passed. */ -int pdf_text_widget_set_text(pdf_document *doc, pdf_widget *tw, char *text); +int pdf_text_widget_set_text(fz_context *ctx, pdf_document *doc, pdf_widget *tw, char *text); /* pdf_choice_widget_options: get the list of options for a list @@ -98,13 +98,13 @@ int pdf_text_widget_set_text(pdf_document *doc, pdf_widget *tw, char *text); names within the supplied array. Should first be called with a NULL array to find out how big the array should be. */ -int pdf_choice_widget_options(pdf_document *doc, pdf_widget *tw, char *opts[]); +int pdf_choice_widget_options(fz_context *ctx, pdf_document *doc, pdf_widget *tw, char *opts[]); /* pdf_choice_widget_is_multiselect: returns whether a list box or combo box supports selection of multiple options */ -int pdf_choice_widget_is_multiselect(pdf_document *doc, pdf_widget *tw); +int pdf_choice_widget_is_multiselect(fz_context *ctx, pdf_document *doc, pdf_widget *tw); /* pdf_choice_widget_value: get the value of a choice widget. @@ -113,13 +113,13 @@ int pdf_choice_widget_is_multiselect(pdf_document *doc, pdf_widget *tw); with NULL as the array to find out how big the array need to be. The filled in elements should not be freed by the caller. */ -int pdf_choice_widget_value(pdf_document *doc, pdf_widget *tw, char *opts[]); +int pdf_choice_widget_value(fz_context *ctx, pdf_document *doc, pdf_widget *tw, char *opts[]); /* pdf_widget_set_value: set the value of a choice widget. The caller should pass the number of options selected and an array of their names */ -void pdf_choice_widget_set_value(pdf_document *doc, pdf_widget *tw, int n, char *opts[]); +void pdf_choice_widget_set_value(fz_context *ctx, pdf_document *doc, pdf_widget *tw, int n, char *opts[]); #endif |