Class Index Cross Index Namespace Index

Class Gnome::ColorPicker

Button used to Select Colors
Contained in: Gnome
Derived from: Gtk::Button
Derived by: none

#include <gtk--/color-picker.h>


public function member index:

ColorPicker();
void get(gdouble& r, gdouble& g, gdouble& b, gdouble& a) const;
void get(guint8& r, guint8& g, guint8& b, guint8& a) const;
void get(gushort& r, gushort& g, gushort& b, gushort& a) const;
static GtkType get_type();
const GnomeColorPicker* gtkobj() const;
GnomeColorPicker* gtkobj();
static bool isA(Gtk::Object* checkcast);
void set(gushort r, gushort g, gushort b, gushort a);
void set(gdouble r, gdouble g, gdouble b, gdouble a);
void set(guint8 r, guint8 g, guint8 b, guint8 a);
void set_dither(gboolean dither=true);
void set_title(const Gtk::string& title);
void set_use_alpha(gboolean use_alpha=true);
virtual ~ColorPicker();
 

protected function member index:

explicit ColorPicker(GnomeColorPicker* castitem);
virtual void color_set_impl(guint p0, guint p1, guint p2, guint p3);
void initialize_class();
 

private function member index:

ColorPicker(const ColorPicker&);
ColorPicker& operator =(const ColorPicker&);
 

Description:

This widget provides color selection facilities to your application. The widget appears as a button which contains a "color swatch" of the currently selected color. When the button is pressed, the widget presents the user with a color selection dialog where the color can be selected.

You can select the color to be displayed in a number of ways: floating point values for the red, green and blue channels, integers in the range 0 to 65,535, or integers in the range 0 to 255, depending on your needs.


Function Member Descriptions:

Gnome::ColorPicker::set - Set the color in the picker. Values are in [0, 255]

void set(guint8 r, guint8 g, guint8 b, guint8 a);

Gnome::ColorPicker::set - Set the color in the picker. Values are in [0, 65535]

void set(gushort r, gushort g, gushort b, gushort a);

Gnome::ColorPicker::set - Set the color in the picker. Values are in [0.0, 1.0]

void set(gdouble r, gdouble g, gdouble b, gdouble a);

Gnome::ColorPicker::set_dither - Sets whether the picker should dither the color sample or just

void set_dither(gboolean dither=true);

Gnome::ColorPicker::set_title - Sets the title for the color selection dialog

void set_title(const Gtk::string& title);

Gnome::ColorPicker::set_use_alpha - Sets whether the picker should use the alpha channel or not

void set_use_alpha(gboolean use_alpha=true);


Variable Member Descriptions: