logo top
Main Page   Widgets   Namespaces   Book  

Pango::Color Class Reference

A Pango::Color is used to represent a color in an uncalibrated RGB colorspace. More...

List of all members.

Public Member Functions

 Color ()
 Color (const PangoColor* gobject)
PangoColor* gobj ()
 Provides access to the underlying C instance.

const PangoColor* gobj () const
 Provides access to the underlying C instance.

guint16 get_red () const
 Gets the red component of the color.

guint16 get_green () const
 Gets the green component of the color.

guint16 get_blue () const
 Gets the blue component of the color.

void set_red (const guint16& value)
 Sets the red component of the color.

void set_green (const guint16& value)
 Sets the green component of the color.

void set_blue (const guint16& value)
 Sets the blue component of the color.

bool parse (const Glib::ustring& spec)

Protected Attributes

PangoColor gobject_

Related Functions

(Note that these are not member functions.)

Pango::Colorwrap (PangoColor* object)
const Pango::Colorwrap (const PangoColor* object)


Detailed Description

A Pango::Color is used to represent a color in an uncalibrated RGB colorspace.


Constructor & Destructor Documentation

Pango::Color::Color (  ) 
 

Pango::Color::Color ( const PangoColor*  gobject  )  [explicit]
 


Member Function Documentation

guint16 Pango::Color::get_blue (  )  const
 

Gets the blue component of the color.

Returns:
The blue component of the color. This is a value between 0 and 65535, with 65535 indicating full intensity.

guint16 Pango::Color::get_green (  )  const
 

Gets the green component of the color.

Returns:
The green component of the color. This is a value between 0 and 65535, with 65535 indicating full intensity.

guint16 Pango::Color::get_red (  )  const
 

Gets the red component of the color.

Returns:
The red component of the color. This is a value between 0 and 65535, with 65535 indicating full intensity.

const PangoColor* Pango::Color::gobj (  )  const [inline]
 

Provides access to the underlying C instance.

PangoColor* Pango::Color::gobj (  )  [inline]
 

Provides access to the underlying C instance.

bool Pango::Color::parse ( const Glib::ustring&  spec  ) 
 

void Pango::Color::set_blue ( const guint16&  value  ) 
 

Sets the blue component of the color.

Parameters:
blue The blue component of the color. This is a value between 0 and 65535, with 65535 indicating full intensity.

void Pango::Color::set_green ( const guint16&  value  ) 
 

Sets the green component of the color.

Parameters:
green The green component of the color. This is a value between 0 and 65535, with 65535 indicating full intensity.

void Pango::Color::set_red ( const guint16&  value  ) 
 

Sets the red component of the color.

Parameters:
red The red component of the color. This is a value between 0 and 65535, with 65535 indicating full intensity.


Friends And Related Function Documentation

const Pango::Color& wrap ( const PangoColor*  object  )  [related]
 

Pango::Color& wrap ( PangoColor*  object  )  [related]
 


Member Data Documentation

PangoColor Pango::Color::gobject_ [protected]
 


The documentation for this class was generated from the following file:
Generated for gtkmm2.2 by Doxygen 1.3.3 © 1997-2001