sdlgesture.inc 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. //from "sdl_gesture.h"
  2. type
  3. PPSDL_GestureID = ^PSDL_GestureID;
  4. PSDL_GestureID = ^TSDL_GestureID;
  5. TSDL_GestureID = type cint64;
  6. {* Function prototypes *}
  7. {/**
  8. * Begin recording a gesture on a specified touch device or all touch devices.
  9. *
  10. * If the parameter `touchId` is -1 (i.e., all devices), this function will
  11. * always return 1, regardless of whether there actually are any devices.
  12. *
  13. * \param touchId the touch device id, or -1 for all touch devices
  14. * \returns 1 on success or 0 if the specified device could not be found.
  15. *
  16. * \since This function is available since SDL 2.0.0.
  17. *
  18. * \sa SDL_GetTouchDevice
  19. *}
  20. function SDL_RecordGesture(touchId: TSDL_TouchID): cint; cdecl;
  21. external {$IFDEF DYNAMIC_LINK}SDL_LibName{$ENDIF} {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_RecordGesture' {$ENDIF} {$ENDIF};
  22. {**
  23. * Save all currently loaded Dollar Gesture templates.
  24. *
  25. * \param dst a SDL_RWops to save to
  26. * \returns the number of saved templates on success or 0 on failure; call
  27. * SDL_GetError() for more information.
  28. *
  29. * \since This function is available since SDL 2.0.0.
  30. *
  31. * \sa SDL_LoadDollarTemplates
  32. * \sa SDL_SaveDollarTemplate
  33. *}
  34. function SDL_SaveAllDollarTemplates(dst: PSDL_RWops): cint; cdecl;
  35. external {$IFDEF DYNAMIC_LINK}SDL_LibName{$ENDIF} {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_SaveAllDollarTemplates' {$ENDIF} {$ENDIF};
  36. {**
  37. * Save a currently loaded Dollar Gesture template.
  38. *
  39. * \param gestureId a gesture id
  40. * \param dst a SDL_RWops to save to
  41. * \returns 1 on success or 0 on failure; call SDL_GetError() for more
  42. * information.
  43. *
  44. * \since This function is available since SDL 2.0.0.
  45. *
  46. * \sa SDL_LoadDollarTemplates
  47. * \sa SDL_SaveAllDollarTemplates
  48. *}
  49. function SDL_SaveDollarTemplate(gestureId: TSDL_GestureID; dst: PSDL_RWops): cint; cdecl;
  50. external {$IFDEF DYNAMIC_LINK}SDL_LibName{$ENDIF} {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_SaveDollarTemplate' {$ENDIF} {$ENDIF};
  51. {**
  52. * Load Dollar Gesture templates from a file.
  53. *
  54. * \param touchId a touch id
  55. * \param src a SDL_RWops to load from
  56. * \returns the number of loaded templates on success or a negative error code
  57. * (or 0) on failure; call SDL_GetError() for more information.
  58. *
  59. * \since This function is available since SDL 2.0.0.
  60. *
  61. * \sa SDL_SaveAllDollarTemplates
  62. * \sa SDL_SaveDollarTemplate
  63. *}
  64. function SDL_LoadDollarTemplates(touchId: TSDL_TouchID; src: PSDL_RWops): cint; cdecl;
  65. external {$IFDEF DYNAMIC_LINK}SDL_LibName{$ENDIF} {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_LoadDollarTemplates' {$ENDIF} {$ENDIF};