2011-12-28 21:59:55 +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 21:59:55 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GTK_STYLE_PROVIDER_PRIVATE_H__
|
|
|
|
#define __GTK_STYLE_PROVIDER_PRIVATE_H__
|
|
|
|
|
|
|
|
#include <glib-object.h>
|
2012-04-19 01:58:28 +00:00
|
|
|
#include "gtk/gtkcsskeyframesprivate.h"
|
2011-12-28 21:59:55 +00:00
|
|
|
#include "gtk/gtkcsslookupprivate.h"
|
2012-03-17 01:36:11 +00:00
|
|
|
#include "gtk/gtkcssmatcherprivate.h"
|
2012-11-25 01:28:59 +00:00
|
|
|
#include "gtk/gtkcssvalueprivate.h"
|
2012-03-16 19:01:50 +00:00
|
|
|
#include <gtk/gtktypes.h>
|
2011-12-28 21:59:55 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
#define GTK_TYPE_STYLE_PROVIDER_PRIVATE (_gtk_style_provider_private_get_type ())
|
|
|
|
#define GTK_STYLE_PROVIDER_PRIVATE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_STYLE_PROVIDER_PRIVATE, GtkStyleProviderPrivate))
|
|
|
|
#define GTK_IS_STYLE_PROVIDER_PRIVATE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_STYLE_PROVIDER_PRIVATE))
|
|
|
|
#define GTK_STYLE_PROVIDER_PRIVATE_GET_INTERFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), GTK_TYPE_STYLE_PROVIDER_PRIVATE, GtkStyleProviderPrivateInterface))
|
|
|
|
|
|
|
|
typedef struct _GtkStyleProviderPrivateInterface GtkStyleProviderPrivateInterface;
|
2012-09-28 11:42:21 +00:00
|
|
|
/* typedef struct _GtkStyleProviderPrivate GtkStyleProviderPrivate; */ /* dummy typedef */
|
2011-12-28 21:59:55 +00:00
|
|
|
|
|
|
|
struct _GtkStyleProviderPrivateInterface
|
|
|
|
{
|
|
|
|
GTypeInterface g_iface;
|
|
|
|
|
2012-11-25 01:28:59 +00:00
|
|
|
GtkCssValue * (* get_color) (GtkStyleProviderPrivate *provider,
|
2011-12-28 21:59:55 +00:00
|
|
|
const char *name);
|
2012-12-01 00:24:12 +00:00
|
|
|
GtkSettings * (* get_settings) (GtkStyleProviderPrivate *provider);
|
2012-04-19 01:58:28 +00:00
|
|
|
GtkCssKeyframes * (* get_keyframes) (GtkStyleProviderPrivate *provider,
|
|
|
|
const char *name);
|
2011-12-28 21:59:55 +00:00
|
|
|
void (* lookup) (GtkStyleProviderPrivate *provider,
|
2012-03-17 01:36:11 +00:00
|
|
|
const GtkCssMatcher *matcher,
|
2011-12-28 21:59:55 +00:00
|
|
|
GtkCssLookup *lookup);
|
2012-03-17 20:09:51 +00:00
|
|
|
GtkCssChange (* get_change) (GtkStyleProviderPrivate *provider,
|
|
|
|
const GtkCssMatcher *matcher);
|
2012-04-08 15:33:22 +00:00
|
|
|
|
|
|
|
/* signal */
|
|
|
|
void (* changed) (GtkStyleProviderPrivate *provider);
|
2011-12-28 21:59:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
GType _gtk_style_provider_private_get_type (void) G_GNUC_CONST;
|
|
|
|
|
2012-12-01 00:24:12 +00:00
|
|
|
GtkSettings * _gtk_style_provider_private_get_settings (GtkStyleProviderPrivate *provider);
|
2012-11-25 01:28:59 +00:00
|
|
|
GtkCssValue * _gtk_style_provider_private_get_color (GtkStyleProviderPrivate *provider,
|
2011-12-28 21:59:55 +00:00
|
|
|
const char *name);
|
2012-04-19 01:58:28 +00:00
|
|
|
GtkCssKeyframes * _gtk_style_provider_private_get_keyframes(GtkStyleProviderPrivate *provider,
|
|
|
|
const char *name);
|
2011-12-28 21:59:55 +00:00
|
|
|
void _gtk_style_provider_private_lookup (GtkStyleProviderPrivate *provider,
|
2012-03-17 01:36:11 +00:00
|
|
|
const GtkCssMatcher *matcher,
|
2011-12-28 21:59:55 +00:00
|
|
|
GtkCssLookup *lookup);
|
2012-03-17 20:09:51 +00:00
|
|
|
GtkCssChange _gtk_style_provider_private_get_change (GtkStyleProviderPrivate *provider,
|
|
|
|
const GtkCssMatcher *matcher);
|
2011-12-28 21:59:55 +00:00
|
|
|
|
2012-04-08 15:33:22 +00:00
|
|
|
void _gtk_style_provider_private_changed (GtkStyleProviderPrivate *provider);
|
|
|
|
|
2011-12-28 21:59:55 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GTK_STYLE_PROVIDER_PRIVATE_H__ */
|