Esempio n. 1
0
 Gdk::RGBA rgbcolour_to_gdkcolor(const fwk::RgbColour & colour)
 {
   Gdk::RGBA gdkcolour;
   gdkcolour.set_rgba_u(fwk_rgbcolour_component(&colour, 0),
                        fwk_rgbcolour_component(&colour, 1),
                        fwk_rgbcolour_component(&colour, 2));
   return gdkcolour;
 }
Esempio n. 2
0
 Gdk::RGBA rgbcolour_to_gdkcolor(const fwk::RgbColour & colour)
 {
   Gdk::RGBA gdkcolour;
   gdkcolour.set_rgba_u(colour[0], colour[1], colour[2]);
   return gdkcolour;
 }