![]() |
![]() |
Inheritance diagram for Gtk::ColorSelection:
Public Types | |
typedef SigC::Slot2< void, const Glib::RefPtr<Gdk::Screen>&, const Gdk::ArrayHandle_Color& > | SlotChangePaletteHook |
Public Methods | |
virtual | ~ColorSelection () |
GtkColorSelection* | gobj () |
Provides access to the underlying C GtkObject. | |
const GtkColorSelection* | gobj () const |
Provides access to the underlying C GtkObject. | |
ColorSelection () | |
bool | get_has_opacity_control () const |
Determines whether the colorsel has an opacity control. | |
void | set_has_opacity_control (bool has_opacity=true) |
Sets the colorsel to use or not use opacity. | |
bool | get_has_palette () const |
Determines whether the color selector has a color palette. | |
void | set_has_palette (bool has_palette=true) |
Shows and hides the palette based upon the value of has_palette . | |
void | set_current_color (const Gdk::Color& color) |
Sets the current color to be color . | |
void | set_current_alpha (guint16 alpha) |
Sets the current opacity to be alpha . | |
Gdk::Color | get_current_color () const |
guint16 | get_current_alpha () const |
Returns the current alpha value. | |
void | set_previous_color (const Gdk::Color& color) |
Sets the 'previous' color to be color . | |
void | set_previous_alpha (guint16 alpha) |
Sets the 'previous' alpha to be alpha . | |
Gdk::Color | get_previous_color () const |
guint16 | get_previous_alpha () const |
Returns the previous alpha value. | |
bool | is_adjusting () const |
Gets the current state of the colorsel . | |
Glib::SignalProxy0<void> | signal_color_changed () |
Glib::PropertyProxy<bool> | property_has_palette () |
Glib::PropertyProxy<bool> | property_has_opacity_control () |
Glib::PropertyProxy<Gdk::Color> | property_current_color () |
Glib::PropertyProxy<guint> | property_current_alpha () |
Static Public Methods | |
Gdk::ArrayHandle_Color | palette_from_string (const Glib::ustring& str) |
Glib::ustring | palette_to_string (const Gdk::ArrayHandle_Color& colors) |
SlotChangePaletteHook | set_change_palette_hook (const SlotChangePaletteHook& slot) |
Protected Methods | |
virtual void | on_color_changed () |
Related Functions | |
(Note that these are not member functions.) | |
Gtk::ColorSelection* | wrap (GtkColorSelection* object, bool take_copy=false) |
This widget is used to select a color. It consists of a color wheel and number of sliders and entry boxes for color parameters such as hue, saturation, value, red, green, blue, and opacity.
It is found on the standard color selection dialog box Gtk::ColorSelectionDialog.
|
|
|
|
|
|
|
Returns the current alpha value.
|
|
|
|
Determines whether the colorsel has an opacity control.
|
|
Determines whether the color selector has a color palette.
|
|
Returns the previous alpha value.
|
|
|
|
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::VBox. |
|
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::VBox. |
|
Gets the current state of the colorsel .
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Sets the current opacity to be alpha . The first time this is called, it will also set the original opacity to be alpha too.
|
|
Sets the current color to be color . The first time this is called, it will also set the original color to be color too.
|
|
Sets the colorsel to use or not use opacity.
|
|
Shows and hides the palette based upon the value of has_palette .
|
|
Sets the 'previous' alpha to be alpha . This function should be called with some hesitations, as it might seem confusing to have that alpha change.
|
|
Sets the 'previous' color to be color . This function should be called with some hesitations, as it might seem confusing to have that color change. Calling set_current_color() will also set this color the first time it is called.
|
|
|
|
|