]> Dogcows Code - chaz/tint2/blob - src/util/common.h
adjust saturation/brightness on task icon
[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
36 typedef struct config_border
37 {
38 double color[3];
39 double alpha;
40 int width;
41 int rounded;
42 } config_border;
43
44
45 typedef struct config_color
46 {
47 double color[3];
48 double alpha;
49 } config_color;
50
51
52 // adjust HSB on an ARGB icon
53 void adjust_hsb(unsigned int *data, int w, int h, float hue, float satur, float bright);
54
55
56
57 #endif
58
This page took 0.039754 seconds and 5 git commands to generate.