Defines | Typedefs | Functions

go-combo-color.h File Reference

#include <glib-object.h>
#include <goffice/gtk/go-color-group.h>
#include <goffice/utils/go-color.h>
#include <gtk/gtkwidget.h>

Go to the source code of this file.

Defines

#define GO_COMBO_COLOR_TYPE   (go_combo_color_get_type ())
#define GO_COMBO_COLOR(o)   (G_TYPE_CHECK_INSTANCE_CAST((o), GO_COMBO_COLOR_TYPE, GOComboColor))
#define IS_GO_COMBO_COLOR(o)   (G_TYPE_CHECK_INSTANCE_TYPE((o), GO_COMBO_COLOR_TYPE))
#define GO_COMBO_COLOR_CLASS(k)   (G_TYPE_CHECK_CLASS_CAST(k), GO_COMBO_COLOR_TYPE)

Typedefs

typedef struct _GOComboColor GOComboColor

Functions

GType go_combo_color_get_type (void)
GtkWidget * go_combo_color_new (GdkPixbuf *icon, char const *no_color_label, GOColor default_color, GOColorGroup *color_group)
 go_combo_color_new : : optionally NULL.
GOColor go_combo_color_get_color (GOComboColor *cc, gboolean *is_default)
void go_combo_color_set_color (GOComboColor *cc, GOColor color)
 go_combo_color_set_color : : GOComboColor : a GOColor
void go_combo_color_set_color_to_default (GOComboColor *cc)
 go_combo_color_set_color_to_default : : GOComboColor
void go_combo_color_set_color_gdk (GOComboColor *cc, GdkColor *color)
 go_combo_color_set_color_gdk : : The combo : The color
void go_combo_color_set_allow_alpha (GOComboColor *cc, gboolean allow_alpha)
 go_combo_color_set_allow_alpha : : GOComboColor : Support alpha layer
void go_combo_color_set_instant_apply (GOComboColor *cc, gboolean active)
 go_combo_color_set_instant_apply : : GOComboColor : Whether instant apply should be active or not

Define Documentation

#define GO_COMBO_COLOR (   o  )     (G_TYPE_CHECK_INSTANCE_CAST((o), GO_COMBO_COLOR_TYPE, GOComboColor))
#define GO_COMBO_COLOR_CLASS (   k  )     (G_TYPE_CHECK_CLASS_CAST(k), GO_COMBO_COLOR_TYPE)
#define GO_COMBO_COLOR_TYPE   (go_combo_color_get_type ())

Referenced by go_combo_color_new().

#define IS_GO_COMBO_COLOR (   o  )     (G_TYPE_CHECK_INSTANCE_TYPE((o), GO_COMBO_COLOR_TYPE))

Typedef Documentation

typedef struct _GOComboColor GOComboColor

Function Documentation

GOColor go_combo_color_get_color ( GOComboColor cc,
gboolean *  is_default 
)
GType go_combo_color_get_type ( void   ) 
GtkWidget* go_combo_color_new ( GdkPixbuf *  icon,
char const *  no_color_label,
GOColor  default_color,
GOColorGroup color_group 
)

go_combo_color_new : : optionally NULL.

: FIXME : The colour to use a the default : GOColorGroup

Default constructor. Pass an optional icon and an optional label for the no/auto color button.

Returns: The newly constructed combo.

: FIXME

Default constructor. Pass an optional icon and an optional label for the no/auto color button.

References cc, color_table_setup(), _GOComboColor::default_color, go_color_palette_get_current_color(), GO_COMBO_BOX, go_combo_box_construct(), go_combo_color_set_color_internal(), GO_COMBO_COLOR_TYPE, GO_TYPE_COMBO_COLOR, GOColor, _GOComboColor::palette, _GOComboColor::preview_button, _GOComboColor::preview_image, _GOComboColor::preview_is_icon, and PREVIEW_SIZE.

Referenced by EV_UnixToolbar::synthesize().

void go_combo_color_set_allow_alpha ( GOComboColor cc,
gboolean  allow_alpha 
)

go_combo_color_set_allow_alpha : : GOComboColor : Support alpha layer

Should the custom colour selector allow the use of opacity.

go_combo_color_set_allow_alpha : : GOComboColor : Support alpha layer

Should the custom colour selector allow the use of opacity.

References go_color_palette_set_allow_alpha(), and _GOComboColor::palette.

void go_combo_color_set_color ( GOComboColor cc,
GOColor  c 
)

go_combo_color_set_color : : GOComboColor : a GOColor

References go_color_palette_set_current_color(), and _GOComboColor::palette.

void go_combo_color_set_color_gdk ( GOComboColor cc,
GdkColor *  color 
)

go_combo_color_set_color_gdk : : The combo : The color

Set the color of the combo to the given color. Causes the color_changed signal to be emitted.

References GDK_TO_UINT, go_color_palette_set_color_to_default(), go_color_palette_set_current_color(), IS_GO_COMBO_COLOR, and _GOComboColor::palette.

void go_combo_color_set_color_to_default ( GOComboColor cc  ) 

go_combo_color_set_color_to_default : : GOComboColor

Set the color of the combo to the default color. Causes the color_changed signal to be emitted.

go_combo_color_set_color_to_default : : GOComboColor

Set the color of the combo to the default color. Causes the color_changed signal to be emitted.

References go_color_palette_set_color_to_default(), GO_IS_COMBO_COLOR, IS_GO_COMBO_COLOR, and _GOComboColor::palette.

void go_combo_color_set_instant_apply ( GOComboColor cc,
gboolean  active 
)

go_combo_color_set_instant_apply : : GOComboColor : Whether instant apply should be active or not

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.

go_combo_color_set_instant_apply : : GOComboColor : Whether instant apply should be active or not

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.

References GO_IS_COMBO_COLOR, _GOComboColor::instant_apply, and IS_GO_COMBO_COLOR.

Referenced by EV_UnixToolbar::synthesize().