wmmoonclock: mark some file-scope variables static.
[dockapps.git] / wmsupermon / panes.h
blob07cb3dbbb6df6c75236568ce85eb2d85babafb44
1 /* Copyright (C) 2006 Sergei Golubchik
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License version 2
5 as published by the Free Software Foundation
7 This program is distributed in the hope that it will be useful,
8 but WITHOUT ANY WARRANTY; without even the implied warranty of
9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 GNU General Public License for more details.
12 You should have received a copy of the GNU General Public License
13 along with this program; if not, write to the Free Software
14 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */
17 originally based on:
18 WMgMon - Window Maker Generic Monitor
19 by Nicolas Chauvat <nico@caesium.fr>
20 which was based on
21 WMMon from Antoine Nulle and Martijn Pieterse.
24 #ifndef __PANES_H
25 #define __PANES_H
27 #include <string.h>
28 #include <stdio.h>
29 #include <X11/Xlib.h>
31 #include "stat_dev.h"
33 /******************************************************************************/
34 /* pane structure */
35 /******************************************************************************/
36 #define PTBar 0
37 #define PTNumber 1
38 #define PTPercent 2
39 #define PTGraph 3
41 extern char *config;
43 typedef struct
45 stat_dev *stat;
46 int type;
47 int flags;
48 int height;
50 pane_part;
52 #define PANE_PARTS 4
53 typedef pane_part pane_desc[PANE_PARTS];
55 #define WNAME_LEN 32
56 typedef struct
58 char name[WNAME_LEN+1];
59 pane_desc *panes;
60 int num_panes, cur_pane;
61 Window w[2]; /* normal and iconic */
62 Pixmap pixmap, mask;
64 wind_desc;
66 /******************************************************************************/
67 /* pane functions */
68 /******************************************************************************/
70 int read_config_file(pane_desc panes[], int *pane_num, const int max_pane,
71 stat_dev stats[], int *stat_num, const int stat_max,
72 wind_desc winds[], int *wind_num, const int wind_max);
74 * END
76 #endif