]>
Dogcows Code - chaz/tint2/blob - src/util/common.h
1 /**************************************************************************
4 **************************************************************************/
10 #define WM_CLASS_TINT "panel"
16 void fxfree(void** ptr){
22 FXint fxmalloc(void** ptr,unsigned long size){
25 if((*ptr=malloc(size))==NULL) return FALSE;
32 enum { NONE
=0, CLOSE
, TOGGLE
, ICONIFY
, SHADE
, TOGGLE_ICONIFY
, MAXIMIZE_RESTORE
, MAXIMIZE
, RESTORE
, DESKTOP_LEFT
, DESKTOP_RIGHT
, NEXT_TASK
, PREV_TASK
};
34 #define ALLDESKTOP 0xFFFFFFFF
37 // copy file source to file dest
38 void copy_file(const char *pathSrc
, const char *pathDest
);
40 // extract key = value
41 int parse_line (const char *line
, char **key
, char **value
);
43 // execute a command by calling fork
44 void tint_exec(const char* command
);
48 int hex_char_to_int (char c
);
49 int hex_to_rgb (char *hex
, int *r
, int *g
, int *b
);
50 void get_color (char *hex
, double *rgb
);
52 // adjust Alpha/Saturation/Brightness on an ARGB icon
53 // alpha from 0 to 100, satur from 0 to 1, bright from 0 to 1.
54 void adjust_asb(DATA32
*data
, int w
, int h
, int alpha
, float satur
, float bright
);
55 void createHeuristicMask(DATA32
* data
, int w
, int h
);
57 void render_image(Drawable d
, int x
, int y
, int w
, int h
);
This page took 0.034742 seconds and 4 git commands to generate.