OLD | NEW |
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_DOC_H_ | 7 #ifndef PUBLIC_FPDF_DOC_H_ |
8 #define PUBLIC_FPDF_DOC_H_ | 8 #define PUBLIC_FPDF_DOC_H_ |
9 | 9 |
10 #include "fpdfview.h" | 10 #include "fpdfview.h" |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 // Parameters: | 170 // Parameters: |
171 // document - Handle to the document. | 171 // document - Handle to the document. |
172 // dest - Handle to the destination. | 172 // dest - Handle to the destination. |
173 // Return value: | 173 // Return value: |
174 // The page index. Starting from 0 for the first page. | 174 // The page index. Starting from 0 for the first page. |
175 // | 175 // |
176 DLLEXPORT unsigned long STDCALL FPDFDest_GetPageIndex(FPDF_DOCUMENT document, | 176 DLLEXPORT unsigned long STDCALL FPDFDest_GetPageIndex(FPDF_DOCUMENT document, |
177 FPDF_DEST dest); | 177 FPDF_DEST dest); |
178 | 178 |
179 // Function: FPDFLink_GetLinkAtPoint | 179 // Function: FPDFLink_GetLinkAtPoint |
180 // Find a link at specified point on a document page. | 180 // Find a link at specified point on a document page. |
181 // Parameters: | 181 // Parameters: |
182 // page - Handle to the document page. | 182 // page - Handle to the document page. |
183 // x - The x coordinate of the point, specified in page | 183 // x - The x coordinate of the point, specified in page |
184 // coordinate system. | 184 // coordinate system. |
185 // y - The y coordinate of the point, specified in page | 185 // y - The y coordinate of the point, specified in page |
186 // coordinate system. | 186 // coordinate system. |
187 // Return value: | 187 // Return value: |
188 // Handle to the link. NULL if no link found at that point. | 188 // Handle to the link. NULL if no link found at that point. |
189 // Comments: | 189 // Comments: |
190 // The point coordinates are specified in page coordinate system. You | 190 // The point coordinates are specified in page coordinate system. You can |
191 // can convert coordinates | 191 // convert coordinates from screen system to page system using |
192 // from screen system to page system using FPDF_DeviceToPage functions. | 192 // FPDF_DeviceToPage(). |
193 // | 193 // |
194 DLLEXPORT FPDF_LINK STDCALL FPDFLink_GetLinkAtPoint(FPDF_PAGE page, | 194 DLLEXPORT FPDF_LINK STDCALL FPDFLink_GetLinkAtPoint(FPDF_PAGE page, |
195 double x, | 195 double x, |
196 double y); | 196 double y); |
197 | 197 |
| 198 // Function: FPDFLink_GetLinkZOrderAtPoint |
| 199 // Find the z-order of a link at specified point on a document page. |
| 200 // Parameters: |
| 201 // page - Handle to the document page. |
| 202 // x - The x coordinate of the point, specified in page |
| 203 // coordinate system. |
| 204 // y - The y coordinate of the point, specified in page |
| 205 // coordinate system. |
| 206 // Return value: |
| 207 // Z-order of the link, or -1 if no link found at that point. |
| 208 // Higher numbers are closer to the front. |
| 209 // Comments: |
| 210 // The point coordinates are specified in page coordinate system. You can |
| 211 // convert coordinates from screen system to page system using |
| 212 // FPDF_DeviceToPage(). |
| 213 // |
| 214 DLLEXPORT int STDCALL |
| 215 FPDFLink_GetLinkZOrderAtPoint(FPDF_PAGE page, double x, double y); |
| 216 |
198 // Function: FPDFLink_GetDest | 217 // Function: FPDFLink_GetDest |
199 // Get destination info of a link. | 218 // Get destination info of a link. |
200 // Parameters: | 219 // Parameters: |
201 // document - Handle to the document. | 220 // document - Handle to the document. |
202 // link - Handle to the link. Returned by | 221 // link - Handle to the link. Returned by |
203 // FPDFLink_GetLinkAtPoint. | 222 // FPDFLink_GetLinkAtPoint. |
204 // Return value: | 223 // Return value: |
205 // Handle to the destination. NULL if there is no destination | 224 // Handle to the destination. NULL if there is no destination |
206 // associated with the link, in this case | 225 // associated with the link, in this case |
207 // the application should try FPDFLink_GetAction. | 226 // the application should try FPDFLink_GetAction. |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 DLLEXPORT unsigned long STDCALL FPDF_GetMetaText(FPDF_DOCUMENT doc, | 340 DLLEXPORT unsigned long STDCALL FPDF_GetMetaText(FPDF_DOCUMENT doc, |
322 FPDF_BYTESTRING tag, | 341 FPDF_BYTESTRING tag, |
323 void* buffer, | 342 void* buffer, |
324 unsigned long buflen); | 343 unsigned long buflen); |
325 | 344 |
326 #ifdef __cplusplus | 345 #ifdef __cplusplus |
327 } | 346 } |
328 #endif | 347 #endif |
329 | 348 |
330 #endif // PUBLIC_FPDF_DOC_H_ | 349 #endif // PUBLIC_FPDF_DOC_H_ |
OLD | NEW |