1/* 2 * 3Copyright 1989, 1998 The Open Group 4 5Permission to use, copy, modify, distribute, and sell this software and its 6documentation for any purpose is hereby granted without fee, provided that 7the above copyright notice appear in all copies and that both that 8copyright notice and this permission notice appear in supporting 9documentation. 10 11The above copyright notice and this permission notice shall be included in 12all copies or substantial portions of the Software. 13 14THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 18AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 21Except as contained in this notice, the name of The Open Group shall not be 22used in advertising or otherwise to promote the sale, use or other dealings 23in this Software without prior written authorization from The Open Group. 24 * */ 25 26/*********************************************************************** 27 * 28 * Icon Manager includes 29 * 30 * 09-Mar-89 Tom LaStrange File Created 31 * 32 ***********************************************************************/ 33 34#ifndef ICONMGR_H 35#define ICONMGR_H 36 37#include "twm.h" 38 39typedef struct WList { 40 struct WList *next; 41 struct WList *prev; 42 struct TwmWindow *twm; 43 struct IconMgr *iconmgr; 44 Window w; 45 Window icon; 46 int x, y, width, height; 47 int row, col; 48 int me; 49 Pixel fore, back, highlight; 50 unsigned top, bottom; 51 short active; 52 short down; 53} WList; 54 55typedef struct IconMgr { 56 struct IconMgr *next; /* pointer to the next icon manager */ 57 struct IconMgr *prev; /* pointer to the previous icon mgr */ 58 struct IconMgr *lasti; /* pointer to the last icon mgr */ 59 struct WList *first; /* first window in the list */ 60 struct WList *last; /* last window in the list */ 61 struct WList *active; /* the active entry */ 62 TwmWindow *twm_win; /* back pointer to the new parent */ 63 struct ScreenInfo *scr; /* the screen this thing is on */ 64 Window w; /* this icon manager window */ 65 const char *geometry; /* geometry string */ 66 const char *name; 67 const char *icon_name; 68 int x, y, width, height; 69 int columns, cur_rows, cur_columns; 70 int count; 71} IconMgr; 72 73extern int iconmgr_textx; 74extern WList *DownIconManager; 75extern int iconifybox_width, iconifybox_height; 76 77extern void ActiveIconManager(WList *active); 78extern WList *AddIconManager(TwmWindow *tmp_win); 79extern IconMgr *AllocateIconManager(char *name, char *icon_name, char *geom, 80 int columns); 81extern void CreateIconManagers(void); 82extern void DrawIconManagerBorder(WList *tmp); 83extern void JumpIconManager(int dir); 84extern void MoveIconManager(int dir); 85extern void NotActiveIconManager(WList *active); 86extern void PackIconManager(IconMgr *ip); 87extern void RemoveIconManager(TwmWindow *tmp_win); 88extern void SortIconManager(IconMgr *ip); 89 90#endif /* ICONMGR_H */ 91