Logo Search packages:      
Sourcecode: ardour version File versions  Download package

void Gdk::Color::set_rgb_p ( double  red_,
double  green_,
double  blue_ 
)

Set the color, by specifying red, green, and blue color component values, as percentages.

Parameters:
red_ The red component of the color, as a percentage.
green_ The green component of the color, as a percentage.
blue_ The blue component of the color, as a percentage.

Definition at line 66 of file color.cc.

Referenced by VisualTimeAxis::choose_time_axis_color().

{
  gobject_->red = (gushort)(red_ * 65535.0);
  gobject_->green = (gushort)(green_ * 65535.0);
  gobject_->blue = (gushort)(blue_ * 65535.0);
}


Generated by  Doxygen 1.6.0   Back to index