home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / oslib / oslib_1 / OSLib / Toolbox / Hdr / Draggable < prev    next >
Encoding:
Text File  |  1995-09-05  |  3.8 KB  |  135 lines

  1. ;Assembler header file for Draggable
  2. ;written by DefMod (Jun 30 1995) on Tue Sep  5 16:30:03 1995
  3. ;Jonathan Coxhead, Acorn Computers Ltd
  4.  
  5.         [       :LNOT: :DEF: Get_Types
  6.         GBLS    Get_Types
  7.         ]
  8.         [       :LNOT: :DEF: Types_Hdr
  9. Get_Types                       SETS    "GET OS:Hdr.Types"
  10.         |
  11. Get_Types                       SETS    ""
  12.         ]
  13.         $Get_Types
  14.  
  15.         [       :LNOT: :DEF: Get_Toolbox
  16.         GBLS    Get_Toolbox
  17.         ]
  18.         [       :LNOT: :DEF: Toolbox_Hdr
  19. Get_Toolbox                     SETS    "GET OS:Hdr.Toolbox"
  20.         |
  21. Get_Toolbox                     SETS    ""
  22.         ]
  23.         $Get_Toolbox
  24.  
  25.         [       :LNOT: :DEF: Get_Window
  26.         GBLS    Get_Window
  27.         ]
  28.         [       :LNOT: :DEF: Window_Hdr
  29. Get_Window                      SETS    "GET OS:Hdr.Window"
  30.         |
  31. Get_Window                      SETS    ""
  32.         ]
  33.         $Get_Window
  34.  
  35.         [       :LNOT: :DEF: Draggable_Hdr
  36.         GBLS    Draggable_Hdr
  37.  
  38. ;Symbols for constants
  39. Class_Draggable                 *       &280
  40. Draggable_GenerateDragStarted   *       &1
  41. Draggable_Sprite                *       &2
  42. Draggable_Text                  *       &4
  43. Draggable_Type                  *       &38
  44. Draggable_TypeShift             *       3
  45. Draggable_TypeDrag              *       &0
  46. Draggable_TypeClickDrag         *       &1
  47. Draggable_TypeClickDoubleDrag   *       &2
  48. Draggable_UseToolboxIds         *       &40
  49. Draggable_DropShadow            *       &80
  50. Draggable_NoDither              *       &100
  51. Action_DraggableDragStarted     *       &82887
  52. Action_DraggableDragEnded       *       &82888
  53. Draggable_DragStartedAdjust     *       &1
  54. Draggable_DragStartedSelect     *       &4
  55. Draggable_DragStartedShift      *       &8
  56. Draggable_DragStartedCtrl       *       &10
  57.  
  58. ;Symbols for structure offsets and sizes
  59.                                 ^       0
  60. Draggable_Gadget_text           #       Toolbox_MsgReference
  61. Draggable_Gadget_text_limit     #       Int
  62. Draggable_Gadget_sprite_name    #       Toolbox_StringReference
  63. Draggable_Gadget_sprite_limit   #       Int
  64. Draggable_Gadget                *       @
  65.  
  66.                                 ^       0
  67. Draggable_ActionDragEnded_ids   *       @
  68. Draggable_ActionDragEnded_ids_wimp_w #       Wimp_W
  69. Draggable_ActionDragEnded_ids_wimp_i #       Wimp_I
  70.                                 ^       Draggable_ActionDragEnded_ids
  71. Draggable_ActionDragEnded_ids_toolbox_o #       Toolbox_O
  72. Draggable_ActionDragEnded_ids_toolbox_c #       Toolbox_C
  73. Draggable_ActionDragEnded_pos   #       OS_Coord
  74. Draggable_ActionDragEnded       *       @
  75.  
  76.  
  77. ;Symbols for SWI's and SWI reason codes
  78. Draggable_SetSprite             *       &280
  79.    ;Entry
  80.    ;  R0 = flags (Bits)
  81.    ;  R1 = window (Toolbox_O)
  82.    ;  R2 = &280
  83.    ;  R3 = draggable (Toolbox_C)
  84.    ;  R4 -> sprite_name (String)
  85.  
  86. Draggable_GetSprite             *       &281
  87.    ;Entry
  88.    ;  R0 = flags (Bits)
  89.    ;  R1 = window (Toolbox_O)
  90.    ;  R2 = &281
  91.    ;  R3 = draggable (Toolbox_C)
  92.    ;  R4 = buffer (pointer to String)
  93.    ;  R5 = size (Int)
  94.    ;Exit
  95.    ;  R5 = used (Int)
  96.  
  97. Draggable_SetText               *       &282
  98.    ;Entry
  99.    ;  R0 = flags (Bits)
  100.    ;  R1 = window (Toolbox_O)
  101.    ;  R2 = &282
  102.    ;  R3 = draggable (Toolbox_C)
  103.    ;  R4 -> text (String)
  104.  
  105. Draggable_GetText               *       &283
  106.    ;Entry
  107.    ;  R0 = flags (Bits)
  108.    ;  R1 = window (Toolbox_O)
  109.    ;  R2 = &283
  110.    ;  R3 = draggable (Toolbox_C)
  111.    ;  R4 = buffer (pointer to String)
  112.    ;  R5 = size (Int)
  113.    ;Exit
  114.    ;  R5 = used (Int)
  115.  
  116. Draggable_SetState              *       &284
  117.    ;Entry
  118.    ;  R0 = flags (Bits)
  119.    ;  R1 = window (Toolbox_O)
  120.    ;  R2 = &284
  121.    ;  R3 = draggable (Toolbox_C)
  122.    ;  R4 = state (Int)
  123.  
  124. Draggable_GetState              *       &285
  125.    ;Entry
  126.    ;  R0 = flags (Bits)
  127.    ;  R1 = window (Toolbox_O)
  128.    ;  R2 = &285
  129.    ;  R3 = draggable (Toolbox_C)
  130.    ;Exit
  131.    ;  R0 = state (Int)
  132.  
  133.         ]
  134.         END
  135.