2011-12-28 15:15:00 +00:00
|
|
|
/* GTK - The GIMP Toolkit
|
|
|
|
* Copyright (C) 2011 Benjamin Otte <otte@gnome.org>
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2012-02-27 13:01:10 +00:00
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
2011-12-28 15:15:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GTK_SYMBOLIC_COLOR_PRIVATE_H__
|
|
|
|
#define __GTK_SYMBOLIC_COLOR_PRIVATE_H__
|
|
|
|
|
|
|
|
#include "gtk/gtksymboliccolor.h"
|
2012-04-05 19:09:35 +00:00
|
|
|
#include "gtk/gtkcssparserprivate.h"
|
2012-03-08 13:52:10 +00:00
|
|
|
#include "gtk/gtkcssvalueprivate.h"
|
2011-12-28 15:15:00 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
typedef GtkSymbolicColor * (* GtkSymbolicColorLookupFunc) (gpointer data, const char *name);
|
|
|
|
|
2012-03-08 13:52:10 +00:00
|
|
|
GtkCssValue * _gtk_symbolic_color_resolve_full (GtkSymbolicColor *color,
|
2012-04-05 20:12:37 +00:00
|
|
|
GtkCssValue *current,
|
2011-12-28 15:15:00 +00:00
|
|
|
GtkSymbolicColorLookupFunc func,
|
2012-03-08 13:52:10 +00:00
|
|
|
gpointer data);
|
2011-12-28 15:15:00 +00:00
|
|
|
|
2012-01-14 01:38:42 +00:00
|
|
|
GtkSymbolicColor * _gtk_symbolic_color_get_current_color (void);
|
|
|
|
|
2012-04-07 04:18:03 +00:00
|
|
|
GtkCssValue * _gtk_css_symbolic_value_new (GtkCssParser *parser);
|
|
|
|
|
|
|
|
/* I made these inline functions instead of macros to gain type safety for the arguments passed in. */
|
|
|
|
static inline GtkSymbolicColor *
|
|
|
|
_gtk_symbolic_color_new_take_value (GtkCssValue *value)
|
|
|
|
{
|
|
|
|
return (GtkSymbolicColor *) value;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline GtkCssValue *
|
|
|
|
_gtk_css_symbolic_value_new_take_symbolic_color (GtkSymbolicColor *color)
|
|
|
|
{
|
|
|
|
return (GtkCssValue *) color;
|
|
|
|
}
|
2012-04-05 19:09:35 +00:00
|
|
|
|
2011-12-28 15:15:00 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GTK_SYMBOLIC_COLOR_PRIVATE_H__ */
|