2 * Window Maker window manager
4 * Copyright (c) 1997-2002 Alfredo K. Kojima
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
35 typedef struct WIcon
{
37 WWindow
*owner
; /* owner window */
38 char *icon_name
; /* the icon name hint */
40 Window icon_win
; /* client suplied icon window */
42 char *file
; /* the file with the icon image */
45 unsigned int tile_type
:4;
46 unsigned int show_title
:1;
47 unsigned int has_titlebar
:1;
48 unsigned int force_paint
:1; /* True for icon update and repaint */
49 unsigned int selected
:1;
50 unsigned int step
:3; /* selection cycle step */
51 unsigned int shadowed
:1; /* If the icon is to be blured */
52 unsigned int mapped
:1;
53 unsigned int highlighted
:1;
57 WMHandlerID handlerID
; /* timer handler ID for cycling select
61 WIcon
*wIconCreateWithIconFile(WScreen
*scr
, char *iconfile
, int tile
);
62 WIcon
*wIconCreate(WWindow
*wwin
);
63 void wIconDestroy(WIcon
*icon
);
64 void wIconPaint(WIcon
*icon
);
65 void wIconUpdate(WIcon
*icon
);
66 void wIconChangeTitle(WIcon
*icon
, char *new_title
);
67 void wIconChangeImage(WIcon
*icon
, RImage
*new_image
);
68 Bool
wIconChangeImageFile(WIcon
*icon
, char *file
);
69 void wIconSelect(WIcon
*icon
);
71 RImage
*wIconValidateIconSize(WScreen
*scr
, RImage
*icon
);
73 char *wIconStore(WIcon
*icon
);
75 #endif /* WMICON_H_ */