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

  1. ;Assembler header file for Window
  2. ;written by DefMod (Jun 30 1995) on Wed Sep  6 09:31:36 1995
  3. ;Jonathan Coxhead, Acorn Computers Ltd; Simon Middleton, Uniqueway 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_KeyboardShortcut
  26.         GBLS    Get_KeyboardShortcut
  27.         ]
  28.         [       :LNOT: :DEF: KeyboardShortcut_Hdr
  29. Get_KeyboardShortcut            SETS    "GET OS:Hdr.KeyboardShortcut"
  30.         |
  31. Get_KeyboardShortcut            SETS    ""
  32.         ]
  33.         $Get_KeyboardShortcut
  34.  
  35.         [       :LNOT: :DEF: Get_Gadget
  36.         GBLS    Get_Gadget
  37.         ]
  38.         [       :LNOT: :DEF: Gadget_Hdr
  39. Get_Gadget                      SETS    "GET OS:Hdr.Gadget"
  40.         |
  41. Get_Gadget                      SETS    ""
  42.         ]
  43.         $Get_Gadget
  44.  
  45.         [       :LNOT: :DEF: Window_Hdr
  46.         GBLS    Window_Hdr
  47.  
  48. ;Symbols for constants
  49. Class_Window                    *       &82880
  50. Error_WindowAllocFailed         *       &80A901
  51. Error_WindowShortBuffer         *       &80A902
  52. Error_WindowBadVersion          *       &80A903
  53. Error_WindowInvalidFlags        *       &80A904
  54. Error_WindowTasksActive         *       &80A905
  55. Error_WindowNoSuchTask          *       &80A911
  56. Error_WindowNoSuchMethod        *       &80A912
  57. Error_WindowNoSuchMiscOpMethod  *       &80A913
  58. Error_WindowInvalidComponentID  *       &80A914
  59. Error_WindowDuplicateComponentID *       &80A915
  60. Error_WindowInvalidGadgetType   *       &80A920
  61. Window_GenerateAboutToBeShown   *       &1
  62. Window_AutoOpen                 *       &2
  63. Window_AutoClose                *       &4
  64. Window_GenerateDialogueCompleted *       &8
  65. Window_IsToolBar                *       &10
  66. Window_NoFocus                  *       -1
  67. Window_SetFocusToWindow         *       -2
  68. Action_WindowAboutToBeShown     *       &82880
  69. Action_WindowDialogueCompleted  *       &82890
  70. Window_ToolBarIBL               *       &1
  71. Window_ToolBarITL               *       &2
  72. Window_ToolBarEBL               *       &4
  73. Window_ToolBarETL               *       &8
  74. Window_ClickAdjust              *       &1
  75. Window_ClickMenu                *       &2
  76. Window_ClickSelect              *       &4
  77. Window_ClickNotToolbox          *       &100
  78.  
  79. ;Symbols for structure offsets and sizes
  80. Window_Flags                    *       Bits
  81.  
  82. Window_GadgetFlags              *       Bits
  83.  
  84.                                 ^       0
  85. Window_IconData_indirected_text_text #       Toolbox_MsgReference
  86. Window_IconData_indirected_text_validation #       Toolbox_StringReference
  87. Window_IconData_indirected_text_size #       Int
  88. Window_IconData                 *       @
  89.  
  90.                                 ^       0
  91. Window_Window_visible           #       OS_Box
  92. Window_Window_xscroll           #       Int
  93. Window_Window_yscroll           #       Int
  94. Window_Window_next              #       Wimp_W
  95. Window_Window_flags             #       Wimp_WindowFlags
  96. Window_Window_title_fg          #       Wimp_Colour
  97. Window_Window_title_bg          #       Wimp_Colour
  98. Window_Window_work_fg           #       Wimp_Colour
  99. Window_Window_work_bg           #       Wimp_Colour
  100. Window_Window_scroll_outer      #       Wimp_Colour
  101. Window_Window_scroll_inner      #       Wimp_Colour
  102. Window_Window_highlight_bg      #       Wimp_Colour
  103. Window_Window_reserved          #       Wimp_Colour
  104. Window_Window_extent            #       OS_Box
  105. Window_Window_title_flags       #       Wimp_IconFlags
  106. Window_Window_work_flags        #       Wimp_IconFlags
  107. Window_Window_sprite_area       #       Toolbox_SpriteAreaReference
  108. Window_Window_xmin              #       Short
  109. Window_Window_ymin              #       Short
  110. Window_Window_title_data        #       Window_IconData
  111. Window_Window_icon_count        #       Int
  112. Window_Window                   *       @
  113.  
  114.                                 ^       0
  115. Window_Object_flags             #       Window_Flags
  116. Window_Object_help_message      #       Toolbox_MsgReference
  117. Window_Object_help_limit        #       Int
  118. Window_Object_sprite_name       #       Toolbox_StringReference
  119. Window_Object_pointer_limit     #       Int
  120. Window_Object_hotspot           #       OS_Coord
  121. Window_Object_menu_name         #       Toolbox_StringReference
  122. Window_Object_shortcut_count    #       Int
  123. Window_Object_shortcuts         #       Toolbox_ObjectOffset
  124. Window_Object_gadget_count      #       Int
  125. Window_Object_gadgets           #       Toolbox_ObjectOffset
  126. Window_Object_default_focus     #       Toolbox_C
  127. Window_Object_show_action       #       Bits
  128. Window_Object_hide_action       #       Bits
  129. Window_Object_toolbar_ibl       #       Toolbox_StringReference
  130. Window_Object_toolbar_itl       #       Toolbox_StringReference
  131. Window_Object_toolbar_ebl       #       Toolbox_StringReference
  132. Window_Object_toolbar_etl       #       Toolbox_StringReference
  133. Window_Object_window            #       Window_Window
  134. Window_Object_data              #       Int
  135. Window_Object                   *       @
  136.  
  137. Window_Full                     *       Toolbox_Full
  138.  
  139.                                 ^       0
  140. Window_ActionShowObject_visible #       OS_Box
  141. Window_ActionShowObject_xscroll #       Int
  142. Window_ActionShowObject_yscroll #       Int
  143. Window_ActionShowObject_next    #       Wimp_W
  144. Window_ActionShowObject         *       @
  145.  
  146.                                 ^       0
  147. Window_ActionAboutToBeShown_tag #       Toolbox_PositionTag
  148. Window_ActionAboutToBeShown_position *       @
  149. Window_ActionAboutToBeShown_position_top_left #       OS_Coord
  150.                                 ^       Window_ActionAboutToBeShown_position
  151. Window_ActionAboutToBeShown_position_full #       Window_Full
  152. Window_ActionAboutToBeShown     *       @
  153.  
  154. Window_ToolBarFlags             *       Bits
  155.  
  156. Window_MouseState               *       Bits
  157.  
  158.  
  159. ;Symbols for SWI's and SWI reason codes
  160. XWindow_ClassSWI                *       &A2880
  161. Window_ClassSWI                 *       &82880
  162.  
  163. XWindow_PostFilter              *       &A2881
  164. Window_PostFilter               *       &82881
  165.  
  166. XWindow_PreFilter               *       &A2882
  167. Window_PreFilter                *       &82882
  168.  
  169. XWindow_GetPointerInfo          *       &A2883
  170. Window_GetPointerInfo           *       &82883
  171.    ;Entry
  172.    ;  R0 = flags (Bits)
  173.    ;Exit
  174.    ;  R0 = x (Int)
  175.    ;  R1 = y (Int)
  176.    ;  R2 = state (Window_MouseState)
  177.    ;  R3 = obj (Toolbox_O)
  178.    ;  R4 = cmp (Toolbox_C)
  179.  
  180. XWindow_WimpToToolbox           *       &A2884
  181. Window_WimpToToolbox            *       &82884
  182.    ;Entry
  183.    ;  R0 = flags (Bits)
  184.    ;  R1 = w (Wimp_W)
  185.    ;  R2 = i (Wimp_I)
  186.    ;Exit
  187.    ;  R0 = obj (Toolbox_O)
  188.    ;  R1 = cmp (Toolbox_C)
  189.  
  190. XWindow_RegisterExternal        *       &A2885
  191. Window_RegisterExternal         *       &82885
  192.    ;Entry
  193.    ;  R0 = flags (Bits)
  194.    ;  R1 -> types (Gadget_ExtensionList)
  195.    ;  R2 = handler_swi_number (Int)
  196.  
  197. XWindow_DeregisterExternal      *       &A2886
  198. Window_DeregisterExternal       *       &82886
  199.    ;Entry
  200.    ;  R0 = flags (Bits)
  201.    ;  R1 = type (Int)
  202.    ;  R2 = handler_swi_number (Int)
  203.  
  204. XWindow_ExtractGadgetInfo       *       &A28BE
  205. Window_ExtractGadgetInfo        *       &828BE
  206.    ;Entry
  207.    ;  R0 = flags (Bits)
  208.    ;  R1 -> object (Window_Object)
  209.    ;  R2 = cmp (Toolbox_C)
  210.    ;Exit
  211.    ;  R0 -> gadget (Gadget_Object)
  212.    ;  R1 = size (Int)
  213.  
  214. XWindow_PlotGadget              *       &A28BF
  215. Window_PlotGadget               *       &828BF
  216.  
  217. Window_GetWimpHandle            *       &0
  218.    ;Entry
  219.    ;  R0 = flags (Bits)
  220.    ;  R1 = window (Toolbox_O)
  221.    ;  R2 = &0
  222.    ;Exit
  223.    ;  R0 = w (Wimp_W)
  224.  
  225. Window_AddGadget                *       &1
  226.    ;Entry
  227.    ;  R0 = flags (Bits)
  228.    ;  R1 = window (Toolbox_O)
  229.    ;  R2 = &1
  230.    ;  R3 -> object (Gadget_Object)
  231.    ;Exit
  232.    ;  R0 = gadget (Toolbox_C)
  233.  
  234. Window_RemoveGadget             *       &2
  235.    ;Entry
  236.    ;  R0 = flags (Bits)
  237.    ;  R1 = window (Toolbox_O)
  238.    ;  R2 = &2
  239.    ;  R3 = gadget (Toolbox_C)
  240.  
  241. Window_SetMenu                  *       &3
  242.    ;Entry
  243.    ;  R0 = flags (Bits)
  244.    ;  R1 = window (Toolbox_O)
  245.    ;  R2 = &3
  246.    ;  R3 = menu (Toolbox_O)
  247.  
  248. Window_GetMenu                  *       &4
  249.    ;Entry
  250.    ;  R0 = flags (Bits)
  251.    ;  R1 = window (Toolbox_O)
  252.    ;  R2 = &4
  253.    ;Exit
  254.    ;  R0 = menu (Toolbox_O)
  255.  
  256. Window_SetPointer               *       &5
  257.    ;Entry
  258.    ;  R0 = flags (Bits)
  259.    ;  R1 = window (Toolbox_O)
  260.    ;  R2 = &5
  261.    ;  R3 -> sprite_name (String)
  262.    ;  R4 = xhotspot (Int)
  263.    ;  R5 = yhotspot (Int)
  264.  
  265. Window_GetPointer               *       &6
  266.    ;Entry
  267.    ;  R0 = flags (Bits)
  268.    ;  R1 = window (Toolbox_O)
  269.    ;  R2 = &6
  270.    ;  R3 = buffer (pointer to String)
  271.    ;  R4 = size (Int)
  272.    ;Exit
  273.    ;  R4 = used (Int)
  274.    ;  R5 = xhotspot (Int)
  275.    ;  R6 = yhotspot (Int)
  276.  
  277. Window_SetHelpMessage           *       &7
  278.    ;Entry
  279.    ;  R0 = flags (Bits)
  280.    ;  R1 = window (Toolbox_O)
  281.    ;  R2 = &7
  282.    ;  R3 -> help (String)
  283.  
  284. Window_GetHelpMessage           *       &8
  285.    ;Entry
  286.    ;  R0 = flags (Bits)
  287.    ;  R1 = window (Toolbox_O)
  288.    ;  R2 = &8
  289.    ;  R3 = buffer (pointer to String)
  290.    ;  R4 = size (Int)
  291.    ;Exit
  292.    ;  R4 = used (Int)
  293.  
  294. Window_AddKeyboardShortcuts     *       &9
  295.    ;Entry
  296.    ;  R0 = flags (Bits)
  297.    ;  R1 = window (Toolbox_O)
  298.    ;  R2 = &9
  299.    ;  R3 = add_count (Int)
  300.    ;  R4 -> shortcuts (KeyboardShortcut_Object)
  301.  
  302. Window_RemoveKeyboardShortcuts  *       &A
  303.    ;Entry
  304.    ;  R0 = flags (Bits)
  305.    ;  R1 = window (Toolbox_O)
  306.    ;  R2 = &A
  307.    ;  R3 = remove_count (Int)
  308.    ;  R4 -> shortcuts (KeyboardShortcut_Object)
  309.  
  310. Window_SetTitle                 *       &B
  311.    ;Entry
  312.    ;  R0 = flags (Bits)
  313.    ;  R1 = window (Toolbox_O)
  314.    ;  R2 = &B
  315.    ;  R3 -> title (String)
  316.  
  317. Window_GetTitle                 *       &C
  318.    ;Entry
  319.    ;  R0 = flags (Bits)
  320.    ;  R1 = window (Toolbox_O)
  321.    ;  R2 = &C
  322.    ;  R3 = buffer (pointer to String)
  323.    ;  R4 = size (Int)
  324.    ;Exit
  325.    ;  R4 = used (Int)
  326.  
  327. Window_SetDefaultFocus          *       &D
  328.    ;Entry
  329.    ;  R0 = flags (Bits)
  330.    ;  R1 = window (Toolbox_O)
  331.    ;  R2 = &D
  332.    ;  R3 = focus (Toolbox_C)
  333.  
  334. Window_GetDefaultFocus          *       &E
  335.    ;Entry
  336.    ;  R0 = flags (Bits)
  337.    ;  R1 = window (Toolbox_O)
  338.    ;  R2 = &E
  339.    ;Exit
  340.    ;  R0 = focus (Toolbox_C)
  341.  
  342. Window_SetExtent                *       &F
  343.    ;Entry
  344.    ;  R0 = flags (Bits)
  345.    ;  R1 = window (Toolbox_O)
  346.    ;  R2 = &F
  347.    ;  R3 -> extent (OS_Box)
  348.  
  349. Window_GetExtent                *       &10
  350.    ;Entry
  351.    ;  R0 = flags (Bits)
  352.    ;  R1 = window (Toolbox_O)
  353.    ;  R2 = &10
  354.    ;  R3 = extent (pointer to OS_Box)
  355.  
  356. Window_ForceRedraw              *       &11
  357.    ;Entry
  358.    ;  R0 = flags (Bits)
  359.    ;  R1 = window (Toolbox_O)
  360.    ;  R2 = &11
  361.    ;  R3 -> redraw (OS_Box)
  362.  
  363. Window_SetToolBars              *       &12
  364.    ;Entry
  365.    ;  R0 = flags (Window_ToolBarFlags)
  366.    ;  R1 = window (Toolbox_O)
  367.    ;  R2 = &12
  368.    ;  R3 = ibl (Toolbox_O)
  369.    ;  R4 = itl (Toolbox_O)
  370.    ;  R5 = ebl (Toolbox_O)
  371.    ;  R6 = etl (Toolbox_O)
  372.  
  373. Window_GetToolBars              *       &13
  374.    ;Entry
  375.    ;  R0 = flags (Window_ToolBarFlags)
  376.    ;  R1 = window (Toolbox_O)
  377.    ;  R2 = &13
  378.    ;Exit
  379.    ;  R0 = ibl (Toolbox_O)
  380.    ;  R1 = itl (Toolbox_O)
  381.    ;  R2 = ebl (Toolbox_O)
  382.    ;  R3 = etl (Toolbox_O)
  383.  
  384. Service_WindowModuleStarting    *       &82881
  385.    ;Entry
  386.    ;  R1 = &82881
  387.  
  388. Service_WindowModuleDying       *       &82882
  389.    ;Entry
  390.    ;  R1 = &82882
  391.  
  392. Service_GadgetRegistered        *       &82883
  393.    ;Entry
  394.    ;  R0 = type (Int)
  395.    ;  R1 = &82883
  396.    ;  R2 = handler_swi_number (Int)
  397.    ;  R3 = feature_mask (Bits)
  398.  
  399. Service_GadgetDeregistered      *       &82884
  400.    ;Entry
  401.    ;  R0 = type (Int)
  402.    ;  R1 = &82884
  403.    ;  R2 = handler_swi_number (Int)
  404.  
  405.         ]
  406.         END
  407.