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

  1. ;Assembler header file for Quit
  2. ;written by DefMod (Jun 30 1995) on Tue Sep  5 15:14:56 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: Quit_Hdr
  16.         GBLS    Quit_Hdr
  17.  
  18. ;Symbols for constants
  19. Class_Quit                      *       &82A90
  20. Quit_GenerateAboutToBeShown     *       &1
  21. Quit_GenerateDialogueCompleted  *       &2
  22. Quit_FileTypeIcon               *       &82A900
  23. Quit_Quit                       *       &82A901
  24. Quit_Cancel                     *       &82A902
  25. Action_QuitAboutToBeShown       *       &82A90
  26. Action_QuitQuit                 *       &82A91
  27. Action_QuitDialogueCompleted    *       &82A92
  28. Action_QuitCancel               *       &82A93
  29.  
  30. ;Symbols for structure offsets and sizes
  31. Quit_Flags                      *       Bits
  32.  
  33.                                 ^       0
  34. Quit_Object_flags               #       Quit_Flags
  35. Quit_Object_title               #       Toolbox_MsgReference
  36. Quit_Object_title_limit         #       Int
  37. Quit_Object_message             #       Toolbox_MsgReference
  38. Quit_Object_message_limit       #       Int
  39. Quit_Object_alternative_window_name #       Toolbox_StringReference
  40. Quit_Object                     *       @
  41.  
  42. Quit_Full                       *       OS_Coord
  43.  
  44.                                 ^       0
  45. Quit_ActionAboutToBeShown_tag   #       Toolbox_PositionTag
  46. Quit_ActionAboutToBeShown_position *       @
  47. Quit_ActionAboutToBeShown_position_top_left #       OS_Coord
  48.                                 ^       Quit_ActionAboutToBeShown_position
  49. Quit_ActionAboutToBeShown_position_full #       Quit_Full
  50. Quit_ActionAboutToBeShown       *       @
  51.  
  52.  
  53. ;Symbols for SWI's and SWI reason codes
  54. XQuit_ClassSWI                  *       &A2A90
  55. Quit_ClassSWI                   *       &82A90
  56.  
  57. XQuit_PostFilter                *       &A2A91
  58. Quit_PostFilter                 *       &82A91
  59.  
  60. XQuit_PreFilter                 *       &A2A92
  61. Quit_PreFilter                  *       &82A92
  62.  
  63. Quit_GetWindowID                *       &0
  64.    ;Entry
  65.    ;  R0 = flags (Bits)
  66.    ;  R1 = quit (Toolbox_O)
  67.    ;  R2 = &0
  68.    ;Exit
  69.    ;  R0 = window (Toolbox_O)
  70.  
  71. Quit_SetMessage                 *       &1
  72.    ;Entry
  73.    ;  R0 = flags (Bits)
  74.    ;  R1 = quit (Toolbox_O)
  75.    ;  R2 = &1
  76.    ;  R3 -> message (String)
  77.  
  78. Quit_GetMessage                 *       &2
  79.    ;Entry
  80.    ;  R0 = flags (Bits)
  81.    ;  R1 = quit (Toolbox_O)
  82.    ;  R2 = &2
  83.    ;  R3 = buffer (pointer to String)
  84.    ;  R4 = size (Int)
  85.    ;Exit
  86.    ;  R4 = used (Int)
  87.  
  88. Quit_SetTitle                   *       &3
  89.    ;Entry
  90.    ;  R0 = flags (Bits)
  91.    ;  R1 = quit (Toolbox_O)
  92.    ;  R2 = &3
  93.    ;  R3 -> title (String)
  94.  
  95. Quit_GetTitle                   *       &4
  96.    ;Entry
  97.    ;  R0 = flags (Bits)
  98.    ;  R1 = quit (Toolbox_O)
  99.    ;  R2 = &4
  100.    ;  R3 = buffer (pointer to String)
  101.    ;  R4 = size (Int)
  102.    ;Exit
  103.    ;  R4 = used (Int)
  104.  
  105.         ]
  106.         END
  107.