Gtk-- Reference: Gdk_Color

Class Index | Cross Index | Namespace Index

# Class Gdk_Color

Gdk Color
Contained in: global
Derived from: GdkColor
Derived by: none

#include <gtk--/color.h>

### public function member index:
`` | `Gdk_Color` | `()`;
`` | `Gdk_Color` | `(`const` `Gtk::string`& `str`)`;
`` | `Gdk_Color` | `(`const` `GdkColor`& `c`)`;
``explicit`` | `Gdk_Color` | `(`const` `GdkColor`* `c`)`;
`` | `Gdk_Color` | `(`const` `Gdk_Color`& `c`)`;
``gdouble`` | `blue_p` | `() `const``;
``gdouble`` | `distance_rgb_euclidean` | `(`const` `Gdk_Color`& `obj`) `const``;
``gdouble`` | `distance_rgb_taxicab` | `(`const` `Gdk_Color`& `obj`) `const``;
``gint`` | `equal` | `(`const` `Gdk_Color`& `color`) `const``;
``GdkColor`*` | `gdkobj` | `()`;
``const` `GdkColor`*` | `gdkobj` | `() `const``;
``gushort`` | `get_blue` | `() `const``;
``gushort`` | `get_green` | `() `const``;
``guint`` | `get_pixel` | `() `const``;
``gushort`` | `get_red` | `() `const``;
``gdouble`` | `green_p` | `() `const``;
``bool`` | `operator``==` | `(`const` `Gdk_Color`& `color`)`;
``gint`` | `parse` | `(`const` `Gtk::string`& `spec`)`;
``gdouble`` | `red_p` | `() `const``;
``gint`` | `set` | `(`const` `Gtk::string`& `str`)`;
``void`` | `set_blue` | `(`gushort` `b`)`;
``void`` | `set_green` | `(`gushort` `g`)`;
``void`` | `set_grey` | `(`gushort` `g`)`;
``void`` | `set_grey_p` | `(`gdouble` `g`)`;
``void`` | `set_hsl` | `(`gdouble` `h`, `gdouble` `s`, `gdouble` `l`)`;
``void`` | `set_hsv` | `(`gdouble` `h`, `gdouble` `s`, `gdouble` `v`)`;
``void`` | `set_random` | `()`;
``void`` | `set_red` | `(`gushort` `r`)`;
``void`` | `set_rgb` | `(`gushort` `red_`, `gushort` `green_`, `gushort` `blue_`)`;
``void`` | `set_rgb_p` | `(`gdouble` `red_`, `gdouble` `green_`, `gdouble` `blue_`)`;
`` | `~Gdk_Color` | `()`;
### private function member index:
``GdkColor`*` | `operator``->` | `()`;
``const` `GdkColor`*` | `operator``->` | `() `const``;

## Description:

This is a container for a GdkColor. It stores 3 color values and the color index. (It is not a handle.)

## Function Member Descriptions: