Lines Matching defs:tmp
161 uint16_t* tmp = new uint16_t[4];
162 tmp[0] = (getR() << 8) | getR();
163 tmp[1] = (getG() << 8) | getG();
164 tmp[2] = (getB() << 8) | getB();
165 tmp[3] = 0xffff;
166 dest = reinterpret_cast<char*>(tmp);
170 std::string tmp("<paint>");
174 tmp += "<nocolor/>";
179 tmp += "<clear/>";
184 tmp += std::string("<color name=\"") + descr + "\">";
185 tmp += "<sRGB r=\"";
186 tmp += Glib::Ascii::dtostr(getR()/255.0);
187 tmp += "\" g=\"";
188 tmp += Glib::Ascii::dtostr(getG()/255.0);
189 tmp += "\" b=\"";
190 tmp += Glib::Ascii::dtostr(getB()/255.0);
191 tmp += "\"/>";
192 tmp += "</color>";
195 tmp += "</paint>";
196 len = tmp.size();
199 memcpy(dest, tmp.c_str(), len);