; Copyright 1996 Acorn Computers Ltd ; ; Licensed under the Apache License, Version 2.0 (the "License"); ; you may not use this file except in compliance with the License. ; You may obtain a copy of the License at ; ; http://www.apache.org/licenses/LICENSE-2.0 ; ; Unless required by applicable law or agreed to in writing, software ; distributed under the License is distributed on an "AS IS" BASIS, ; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ; See the License for the specific language governing permissions and ; limitations under the License. ; ; > &.Hdr.WimpSpace ;;----------------------------------------------------------------------------- ;; Wimp Header file ;; ;; Change list ;; ;; 13-Apr-88 File created ;; 2-Aug-89 NRaine PollWord_NonZero reason code added ;; 29-Sep-89 NRaine Added wimp_caretstr bits ;; 31-Oct-89 NRaine Added extra menu bits and ii_etc indirected stuff ;; 04 Apr 92 LRust Added mi_it_indirecttitle ;; ;;----------------------------------------------------------------------------- iconbar_whandle * -2 ; changed on 11-Apr-88 ; event codes returned from XWimp_Poll Null_Reason * 0 Redraw_Window_Request * 1 Open_Window_Request * 2 ; can't be masked out Close_Window_Request * 3 ; can't be masked out Pointer_Leaving_Window * 4 Pointer_Entering_Window * 5 Mouse_Button_Change * 6 User_Drag_Box * 7 ; can't be masked out Key_Pressed * 8 Menu_Select * 9 ; can't be masked out Scroll_Request * 10 ; can't be masked out Lose_Caret * 11 Gain_Caret * 12 PollWord_NonZero * 13 User_Message * 17 User_Message_Recorded * 18 User_Message_Acknowledge * 19 ; masks to prevent us getting certain events back from PollWimp null_bit * 1 :SHL: Null_Reason redraw_bit * 1 :SHL: Redraw_Window_Request pointerchange_bits * (1 :SHL: Pointer_Leaving_Window) +(1 :SHL: Pointer_Entering_Window) buttonchange_bit * 1 :SHL: Mouse_Button_Change keypressed_bit * 1 :SHL: Key_Pressed pollword_bit * 1 :SHL: PollWord_NonZero pollword_enable * 1 :SHL: 22 ; poll word at low priority pollwordfast_enable * 3 :SHL: 22 ; poll word at high priority ; button state button_left * 4 button_middle * 2 button_right * 1 button_left_drag * button_left :SHL: 4 button_right_drag * button_right :SHL: 4 button_left_10 * button_left :SHL: 8 button_right_10 * button_right :SHL: 8 ; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ; wimp_createstr ^ 0 w_wax0 # 4 ; x, y coordinates of work area w_way0 # 4 w_wax1 # 4 w_way1 # 4 w_scx # 4 ; x, y scroll positions w_scy # 4 ; (between wex0/y0 and wex1/y1) w_bhandle # 4 ; handle of window above this one w_flags # 4 ; status of window (open/closed etc.) w_tfcol # 1 ; title foreground colour w_tbcol # 1 ; title background colour w_wfcol # 1 ; work area foreground colour w_wbcol # 1 ; work area background colour w_scouter # 1 ; scroll bar outer portion w_scinner # 1 ; scroll bar inner portion w_tbcol2 # 1 ; colour if window has input focus # 1 ; reserved w_wex0 # 4 ; work area extent w_wey0 # 4 ; (x0, y0, x1, y1) w_wex1 # 4 w_wey1 # 4 w_titleflags # 4 w_workflags # 4 ; icon flags for 'work area' w_areaCBptr # 4 ; sprite area CB ptr (<=0 ==> system) w_minx # 2 ; minimum x size (0 ==> use title) w_miny # 2 ; minimum y size w_title # 12 ; title (max 11 chars, then