Chromium Code Reviews| 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 is closer to the front. | |
|
Tom Sepez
2015/08/07 22:13:31
nit: are
Lei Zhang
2015/08/07 23:03:41
Done.
| |
| 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 FPDFLink_GetLinkZOrderAtPoint(FPDF_PAGE page, | |
| 215 double x, | |
| 216 double y); | |
| 217 | |
| 198 // Function: FPDFLink_GetDest | 218 // Function: FPDFLink_GetDest |
| 199 // Get destination info of a link. | 219 // Get destination info of a link. |
| 200 // Parameters: | 220 // Parameters: |
| 201 // document - Handle to the document. | 221 // document - Handle to the document. |
| 202 // link - Handle to the link. Returned by | 222 // link - Handle to the link. Returned by |
| 203 // FPDFLink_GetLinkAtPoint. | 223 // FPDFLink_GetLinkAtPoint. |
| 204 // Return value: | 224 // Return value: |
| 205 // Handle to the destination. NULL if there is no destination | 225 // Handle to the destination. NULL if there is no destination |
| 206 // associated with the link, in this case | 226 // associated with the link, in this case |
| 207 // the application should try FPDFLink_GetAction. | 227 // 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, | 341 DLLEXPORT unsigned long STDCALL FPDF_GetMetaText(FPDF_DOCUMENT doc, |
| 322 FPDF_BYTESTRING tag, | 342 FPDF_BYTESTRING tag, |
| 323 void* buffer, | 343 void* buffer, |
| 324 unsigned long buflen); | 344 unsigned long buflen); |
| 325 | 345 |
| 326 #ifdef __cplusplus | 346 #ifdef __cplusplus |
| 327 } | 347 } |
| 328 #endif | 348 #endif |
| 329 | 349 |
| 330 #endif // PUBLIC_FPDF_DOC_H_ | 350 #endif // PUBLIC_FPDF_DOC_H_ |
| OLD | NEW |