inspoint.pp 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. {$MACRO ON}
  2. (******************************************************************************
  3. *
  4. * Copyright (c) 1995-2000 Palm, Inc. or its subsidiaries.
  5. * All rights reserved.
  6. *
  7. * File: InsPoint.h
  8. *
  9. * Release: Palm OS SDK 4.0 (63220)
  10. *
  11. * Description:
  12. * This file defines insertion point routines.
  13. *
  14. * History:
  15. * Jan 25, 1995 Created by Art Lamb
  16. *
  17. *****************************************************************************)
  18. {$IFNDEF FPC_DOTTEDUNITS}
  19. unit inspoint;
  20. {$ENDIF FPC_DOTTEDUNITS}
  21. interface
  22. {$IFDEF FPC_DOTTEDUNITS}
  23. uses PalmApi.Palmos, PalmApi.Coretraps, PalmApi.Systemmgr;
  24. {$ELSE FPC_DOTTEDUNITS}
  25. uses palmos, coretraps, systemmgr;
  26. {$ENDIF FPC_DOTTEDUNITS}
  27. // Blink interval is half of a second
  28. const
  29. insPtBlinkInterval = sysTicksPerSecond_ div 2;
  30. insPtWidth = 2;
  31. procedure InsPtInitialize; syscall sysTrapInsPtInitialize;
  32. procedure InsPtSetLocation(const x, y: Int16); syscall sysTrapInsPtSetLocation;
  33. procedure InsPtGetLocation(var x, y: Int16); syscall sysTrapInsPtGetLocation;
  34. procedure InsPtEnable(enableIt: Boolean); syscall sysTrapInsPtEnable;
  35. function InsPtEnabled: Boolean; syscall sysTrapInsPtEnabled;
  36. procedure InsPtSetHeight(const height: Int16); syscall sysTrapInsPtSetHeight;
  37. function InsPtGetHeight: Int16; syscall sysTrapInsPtGetHeight;
  38. procedure InsPtCheckBlink; syscall sysTrapInsPtCheckBlink;
  39. implementation
  40. end.