/* * tearEdit.c * * Editing icons in tearoff menus * * © 1994-1998 Straylight */ /*----- Licensing note ----------------------------------------------------* * * This file is part of Straylight's Glass. * * Glass 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. * * Glass 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 Glass. If not, write to the Free Software Foundation, * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __tearEdit_h #define __tearEdit_h /*----- Required headers --------------------------------------------------*/ #ifndef __gStruct #include "gStruct.h" #endif /*----- External functions ------------------------------------------------*/ /* * void tearEdit_open(void) * * Use * Opens the edit icon menu, as a submenu if appropriate, otherwise as a * full menu. */ void tearEdit_open(void); /* * void tearEdit_update(glass_windPointer *w,int icon) * * Use * Updates the edit icon menu from the specified window and icon. If the * window handle is 0, or the icon is -1 then the menu is made unavailable * (i.e. its items are shaded). Otherwise, the menu is updated to reflect * the state of the icon. * * Parameters * glass_windPointer *w == the window containing the icon to edit * int icon == the icon to be editing in the menu */ void tearEdit_update(glass_windPointer *w,int icon); /* * void tearEdit_init(void) * * Use * Initialises the tearoff menus for editing icons and starts up the tearoff * menu manager. */ void tearEdit_init(void); #endif