#include <iostream>
#include <cmath>
#include <algorithm>
#include <cstring>
#include <stdlib.h>
#include <glibmm.h>
#include <gdkmm.h>
#include <gdkmm/rectangle.h>
#include <gtkmm2ext/fastmeter.h>
#include <gtkmm2ext/utils.h>
Go to the source code of this file.
|
#define | UINT_TO_RGB(u, r, g, b) { (*(r)) = ((u)>>16)&0xff; (*(g)) = ((u)>>8)&0xff; (*(b)) = (u)&0xff; } |
|
#define | UINT_TO_RGBA(u, r, g, b, a) { UINT_TO_RGB(((u)>>8),r,g,b); (*(a)) = (u)&0xff; } |
|
#define | PIX(X) floor(pixscale * (X)) |
|
#define PIX |
( |
|
X | ) |
floor(pixscale * (X)) |
#define UINT_TO_RGB |
( |
|
u, |
|
|
|
r, |
|
|
|
g, |
|
|
|
b |
|
) |
| { (*(r)) = ((u)>>16)&0xff; (*(g)) = ((u)>>8)&0xff; (*(b)) = (u)&0xff; } |
#define UINT_TO_RGBA |
( |
|
u, |
|
|
|
r, |
|
|
|
g, |
|
|
|
b, |
|
|
|
a |
|
) |
| { UINT_TO_RGB(((u)>>8),r,g,b); (*(a)) = (u)&0xff; } |