4 #ifndef tools_sg_style_color
5 #define tools_sg_style_color
11 #include "../S_STRING"
18 typedef std::pair<std::string,colorf> parent;
25 mem::increment(s_class().c_str());
30 mem::increment(s_class().c_str());
33 style_color(
const std::string& a_name,
float a_r,
float a_g,
float a_b):parent(a_name,
colorf(a_r,a_g,a_b)) {
35 mem::increment(s_class().c_str());
40 mem::decrement(s_class().c_str());
46 mem::increment(s_class().c_str());
51 second = a_from.second;
55 void set_name(
const std::string& a_name) {first = a_name;}
56 void set_value(
float a_r,
float a_g,
float a_b,
float a_a) {second.set_value(a_r,a_g,a_b,a_a);}