wmbattery: use CPPFLAGS for defining preprocessor macros.
[dockapps.git] / wmfu / dockapp.h
blob51453af44940a3322aee9614b6fdd85af91c692f
1 /*
2 * Copyright (c) 1999 Alfredo K. Kojima
3 * Copyright (c) 2001, 2002 Seiichi SATO
4 * Copyright (c) 2007 Daniel Borca
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 Street, Fifth Floor, Boston, MA 02110-1301 USA
22 #ifndef DOCKAPP_H_included
23 #define DOCKAPP_H_included
25 typedef struct {
26 Display *display;
27 Bool iswindowed;
28 Pixmap pixmap;
29 Bool quit;
31 Window window;
32 Window icon_window;
33 GC gc;
34 int depth;
35 Atom delete_win;
36 int width, height;
37 int x_offset, y_offset;
38 } DOCKAPP;
40 int dockapp_open_window(DOCKAPP *d,
41 const char *display_specified,
42 char *appname, int iswindowed,
43 int argc, char **argv);
45 void dockapp_set_eventmask(const DOCKAPP *d, long mask);
47 void dockapp_set_shape(const DOCKAPP *d, Pixmap mask);
49 void dockapp_copy_area(const DOCKAPP *d,
50 Pixmap src,
51 int x_src, int y_src, int w, int h, int x_dst, int y_dst);
53 void dockapp_update(const DOCKAPP *d);
55 Bool dockapp_xpm2pixmap(const DOCKAPP *d,
56 char **data, Pixmap *pixmap, Pixmap *mask,
57 XpmColorSymbol *colorSymbol, unsigned int nsymbols);
59 Pixmap dockapp_createpixmap(const DOCKAPP *d, int width, int height);
61 Bool dockapp_nextevent_or_timeout(DOCKAPP *d,
62 XEvent *event, unsigned long millis);
64 unsigned long dockapp_get_color(const DOCKAPP *d, const char *color);
66 #endif