Defines | Typedefs | Functions

go-color-palette.h File Reference

#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 Documentation

#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 Documentation

typedef typedefG_BEGIN_DECLS struct _GOColorPalette GOColorPalette

Function Documentation

GOColor go_color_palette_get_current_color ( GOColorPalette p,
gboolean *  is_default,
gboolean *  is_custom 
)
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 
)
void go_color_palette_set_color_to_default ( GOColorPalette p  ) 
void go_color_palette_set_current_color ( GOColorPalette p,
GOColor  color 
)
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 
)