Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(495)

Side by Side Diff: public/fpdf_formfill.h

Issue 1278053004: Add new public APIs to find the z-order for links and widgets. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: nits Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « public/fpdf_doc.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef PUBLIC_FPDF_FORMFILL_H_ 7 #ifndef PUBLIC_FPDF_FORMFILL_H_
8 #define PUBLIC_FPDF_FORMFILL_H_ 8 #define PUBLIC_FPDF_FORMFILL_H_
9 9
10 #include "fpdfview.h" 10 #include "fpdfview.h"
(...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after
955 // Field Types 955 // Field Types
956 #define FPDF_FORMFIELD_UNKNOWN 0 // Unknown. 956 #define FPDF_FORMFIELD_UNKNOWN 0 // Unknown.
957 #define FPDF_FORMFIELD_PUSHBUTTON 1 // push button type. 957 #define FPDF_FORMFIELD_PUSHBUTTON 1 // push button type.
958 #define FPDF_FORMFIELD_CHECKBOX 2 // check box type. 958 #define FPDF_FORMFIELD_CHECKBOX 2 // check box type.
959 #define FPDF_FORMFIELD_RADIOBUTTON 3 // radio button type. 959 #define FPDF_FORMFIELD_RADIOBUTTON 3 // radio button type.
960 #define FPDF_FORMFIELD_COMBOBOX 4 // combo box type. 960 #define FPDF_FORMFIELD_COMBOBOX 4 // combo box type.
961 #define FPDF_FORMFIELD_LISTBOX 5 // list box type. 961 #define FPDF_FORMFIELD_LISTBOX 5 // list box type.
962 #define FPDF_FORMFIELD_TEXTFIELD 6 // text field type. 962 #define FPDF_FORMFIELD_TEXTFIELD 6 // text field type.
963 963
964 /** 964 /**
965 * Function: FPDFPage_HasFormFieldAtPoint
966 * Get the form field type by point.
967 * Parameters:
968 * hHandle - Handle to the form fill module. Returned by
969 * FPDFDOC_InitFormFillEnvironment().
970 * page - Handle to the page. Returned by FPDF_LoadPage().
971 * page_x - X position in PDF "user space".
972 * page_y - Y position in PDF "user space".
973 * Return Value:
974 * Return the type of the form field; -1 indicates no field.
975 * See field types above.
976 **/
977 DLLEXPORT int STDCALL FPDFPage_HasFormFieldAtPoint(FPDF_FORMHANDLE hHandle,
978 FPDF_PAGE page,
979 double page_x,
980 double page_y);
981
982 /**
965 * Function: FPDPage_HasFormFieldAtPoint 983 * Function: FPDPage_HasFormFieldAtPoint
966 * Check the form filed position by point. 984 * DEPRECATED. Please use FPDFPage_HasFormFieldAtPoint.
967 * Parameters:
968 * hHandle - Handle to the form fill module. Returned by
969 *FPDFDOC_InitFormFillEnvironment.
970 * page - Handle to the page. Returned by FPDF_LoadPage
971 *function.
972 * page_x - X position in PDF "user space".
973 * page_y - Y position in PDF "user space".
974 * Return Value:
975 * Return the type of the formfiled; -1 indicates no fields.
976 **/ 985 **/
977 DLLEXPORT int STDCALL FPDPage_HasFormFieldAtPoint(FPDF_FORMHANDLE hHandle, 986 DLLEXPORT int STDCALL FPDPage_HasFormFieldAtPoint(FPDF_FORMHANDLE hHandle,
978 FPDF_PAGE page, 987 FPDF_PAGE page,
979 double page_x, 988 double page_x,
980 double page_y); 989 double page_y);
981 990
982 /** 991 /**
992 * Function: FPDFPage_FormFieldZOrderAtPoint
993 * Get the form field z-order by point.
994 * Parameters:
995 * hHandle - Handle to the form fill module. Returned by
996 * FPDFDOC_InitFormFillEnvironment().
997 * page - Handle to the page. Returned by FPDF_LoadPage().
998 * page_x - X position in PDF "user space".
999 * page_y - Y position in PDF "user space".
1000 * Return Value:
1001 * Return the z-order of the form field; -1 indicates no field.
1002 * Higher numbers are closer to the front.
1003 **/
1004 DLLEXPORT int STDCALL FPDFPage_FormFieldZOrderAtPoint(FPDF_FORMHANDLE hHandle,
1005 FPDF_PAGE page,
1006 double page_x,
1007 double page_y);
1008
1009 /**
983 * Function: FPDF_SetFormFieldHighlightColor 1010 * Function: FPDF_SetFormFieldHighlightColor
984 * Set the highlight color of specified or all the form fields in the 1011 * Set the highlight color of specified or all the form fields in the
985 *document. 1012 *document.
986 * Parameters: 1013 * Parameters:
987 * hHandle - Handle to the form fill module. Returned by 1014 * hHandle - Handle to the form fill module. Returned by
988 *FPDFDOC_InitFormFillEnvironment. 1015 *FPDFDOC_InitFormFillEnvironment.
989 * doc - Handle to the document. Returned by 1016 * doc - Handle to the document. Returned by
990 *FPDF_LoadDocument function. 1017 *FPDF_LoadDocument function.
991 * fieldType - A 32-bit integer indicating the type of a form 1018 * fieldType - A 32-bit integer indicating the type of a form
992 *field(defined above). 1019 *field(defined above).
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
1079 int size_x, 1106 int size_x,
1080 int size_y, 1107 int size_y,
1081 int rotate, 1108 int rotate,
1082 int flags); 1109 int flags);
1083 1110
1084 #ifdef __cplusplus 1111 #ifdef __cplusplus
1085 } 1112 }
1086 #endif 1113 #endif
1087 1114
1088 #endif // PUBLIC_FPDF_FORMFILL_H_ 1115 #endif // PUBLIC_FPDF_FORMFILL_H_
OLDNEW
« no previous file with comments | « public/fpdf_doc.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698