]> Dogcows Code - chaz/tint2/blobdiff - src/util/common.h
fixed segfault
[chaz/tint2] / src / util / common.h
index 09a95a83eb539754fe5e7f20fc41e4d6536c29f2..a2a0c762708dac146cd984e9bff900e63db2aa91 100644 (file)
@@ -1,6 +1,6 @@
 /**************************************************************************
 * Common declarations
-* 
+*
 **************************************************************************/
 
 #ifndef COMMON_H
@@ -9,11 +9,9 @@
 
 #define WM_CLASS_TINT   "panel"
 
+#include <Imlib2.h>
 #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
This page took 0.025701 seconds and 4 git commands to generate.