示例#1
0
文件: gdkutils.cpp 项目: GNOME/niepce
 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;
 }
示例#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;
 }