add configurable colors to stereo panner, plus keybindings for zero width (0), 1...
[ardour.git] / gtk2_ardour / rgb_macros.h
index d5b57226872f9af8dbe10f8bd339e436eaa1c504..8252349452a9f2bdd61c1919e4bf2d0b0a5d6e01 100644 (file)
 #define UINT_RGBA_G(x) ((((guint)(x))>>16)&0xff)
 #define UINT_RGBA_B(x) ((((guint)(x))>>8)&0xff)
 #define UINT_RGBA_A(x) (((guint)(x))&0xff)
+#define UINT_RGBA_R_FLT(x) ((((guint)(x))>>24)/255.0)
+#define UINT_RGBA_G_FLT(x) (((((guint)(x))>>16)&0xff)/255.0)
+#define UINT_RGBA_B_FLT(x) (((((guint)(x))>>8)&0xff)/255.0)
+#define UINT_RGBA_A_FLT(x) ((((guint)(x))&0xff)/255.0)
 #define UINT_RGBA_CHANGE_R(x, r) (((x)&(~(0xff<<24)))|(((r)&0xff)<<24))
 #define UINT_RGBA_CHANGE_G(x, g) (((x)&(~(0xff<<16)))|(((g)&0xff)<<16))
 #define UINT_RGBA_CHANGE_B(x, b) (((x)&(~(0xff<<8)))|(((b)&0xff)<<8))