| Top |  |  |  |  | 
| void | (*GOPaletteSwatchRenderCallback) () | 
| const char * | (*GOPaletteSwatchTooltipCallback) () | 
| int | go_palette_get_n_swatches () | 
| gpointer | go_palette_get_user_data () | 
| GtkWidget * | go_palette_new () | 
| void | go_palette_show_automatic () | 
| void | go_palette_show_custom () | 
| GtkWidget * | go_palette_swatch_new () | 
    GObject
    ╰── GInitiallyUnowned
        ╰── GtkWidget
            ╰── GtkContainer
                ╰── GtkMenuShell
                    ╰── GtkMenu
                        ╰── GOPalette
void (*GOPaletteSwatchRenderCallback) (cairo_t *cr,GdkRectangle const *area,int index,gpointer data);
const char * (*GOPaletteSwatchTooltipCallback) (int index,gpointer data);
int
go_palette_get_n_swatches (GOPalette *palette);
A convenience function.
GtkWidget * go_palette_new (int n_swatches,double swatch_width,int n_columns,GOPaletteSwatchRenderCallback swatch_render,GOPaletteSwatchTooltipCallback get_tooltip,gpointer data,GDestroyNotify destroy);
| n_swatches | number of palette items | |
| swatch_width | swatch width as multiple of swatch height | |
| n_columns | number of columns for displaying palette items | |
| swatch_render | a user function used for swatch rendering. | [scope notified] | 
| data | user data for use by swatch render function | |
| destroy | a function to destroy user data on widget finalization. | [scope async] | 
void go_palette_show_automatic (GOPalette *palette,int index,char const *label);
Adds an automatic button to palette
.
void go_palette_show_custom (GOPalette *palette,char const *label);
Adds a custom button to bottom of palette
. An activation
of custom button will cause an emition of "custom_activate" signal.
“activate” signalvoid user_function (GOPalette *gopalette, gint arg1, gpointer user_data)
| gopalette | the object which received the signal. | |
| user_data | user data set when the signal handler was connected. | 
Flags: Run Last
“automatic-activate” signalvoid user_function (GOPalette *gopalette, gint arg1, gpointer user_data)
| gopalette | the object which received the signal. | |
| user_data | user data set when the signal handler was connected. | 
Flags: Run Last
“custom-activate” signalvoid user_function (GOPalette *gopalette, gpointer user_data)
| gopalette | the object which received the signal. | |
| user_data | user data set when the signal handler was connected. | 
Flags: Run Last