wmtop: Remove .cvsignore.
[dockapps.git] / Temperature.app / Xpm.h
blob6316fdfb1132282bf5b1f226406f0985b14d162f
1 //
2 // Temperature.app
3 //
4 // Copyright (c) 2000-2002 Per Liden
5 //
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 02111-1307,
19 // USA.
22 #ifndef _XPM_H_
23 #define _XPM_H_
25 #include <X11/Xlib.h>
26 #include <X11/xpm.h>
28 class Xpm
30 public:
31 Xpm(Display* display, Window root, char** data);
32 virtual ~Xpm();
33 void setWindowPixmap(Window win);
34 void setWindowPixmapShaped(Window win);
35 void drawString(int pos, char* font, char* str);
36 void drawComposedString(int pos, char* font1, char* str1, char* font2, char* str2);
38 private:
39 Display* mDisplay;
40 XpmAttributes mAttributes;
41 Pixmap mImage;
42 Pixmap mMask;
45 #endif