Class Index | Cross Index | Namespace Index |
A widget used to select a color.
Contained in: Gtk
Derived from:
Gtk::VBox
Derived by:
none
#include <gtk--/colorselection.h>
public function member index: |
||
ColorSelection | (); | |
signal void | color_changed | (); |
void | get_color | (gdouble* color) const; |
GtkColorSelection* | gtkobj | (); |
const GtkColorSelection* | gtkobj | () const; |
static bool | isA | (Object* object); |
void | set_color | (const gdouble* color); |
void | set_opacity | (gint use_opacity); |
void | set_update_policy | (GtkUpdateType policy); |
virtual | ~ColorSelection | (); |
protected function member index: |
||
virtual void | color_changed_impl | (); |
color: A color array consisting of 4 gfloat values for red, green, blue, and opacity.
The widgets are updated to reflect the new color.color: A color array consisting of 4 gfloat values for red, green, blue, and opacity.
If this functionality is enabled, the necessary additional widgets are added to the Gtk::ColorSelection and the opacity value can be retrieved via the fourth value in the color array returned by the get_color function.
The available policies are:GTK_UPDATE_CONTINUOUS - signals are sent continuously as the color selection changes.
GTK_UPDATE_DISCONTINUOUS - signals are sent only when the mouse button is released.
GTK_UPDATE_DELAYED - signals are sent when the mouse button is released or when the mouse has been motionless for a period of time.