Initial revision
[ssr] / StraySrc / Glass / !Glass / h / tearEdit
1 /*
2 * tearEdit.c
3 *
4 * Editing icons in tearoff menus
5 *
6 * © 1994-1998 Straylight
7 */
8
9 /*----- Licensing note ----------------------------------------------------*
10 *
11 * This file is part of Straylight's Glass.
12 *
13 * Glass is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2, or (at your option)
16 * any later version.
17 *
18 * Glass is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
22 *
23 * You should have received a copy of the GNU General Public License
24 * along with Glass. If not, write to the Free Software Foundation,
25 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26 */
27
28 #ifndef __tearEdit_h
29 #define __tearEdit_h
30
31 /*----- Required headers --------------------------------------------------*/
32
33 #ifndef __gStruct
34 #include "gStruct.h"
35 #endif
36
37 /*----- External functions ------------------------------------------------*/
38
39 /*
40 * void tearEdit_open(void)
41 *
42 * Use
43 * Opens the edit icon menu, as a submenu if appropriate, otherwise as a
44 * full menu.
45 */
46
47 void tearEdit_open(void);
48
49 /*
50 * void tearEdit_update(glass_windPointer *w,int icon)
51 *
52 * Use
53 * Updates the edit icon menu from the specified window and icon. If the
54 * window handle is 0, or the icon is -1 then the menu is made unavailable
55 * (i.e. its items are shaded). Otherwise, the menu is updated to reflect
56 * the state of the icon.
57 *
58 * Parameters
59 * glass_windPointer *w == the window containing the icon to edit
60 * int icon == the icon to be editing in the menu
61 */
62
63 void tearEdit_update(glass_windPointer *w,int icon);
64
65 /*
66 * void tearEdit_init(void)
67 *
68 * Use
69 * Initialises the tearoff menus for editing icons and starts up the tearoff
70 * menu manager.
71 */
72
73 void tearEdit_init(void);
74
75 #endif