6 * © 1994-1998 Straylight
9 /*----- Licensing note ----------------------------------------------------*
11 * This file is part of Straylight's Tearoff Menu System (TMS), but it's
12 * distributed with Straylight's core libraries (corelib).
14 * TMS is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 2, or (at your option)
19 * TMS is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with Corelib. If not, write to the Free Software Foundation,
26 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
29 #ifndef __tearSupport_h
30 #define __tearSupport_h
32 /* --- tearSupport_init --- *
38 * Use: Initialises tearSupport
41 void tearSupport_init(void);
43 /* --- tearSupport_opened --- *
45 * Arguments: task == task handle of task which opened tearoff menu
49 * Use: Informs TearSupport that a transient tearoff menu has been
50 * opened, and which task owns the menu.
53 void tearSupport_opened(int task);
55 /* --- tearSupport_closed --- *
61 * Use: Informs TearSupport that the transient tearoff menu has been
62 * closed, and that support is no longer required for it.
65 void tearSupport_closed(void);
67 /* --- tearSupport_switch ---
69 * Arguments: sw == 1 to disable, 0 to enable trapping
73 * Use: Enables or disables trapping of Wimp_CreateMenu while a
74 * transient tearoff menu is open. This is intended to allow
75 * use of Wimp_CreateMenu by the transient tearoff owner while
76 * a transient tearoff is open (e.g. to close Wimp menus).
79 void tearSupport_switch(int sw);