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_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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 | 309 |
310 // Flags for Cursor type | 310 // Flags for Cursor type |
311 #define FXCT_ARROW 0 | 311 #define FXCT_ARROW 0 |
312 #define FXCT_NESW 1 | 312 #define FXCT_NESW 1 |
313 #define FXCT_NWSE 2 | 313 #define FXCT_NWSE 2 |
314 #define FXCT_VBEAM 3 | 314 #define FXCT_VBEAM 3 |
315 #define FXCT_HBEAM 4 | 315 #define FXCT_HBEAM 4 |
316 #define FXCT_HAND 5 | 316 #define FXCT_HAND 5 |
317 | 317 |
318 /** | 318 /** |
319 * Declares of a pointer type to the callback function for the FFI_SetTimer | 319 * Function signature for the callback function passed to the FFI_SetTimer |
320 *method. | 320 * method. |
321 * Parameters: | 321 * Parameters: |
322 * idEvent - Identifier of the timer. | 322 * idEvent - Identifier of the timer. |
323 * Return value: | 323 * Return value: |
324 * None. | 324 * None. |
325 **/ | 325 **/ |
326 typedef void (*TimerCallback)(int idEvent); | 326 typedef void (*TimerCallback)(int idEvent); |
327 | 327 |
328 /** | 328 /** |
329 * Declares of a struct type to the local system time. | 329 * Declares of a struct type to the local system time. |
330 **/ | 330 **/ |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 * pThis - Pointer to the interface structure itself. | 483 * pThis - Pointer to the interface structure itself. |
484 * nCursorType - Cursor type. see Flags for Cursor type for the | 484 * nCursorType - Cursor type. see Flags for Cursor type for the |
485 * details. | 485 * details. |
486 * Return value: | 486 * Return value: |
487 * None. | 487 * None. |
488 * */ | 488 * */ |
489 void (*FFI_SetCursor)(struct _FPDF_FORMFILLINFO* pThis, int nCursorType); | 489 void (*FFI_SetCursor)(struct _FPDF_FORMFILLINFO* pThis, int nCursorType); |
490 | 490 |
491 /** | 491 /** |
492 * Method: FFI_SetTimer | 492 * Method: FFI_SetTimer |
493 * This method installs a system timer. A time-out value is | 493 * This method installs a system timer. An interval value is specified, |
494 * specified, | 494 * and every time that interval elapses, the system must call into the |
495 * and every time a time-out occurs, the system passes a message to | 495 * callback function with the timer ID as returned by this function. |
496 * the TimerProc callback function. | |
497 * Interface Version: | 496 * Interface Version: |
498 * 1 | 497 * 1 |
499 * Implementation Required: | 498 * Implementation Required: |
500 * yes | 499 * yes |
501 * Parameters: | 500 * Parameters: |
502 * pThis - Pointer to the interface structure itself. | 501 * pThis - Pointer to the interface structure itself. |
503 * uElapse - Specifies the time-out value, in milliseconds. | 502 * uElapse - Specifies the time-out value, in milliseconds. |
504 * lpTimerFunc - A pointer to the callback function-TimerCallback. | 503 * lpTimerFunc - A pointer to the callback function-TimerCallback. |
505 * Return value: | 504 * Return value: |
506 * The timer identifier of the new timer if the function is successful. | 505 * The timer identifier of the new timer if the function is successful. |
507 * An application passes this value to the FFI_KillTimer method to kill | 506 * An application passes this value to the FFI_KillTimer method to kill |
508 * the timer. Nonzero if it is successful; otherwise, it is zero. | 507 * the timer. Nonzero if it is successful; otherwise, it is zero. |
509 * */ | 508 * */ |
510 int (*FFI_SetTimer)(struct _FPDF_FORMFILLINFO* pThis, | 509 int (*FFI_SetTimer)(struct _FPDF_FORMFILLINFO* pThis, |
511 int uElapse, | 510 int uElapse, |
512 TimerCallback lpTimerFunc); | 511 TimerCallback lpTimerFunc); |
513 | 512 |
514 /** | 513 /** |
515 * Method: FFI_KillTimer | 514 * Method: FFI_KillTimer |
516 * This method kills the timer event identified by nIDEvent, set by | 515 * This method uninstalls a system timer identified by nIDEvent, as |
517 * an earlier call to FFI_SetTimer. | 516 * set by an earlier call to FFI_SetTimer. |
518 * Interface Version: | 517 * Interface Version: |
519 * 1 | 518 * 1 |
520 * Implementation Required: | 519 * Implementation Required: |
521 * yes | 520 * yes |
522 * Parameters: | 521 * Parameters: |
523 * pThis - Pointer to the interface structure itself. | 522 * pThis - Pointer to the interface structure itself. |
524 * nTimerID - The timer ID return by FFI_SetTimer function. | 523 * nTimerID - The timer ID returned by FFI_SetTimer function. |
525 * Return value: | 524 * Return value: |
526 * None. | 525 * None. |
527 * */ | 526 * */ |
528 void (*FFI_KillTimer)(struct _FPDF_FORMFILLINFO* pThis, int nTimerID); | 527 void (*FFI_KillTimer)(struct _FPDF_FORMFILLINFO* pThis, int nTimerID); |
529 | 528 |
530 /** | 529 /** |
531 * Method: FFI_GetLocalTime | 530 * Method: FFI_GetLocalTime |
532 * This method receives the current local time on the system. | 531 * This method receives the current local time on the system. |
533 * Interface Version: | 532 * Interface Version: |
534 * 1 | 533 * 1 |
535 * Implementation Required: | 534 * Implementation Required: |
(...skipping 1216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1752 FPDF_StringHandleAddString(FPDF_STRINGHANDLE stringHandle, | 1751 FPDF_StringHandleAddString(FPDF_STRINGHANDLE stringHandle, |
1753 FPDF_BYTESTRING bsText, | 1752 FPDF_BYTESTRING bsText, |
1754 FPDF_DWORD size); | 1753 FPDF_DWORD size); |
1755 #endif // PDF_ENABLE_XFA | 1754 #endif // PDF_ENABLE_XFA |
1756 | 1755 |
1757 #ifdef __cplusplus | 1756 #ifdef __cplusplus |
1758 } | 1757 } |
1759 #endif | 1758 #endif |
1760 | 1759 |
1761 #endif // PUBLIC_FPDF_FORMFILL_H_ | 1760 #endif // PUBLIC_FPDF_FORMFILL_H_ |
OLD | NEW |