X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Futil%2Fcommon.h;h=a2a0c762708dac146cd984e9bff900e63db2aa91;hb=ee8eefd5400319f8ceafbe00c6ef9ae112306bb4;hp=09a95a83eb539754fe5e7f20fc41e4d6536c29f2;hpb=2930680396e47d66f7690e7ff92d5bcccbbf996c;p=chaz%2Ftint2 diff --git a/src/util/common.h b/src/util/common.h index 09a95a8..a2a0c76 100644 --- a/src/util/common.h +++ b/src/util/common.h @@ -1,6 +1,6 @@ /************************************************************************** * Common declarations -* +* **************************************************************************/ #ifndef COMMON_H @@ -9,11 +9,9 @@ #define WM_CLASS_TINT "panel" +#include #include "area.h" -// taskbar table : convert 2 dimension in 1 dimension -#define index(i, j) ((i * panel.nb_monitor) + j) - /* void fxfree(void** ptr){ if(*ptr){ @@ -31,8 +29,9 @@ FXint fxmalloc(void** ptr,unsigned long size){ */ // mouse actions -enum { NONE=0, CLOSE, TOGGLE, ICONIFY, SHADE, TOGGLE_ICONIFY }; +enum { NONE=0, CLOSE, TOGGLE, ICONIFY, SHADE, TOGGLE_ICONIFY, MAXIMIZE_RESTORE, MAXIMIZE, RESTORE, DESKTOP_LEFT, DESKTOP_RIGHT }; +#define ALLDESKTOP 0xFFFFFFFF typedef struct config_border @@ -51,6 +50,9 @@ typedef struct config_color } config_color; +// adjust HSB on an ARGB icon +void adjust_hsb(DATA32 *data, int w, int h, float hue, float satur, float bright); + #endif