;
; tearSupt.sh
;
; Tearoff support code
;
;  1994-1998 Straylight
;

;----- Licensing note -------------------------------------------------------
;
; This file is part of Straylight's Tearoff Menu System (TMS), but it's
; distributed with Straylight's core libraries (corelib).
;
; TMS is free software; you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation; either version 2, or (at your option)
; any later version.
;
; TMS is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
; GNU General Public License for more details.
;
; You should have received a copy of the GNU General Public License
; along with Corelib.  If not, write to the Free Software Foundation,
; 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

; --- tearSupport_init ---
;
; On entry:	--
;
; On exit:	--
;
; Use:		Initialises tearSupport

		IMPORT	tearSupport_init

; --- tearSupport_opened ---
;
; On entry:	R0 == task handle of task which opened tearoff menu
;
; On exit:	--
;
; Use:		Informs TearSupport that a transient tearoff menu has been
;		opened, and which task owns the menu.

		IMPORT	tearSupport_opened

; --- tearSupport_closed ---
;
; On entry:	--
;
; On exit:	--
;
; Use:		Informs TearSupport that the transient tearoff menu has been
;		closed, and that support is no longer required for it.

		IMPORT	tearSupport_closed

; --- tearSupport_switch ---
;
; On entry:	R0 == 1 to disable, 0 to enable trapping
;
; On exit:	--
;
; Use:		Enables or disables trapping of Wimp_CreateMenu while a
;		transient tearoff menu is open.  This is intended to allow
;		use of Wimp_CreateMenu by the transient tearoff owner while
;		a transient tearoff is open (e.g. to close Wimp menus).

		IMPORT	tearSupport_switch

;----- That's all, folks ----------------------------------------------------

		END
