2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-22 17:32:55 +00:00
Files
python/pyste/example/vars.h
Bruno da Silva de Oliveira 858e1aba67 - Support for global variables
- Bug fixes in ClassExporter


[SVN r18518]
2003-05-23 20:37:35 +00:00

20 lines
378 B
C

struct Color
{
Color(int r_ = 0, int g_ = 0, int b_ = 0):
r(r_), g(g_), b(b_)
{}
Color( const Color &c):
r(c.r), g(c.g), b(c.b)
{}
int r;
int g;
int b;
};
const Color black = Color(0, 0, 0);
const Color red = Color(255, 0, 0);
const Color green = Color(0, 255, 0);
const Color blue = Color(0, 0, 255);
Color in_use = black;