2011-04-08 14:08:28 +00:00
|
|
|
/* GTK - The GIMP Toolkit
|
|
|
|
* Copyright (C) 2010 Carlos Garnacho <carlosg@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-04-08 14:08:28 +00:00
|
|
|
*/
|
|
|
|
|
2011-05-21 01:30:36 +00:00
|
|
|
#ifndef __GTK_STYLEPROPERTY_PRIVATE_H__
|
|
|
|
#define __GTK_STYLEPROPERTY_PRIVATE_H__
|
2011-04-08 14:08:28 +00:00
|
|
|
|
2020-10-03 02:28:17 +00:00
|
|
|
#include <gtk/css/gtkcss.h>
|
|
|
|
#include "gtk/css/gtkcsstokenizerprivate.h"
|
|
|
|
#include "gtk/css/gtkcssparserprivate.h"
|
2011-11-15 15:56:59 +00:00
|
|
|
#include "gtkstylecontextprivate.h"
|
2012-03-06 13:16:32 +00:00
|
|
|
#include "gtkcssvalueprivate.h"
|
2011-04-08 14:08:28 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2011-12-31 02:54:17 +00:00
|
|
|
#define GTK_TYPE_STYLE_PROPERTY (_gtk_style_property_get_type ())
|
|
|
|
#define GTK_STYLE_PROPERTY(obj) (G_TYPE_CHECK_INSTANCE_CAST (obj, GTK_TYPE_STYLE_PROPERTY, GtkStyleProperty))
|
|
|
|
#define GTK_STYLE_PROPERTY_CLASS(cls) (G_TYPE_CHECK_CLASS_CAST (cls, GTK_TYPE_STYLE_PROPERTY, GtkStylePropertyClass))
|
|
|
|
#define GTK_IS_STYLE_PROPERTY(obj) (G_TYPE_CHECK_INSTANCE_TYPE (obj, GTK_TYPE_STYLE_PROPERTY))
|
|
|
|
#define GTK_IS_STYLE_PROPERTY_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE (obj, GTK_TYPE_STYLE_PROPERTY))
|
|
|
|
#define GTK_STYLE_PROPERTY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_STYLE_PROPERTY, GtkStylePropertyClass))
|
|
|
|
|
|
|
|
typedef struct _GtkStyleProperty GtkStyleProperty;
|
|
|
|
typedef struct _GtkStylePropertyClass GtkStylePropertyClass;
|
|
|
|
|
2012-03-06 13:16:32 +00:00
|
|
|
typedef GtkCssValue * (* GtkStyleQueryFunc) (guint id,
|
|
|
|
gpointer data);
|
2012-01-11 01:43:16 +00:00
|
|
|
|
2011-05-21 02:17:28 +00:00
|
|
|
struct _GtkStyleProperty
|
|
|
|
{
|
2011-12-31 02:54:17 +00:00
|
|
|
GObject parent;
|
|
|
|
|
2011-12-31 13:34:42 +00:00
|
|
|
char *name;
|
2011-05-21 02:17:28 +00:00
|
|
|
};
|
|
|
|
|
2011-12-31 02:54:17 +00:00
|
|
|
struct _GtkStylePropertyClass
|
|
|
|
{
|
|
|
|
GObjectClass parent_class;
|
2011-12-31 13:34:42 +00:00
|
|
|
|
2012-03-26 15:24:02 +00:00
|
|
|
GtkCssValue * (* parse_value) (GtkStyleProperty * property,
|
2012-04-18 20:04:44 +00:00
|
|
|
GtkCssParser *parser);
|
2012-01-01 20:58:45 +00:00
|
|
|
|
2011-12-31 13:34:42 +00:00
|
|
|
GHashTable *properties;
|
2011-12-31 02:54:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
GType _gtk_style_property_get_type (void) G_GNUC_CONST;
|
|
|
|
|
2012-01-09 21:06:17 +00:00
|
|
|
void _gtk_style_property_init_properties (void);
|
|
|
|
|
2011-12-31 15:08:23 +00:00
|
|
|
GtkStyleProperty * _gtk_style_property_lookup (const char *name);
|
2011-05-21 02:17:28 +00:00
|
|
|
|
2011-12-31 13:34:42 +00:00
|
|
|
const char * _gtk_style_property_get_name (GtkStyleProperty *property);
|
|
|
|
|
2012-03-26 15:24:02 +00:00
|
|
|
GtkCssValue * _gtk_style_property_parse_value (GtkStyleProperty * property,
|
2012-04-18 20:04:44 +00:00
|
|
|
GtkCssParser *parser);
|
2011-04-08 14:08:28 +00:00
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
2011-05-21 01:30:36 +00:00
|
|
|
#endif /* __GTK_CSS_STYLEPROPERTY_PRIVATE_H__ */
|