![]() |
![]() |
![]() |
Goffice Reference Manual | ![]() |
---|---|---|---|---|
GOComboColor; GtkWidget* go_combo_color_new (GdkPixbuf *icon, char const *no_color_label, GOColor default_color, GOColorGroup *color_group); GOColor go_combo_color_get_color (GOComboColor *cc, gboolean *is_default); void go_combo_color_set_color (GOComboColor *cc, GOColor color); void go_combo_color_set_color_to_default (GOComboColor *cc); void go_combo_color_set_color_gdk (GOComboColor *cc, GdkColor *color); void go_combo_color_set_allow_alpha (GOComboColor *cc, gboolean allow_alpha); void go_combo_color_set_instant_apply (GOComboColor *cc, gboolean active);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBox +----GtkHBox +----GOComboBox +----GOComboColor
GtkWidget* go_combo_color_new (GdkPixbuf *icon, char const *no_color_label, GOColor default_color, GOColorGroup *color_group);
Default constructor. Pass an optional icon and an optional label for the no/auto color button.
|
optionally NULL. |
|
FIXME |
|
The colour to use a the default |
|
GOColorGroup |
Returns : |
The newly constructed combo. |
GOColor go_combo_color_get_color (GOComboColor *cc, gboolean *is_default);
|
|
|
|
Returns : |
void go_combo_color_set_color (GOComboColor *cc, GOColor color);
|
GOComboColor |
|
a GOColor |
void go_combo_color_set_color_to_default (GOComboColor *cc);
Set the color of the combo to the default color. Causes the color_changed signal to be emitted.
|
GOComboColor |
void go_combo_color_set_color_gdk (GOComboColor *cc, GdkColor *color);
Set the color of the combo to the given color. Causes the color_changed signal to be emitted.
|
The combo |
|
The color |
void go_combo_color_set_allow_alpha (GOComboColor *cc, gboolean allow_alpha);
Should the custom colour selector allow the use of opacity.
|
GOComboColor |
|
Support alpha layer |
void go_combo_color_set_instant_apply (GOComboColor *cc, gboolean active);
Turn instant apply behaviour on or off. Instant apply means that pressing the button applies the current color. When off, pressing the button opens the combo.
|
GOComboColor |
|
Whether instant apply should be active or not |
"color-changed"
signalvoid user_function (GOComboColor *gocombocolor, gpointer arg1, gboolean arg2, gboolean arg3, gboolean arg4, gpointer user_data) : Run Last
|
the object which received the signal. |
|
|
|
|
|
|
|
|
|
user data set when the signal handler was connected. |
"display-custom-dialog"
signalvoid user_function (GOComboColor *gocombocolor, GObject *arg1, gpointer user_data) : Run Last
|
the object which received the signal. |
|
|
|
user data set when the signal handler was connected. |