wmail: strcasecmp and strncasecmp are properly declared in strings.h.
[dockapps.git] / wmcalendar / Src / dockapp.h
blob1ec2d7cadb87a31ce11dac4261d863152f27030a
1 /*
2 * Copyright (c) 1999 Alfredo K. Kojima
3 * Copyright (c) 2001, 2002 Seiichi SATO <ssato@sh.rim.or.jp>
5 * Permission is hereby granted, free of charge, to any person obtaining a copy
6 * of this software and associated documentation files (the "Software"), to deal
7 * in the Software without restriction, including without limitation the rights
8 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 * copies of the Software, and to permit persons to whom the Software is
10 * furnished to do so, subject to the following conditions:
12 * The above copyright notice and this permission notice shall be included in
13 * all copies or substantial portions of the Software.
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 * AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
19 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 * This code is based on libdockapp-0.4.0
23 * modified by Seiichi SATO <ssato@sh.rim.or.jp>
26 #include <X11/Xlib.h>
27 #include <X11/xpm.h>
28 #include <X11/extensions/shape.h>
30 #include <stdio.h>
31 #include <stdlib.h>
33 extern Display *display;
34 extern Bool dockapp_iswindowed;
35 extern Bool dockapp_isbrokenwm;
38 void dockapp_open_window(char *display_specified, char *appname,
39 unsigned w, unsigned h, int argc, char **argv);
40 void dockapp_set_eventmask();
41 void dockapp_set_background(Pixmap pixmap);
42 void dockapp_show(void);
43 Bool dockapp_xpm2pixmap(char **data, Pixmap * pixmap, Pixmap * mask,
44 XpmColorSymbol * colorSymbol,
45 unsigned int nsymbols);
46 Pixmap dockapp_XCreatePixmap(int w, int h);
47 void dockapp_setshape(Pixmap mask, int x_ofs, int y_ofs);
48 void dockapp_copyarea(Pixmap src, Pixmap dist, int x_src, int y_src,
49 int w, int h, int x_dist, int y_dist);
50 void dockapp_copy2window(Pixmap src);
51 Bool dockapp_nextevent_or_timeout(XEvent * event, unsigned long miliseconds);
52 unsigned long dockapp_getcolor(char *color);
53 unsigned long dockapp_blendedcolor(char *color, int r, int g, int b, float fac);