home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / oslib / oslib_1 / OSLib / Toolbox / h / draganobje < prev    next >
Encoding:
Text File  |  1995-06-20  |  3.1 KB  |  104 lines

  1. #ifndef draganobject_H
  2. #define draganobject_H
  3.  
  4. /* C header file for DragAnObject
  5.  * written by DefMod (Jun 20 1995) on Tue Jun 20 15:08:18 1995
  6.  * Written by Jonathan Coxhead, Acorn Computers Ltd
  7.  */
  8.  
  9. #ifndef types_H
  10. #include "types.h"
  11. #endif
  12.  
  13. #ifndef os_H
  14. #include "os.h"
  15. #endif
  16.  
  17. /**********************************
  18.  * SWI names and SWI reason codes *
  19.  **********************************/
  20. #undef  DragAnObject_Start
  21. #define DragAnObject_Start                      0x49C40
  22. #undef  XDragAnObject_Start
  23. #define XDragAnObject_Start                     0x69C40
  24. #undef  DragAnObject_Stop
  25. #define DragAnObject_Stop                       0x49C41
  26. #undef  XDragAnObject_Stop
  27. #define XDragAnObject_Stop                      0x69C41
  28.  
  29. /************************************
  30.  * Structure and union declarations *
  31.  ************************************/
  32. typedef struct draganobject_function_           *draganobject_function;
  33.  
  34. /************************
  35.  * Constant definitions *
  36.  ************************/
  37. #define draganobject_HPOS_LEFT                  0x0u
  38. #define draganobject_HPOS_CENTRE                0x1u
  39. #define draganobject_HPOS_RIGHT                 0x2u
  40. #define draganobject_VPOS_BOTTOM                0x0u
  41. #define draganobject_VPOS_CENTRE                0x4u
  42. #define draganobject_VPOS_TOP                   0x8u
  43. #define draganobject_NO_BOUND                   0x0u
  44. #define draganobject_BOUND_TO_WINDOW            0x10u
  45. #define draganobject_GIVEN_BBOX                 0x20u
  46. #define draganobject_BOUND_OBJECT               0x0u
  47. #define draganobject_BOUND_POINTER              0x40u
  48. #define draganobject_DROP_SHADOW                0x80u
  49. #define draganobject_NO_DITHER                  0x100u
  50. #define draganobject_SWI_FUNCTION               0x0u
  51. #define draganobject_CALL_FUNCTION              0x10000u
  52. #define draganobject_FUNCTION_SVC               0x20000u
  53.  
  54. /*************************
  55.  * Function declarations *
  56.  *************************/
  57.  
  58. #ifdef __cplusplus
  59.    extern "C" {
  60. #endif
  61.  
  62. /* ------------------------------------------------------------------------
  63.  * Function:      draganobject_start()
  64.  *
  65.  * Description:   Takes a copy of an object and starts a Wimp drag
  66.  *
  67.  * Input:         flags - value of R0 on entry
  68.  *                function - value of R1 on entry
  69.  *                register_block - value of R2 on entry
  70.  *                box - value of R3 on entry
  71.  *                bbox - value of R4 on entry
  72.  *
  73.  * Other notes:   Calls SWI 0x49C40.
  74.  */
  75.  
  76. extern os_error *xdraganobject_start (bits flags,
  77.       draganobject_function function,
  78.       os_register_block const *register_block,
  79.       os_box const *box,
  80.       os_box const *bbox);
  81. extern void draganobject_start (bits flags,
  82.       draganobject_function function,
  83.       os_register_block const *register_block,
  84.       os_box const *box,
  85.       os_box const *bbox);
  86.  
  87. /* ------------------------------------------------------------------------
  88.  * Function:      draganobject_stop()
  89.  *
  90.  * Description:   Terminates any current drag operation, and releases
  91.  *                workspace
  92.  *
  93.  * Other notes:   Calls SWI 0x49C41.
  94.  */
  95.  
  96. extern os_error *xdraganobject_stop (void);
  97. __swi (0x49C41) void draganobject_stop (void);
  98.  
  99. #ifdef __cplusplus
  100.    }
  101. #endif
  102.  
  103. #endif
  104.