]> Dogcows Code - chaz/tint2/blob - src/util/common.h
add some HSB config
[chaz/tint2] / src / util / common.h
1 /**************************************************************************
2 * Common declarations
3 *
4 **************************************************************************/
5
6 #ifndef COMMON_H
7 #define COMMON_H
8
9
10 #define WM_CLASS_TINT "panel"
11
12 #include "area.h"
13
14 /*
15 void fxfree(void** ptr){
16 if(*ptr){
17 free(*ptr);
18 *ptr=NULL;
19 }
20 }
21 FXint fxmalloc(void** ptr,unsigned long size){
22 *ptr=NULL;
23 if(size!=0){
24 if((*ptr=malloc(size))==NULL) return FALSE;
25 }
26 return TRUE;
27 }
28 */
29
30 // mouse actions
31 enum { NONE=0, CLOSE, TOGGLE, ICONIFY, SHADE, TOGGLE_ICONIFY, MAXIMIZE_RESTORE, MAXIMIZE, RESTORE };
32
33 #define ALLDESKTOP 0xFFFFFFFF
34
35 #define MIN3(x,y,z) ((y) <= (z) ? ((x) <= (y) ? (x) : (y)) : ((x) <= (z) ? (x) : (z)))
36 #define MAX3(x,y,z) ((y) >= (z) ? ((x) >= (y) ? (x) : (y)) : ((x) >= (z) ? (x) : (z)))
37
38
39 typedef struct config_border
40 {
41 double color[3];
42 double alpha;
43 int width;
44 int rounded;
45 } config_border;
46
47
48 typedef struct config_color
49 {
50 double color[3];
51 double alpha;
52 } config_color;
53
54
55
56
57 #endif
58
This page took 0.033337 seconds and 4 git commands to generate.