wmtime - Fix compiler and linker flags in Makefile.
[dockapps.git] / wmnotify / src / dockapp.h
blob32c44ae8b4567d2fc355075f64c7e94db933b3e9
1 /*
2 * dockapp.h
4 * Copyright (C) 2003 Hugo Villeneuve <hugo@hugovil.com>
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
21 #ifndef DOCKAPP_H
22 #define DOCKAPP_H 1
24 #include <X11/xpm.h>
26 typedef struct XpmIcon
28 XpmAttributes attributes;
29 Pixmap shapemask;
30 Pixmap image;
31 } XpmIcon;
33 typedef struct dockapp_t
35 Display *display;
36 Window root_win;
37 int screen;
38 int d_depth;
39 Pixel back_pix;
40 Pixel fore_pix;
41 Window iconwin;
42 Window win;
43 GC NormalGC;
44 XpmIcon xpm_icon;
45 } dockapp_t;
47 void
48 InitDockAppWindow( int argc, char *argv[], char *pixmap_data[],
49 char *display_arg, char *geometry_arg );
51 void
52 RedrawWindow( void );
54 void
55 copyXPMArea( int x, int y, unsigned int sx, unsigned int sy, int dx, int dy );
57 /* Exported variables */
58 #undef _SCOPE_
59 #ifdef DOCKAPP_M
60 #define _SCOPE_ /**/
61 #else
62 #define _SCOPE_ extern
63 #endif
65 _SCOPE_ dockapp_t dockapp;
67 #endif /* DOCKAPP_H */