X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=src%2Fdockapp.h;h=689bafc183e48524af40acb9aec954b7564d576a;hb=285f52d53a5b7f08c9929098dd2d8461c724f0bd;hp=39fde8c1bab86638a821771181b22e7a6b11c3a6;hpb=7ad7f1f4d17f79a198057067f13c993d39cf1868;p=dockapps%2Fwmnotify.git diff --git a/src/dockapp.h b/src/dockapp.h index 39fde8c..689bafc 100644 --- a/src/dockapp.h +++ b/src/dockapp.h @@ -1,44 +1,55 @@ -/* dockapp.h */ +/* + * dockapp.h + * + * Copyright (C) 2003 Hugo Villeneuve + * + * This program 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 of the License, or + * (at your option) any later version. + * + * This program 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 this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + */ #ifndef DOCKAPP_H #define DOCKAPP_H 1 - #include +struct XpmIcon { + XpmAttributes attributes; + Pixmap shapemask; + Pixmap image; +}; -typedef struct XpmIcon -{ - XpmAttributes attributes; - Pixmap shapemask; - Pixmap image; -} XpmIcon; - -typedef struct dockapp_t -{ - Display *display; - Window root_win; - int screen; - int d_depth; - Pixel back_pix; - Pixel fore_pix; - Window iconwin; - Window win; - GC NormalGC; - XpmIcon xpm_icon; -} dockapp_t; - +struct dockapp_t { + Display *display; + Window root_win; + Window win; + Window iconwin; + int screen; + int d_depth; + Pixel back_pix; + Pixel fore_pix; + GC NormalGC; + struct XpmIcon xpm_icon; +}; void -InitDockAppWindow( int argc, char *argv[], char *pixmap_data[], - char *display_arg, char *geometry_arg ); +InitDockAppWindow(int argc, char *argv[], char *pixmap_data[]); -void -RedrawWindow( void ); +void RedrawWindow(void); void -copyXPMArea( int x, int y, unsigned int sx, unsigned int sy, int dx, int dy ); - +copyXPMArea(int x, int y, unsigned int sx, unsigned int sy, int dx, + int dy); /* Exported variables */ #undef _SCOPE_ @@ -48,7 +59,6 @@ copyXPMArea( int x, int y, unsigned int sx, unsigned int sy, int dx, int dy ); #define _SCOPE_ extern #endif -_SCOPE_ dockapp_t dockapp; - +_SCOPE_ struct dockapp_t dockapp; -#endif /* DOCKAPP_H */ +#endif /* DOCKAPP_H */