#include <goffice/gtk/go-color-group.h>
#include <gtk/gtkwidget.h>
Go to the source code of this file.
Defines | |
#define | GO_COLOR_PALETTE_TYPE (go_color_palette_get_type ()) |
#define | GO_COLOR_PALETTE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GO_COLOR_PALETTE_TYPE, GOColorPalette)) |
#define | GO_COLOR_PALETTE_CLASS(k) (G_TYPE_CHECK_CLASS_CAST(k), GO_COLOR_PALETTE_TYPE) |
#define | IS_GO_COLOR_PALETTE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GO_COLOR_PALETTE_TYPE)) |
Typedefs | |
typedef typedefG_BEGIN_DECLS struct _GOColorPalette | GOColorPalette |
Functions | |
GType | go_color_palette_get_type (void) |
GtkWidget * | go_color_palette_new (char const *no_color_label, GOColor default_color, GOColorGroup *color_group) |
go_color_palette_new: : color label : GOColor : GOColorGroup | |
GtkWidget * | go_color_palette_make_menu (char const *no_color_label, GOColor default_color, GOColorGroup *color_group, char const *custom_dialog_title, GOColor current_color) |
go_color_palette_make_menu: : color label : GOColor : GOColorGroup : optional string : GOColor | |
void | go_color_palette_set_title (GOColorPalette *p, char const *title) |
void | go_color_palette_set_group (GOColorPalette *p, GOColorGroup *cg) |
go_color_palette_set_group : : GOColorPalette : GOColorGroup | |
void | go_color_palette_set_current_color (GOColorPalette *p, GOColor color) |
void | go_color_palette_set_color_to_default (GOColorPalette *p) |
GOColor | go_color_palette_get_current_color (GOColorPalette *p, gboolean *is_default, gboolean *is_custom) |
void | go_color_palette_set_allow_alpha (GOColorPalette *p, gboolean allow_alpha) |
#define GO_COLOR_PALETTE | ( | obj | ) | (G_TYPE_CHECK_INSTANCE_CAST((obj), GO_COLOR_PALETTE_TYPE, GOColorPalette)) |
#define GO_COLOR_PALETTE_CLASS | ( | k | ) | (G_TYPE_CHECK_CLASS_CAST(k), GO_COLOR_PALETTE_TYPE) |
#define GO_COLOR_PALETTE_TYPE (go_color_palette_get_type ()) |
Referenced by go_color_palette_new().
#define IS_GO_COLOR_PALETTE | ( | obj | ) | (G_TYPE_CHECK_INSTANCE_TYPE((obj), GO_COLOR_PALETTE_TYPE)) |
typedef typedefG_BEGIN_DECLS struct _GOColorPalette GOColorPalette |
GOColor go_color_palette_get_current_color | ( | GOColorPalette * | p, | |
gboolean * | is_default, | |||
gboolean * | is_custom | |||
) |
Referenced by cb_preview_clicked(), go_combo_color_get_color(), and go_combo_color_new().
GType go_color_palette_get_type | ( | void | ) |
GtkWidget* go_color_palette_make_menu | ( | char const * | no_color_label, | |
GOColor | default_color, | |||
GOColorGroup * | cg, | |||
char const * | custom_dialog_title, | |||
GOColor | current_color | |||
) |
go_color_palette_make_menu: : color label : GOColor : GOColorGroup : optional string : GOColor
Returns: a submenu with a palette of colours. Caller is responsible for creating an item to point to the submenu.
go_color_palette_make_menu: : color label : GOColor : GOColorGroup : optional string : GOColor
Create a submenu with a palette of colours. Caller is responsible for creating an item to point to the submenu.
References _, cb_menu_color_activate(), cb_menu_custom_activate(), cb_menu_default_activate(), GOColorGroup::history, make_colored_menu_item(), and rows.
GtkWidget* go_color_palette_new | ( | char const * | no_color_label, | |
GOColor | default_color, | |||
GOColorGroup * | cg | |||
) |
go_color_palette_new: : color label : GOColor : GOColorGroup
Returns: A new palette
References go_color_palette_set_group(), go_color_palette_setup(), GO_COLOR_PALETTE_TYPE, GO_TYPE_COLOR_PALETTE, and rows.
Referenced by color_table_setup().
void go_color_palette_set_allow_alpha | ( | GOColorPalette * | p, | |
gboolean | allow_alpha | |||
) |
Referenced by go_combo_color_set_allow_alpha().
void go_color_palette_set_color_to_default | ( | GOColorPalette * | p | ) |
References set_color().
Referenced by go_combo_color_set_color_gdk(), and go_combo_color_set_color_to_default().
void go_color_palette_set_current_color | ( | GOColorPalette * | p, | |
GOColor | color | |||
) |
References set_color().
Referenced by go_combo_color_set_color(), and go_combo_color_set_color_gdk().
void go_color_palette_set_group | ( | GOColorPalette * | pal, | |
GOColorGroup * | cg | |||
) |
go_color_palette_set_group : : GOColorPalette : GOColorGroup
go_color_palette_set_group : : GOColorPalette : GOColorGroup
Absorb the reference to the group
References cb_history_changed().
Referenced by go_color_palette_finalize(), and go_color_palette_new().
void go_color_palette_set_title | ( | GOColorPalette * | p, | |
char const * | title | |||
) |
Referenced by go_combo_color_set_title().