wmusic: Drop "-1.0" from playerctl pkg-config check.
[dockapps.git] / AlsaMixer.app / Xpm.h
blob4e658db60e2fe60c61391841fbf6841e0780f235
1 //
2 // Mixer.app
3 //
4 // Copyright (c) 1998-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 x, int y, char* text);
37 private:
38 Display* mDisplay;
39 XpmAttributes mAttributes;
40 Pixmap mImage;
41 Pixmap mMask;
44 #endif