Logo Search packages:      
Sourcecode: ardour version File versions

Gdk::Color Class Reference

#include <color.h>

List of all members.


Detailed Description

Gdk::Color is used to describe an allocated or unallocated color. It contains the following data: pixel: For allocated colors, the value used to draw this color on the screen. red: The red component of the color. This is a value between 0 and 65535, with 65535 indicating full intensitiy. green: The green component of the color. blue: The blue component of the color.

Definition at line 46 of file color.h.


Public Types

typedef GdkColor BaseObjectType
typedef Color CppObjectType

Public Member Functions

 Color (const Glib::ustring &value)
 Color ()
 Color (const Color &other)
 Color (GdkColor *gobject, bool make_a_copy=true)
gushort get_blue () const
double get_blue_p () const
gushort get_green () const
double get_green_p () const
guint get_pixel () const
gushort get_red () const
double get_red_p () const
const GdkColor * gobj () const
 Provides access to the underlying C instance.
GdkColor * gobj ()
 Provides access to the underlying C instance.
GdkColor * gobj_copy () const
 Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs.
Coloroperator= (const Color &other)
bool parse (const Glib::ustring &spec)
void rgb_find_color (const Glib::RefPtr< Gdk::Colormap > &map)
bool set (const Glib::ustring &value)
void set_blue (gushort value)
void set_green (gushort value)
void set_grey (gushort value)
void set_grey_p (double g)
void set_hsl (double h, double s, double l)
void set_hsv (double h, double s, double v)
void set_red (gushort value)
void set_rgb (gushort red_, gushort green_, gushort blue_)
void set_rgb_p (double red_, double green_, double blue_)
void swap (Color &other)

Static Public Member Functions

static GType get_type () G_GNUC_CONST

Protected Attributes

GdkColor * gobject_

Related Functions

(Note that these are not member functions.)

bool operator!= (const Color &lhs, const Color &rhs)
bool operator== (const Color &lhs, const Color &rhs)
void swap (Color &lhs, Color &rhs)
Gdk::Color wrap (GdkColor *object, bool take_copy=false)

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index