00001 /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ 00002 /* 00003 * go-color-selector.h - A color selector 00004 * 00005 * Copyright (c) 2006 Emmanuel Pacaud (emmanuel.pacaud@lapp.in2p3.fr) 00006 * 00007 * This library is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Library General Public 00009 * License, version 2, as published by the Free Software Foundation. 00010 * 00011 * This library is distributed in the hope that it will be useful, but 00012 * WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Library General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Library General Public 00017 * License along with this library; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 00019 * USA. 00020 */ 00021 00022 #ifndef GO_COLOR_SELECTOR_H 00023 #define GO_COLOR_SELECTOR_H 00024 00025 #include <goffice/goffice.h> 00026 00027 G_BEGIN_DECLS 00028 00029 GtkWidget *go_color_selector_new (GOColor initial_color, 00030 GOColor default_color, 00031 char const *color_group); 00032 GOColor go_color_selector_get_color (GOSelector *selector, gboolean *is_auto); 00033 gboolean go_color_selector_set_color (GOSelector *selector, GOColor color); 00034 void go_color_selector_set_allow_alpha (GOSelector *selector, gboolean allow_alpha); 00035 00036 G_END_DECLS 00037 00038 #endif /* GO_COLOR_SELECTOR_H */