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
|
|
|
|
|
2017-10-31 03:31:46 +00:00
|
|
|
#define GTK_STYLE_PROVIDER_GET_INTERFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), GTK_TYPE_STYLE_PROVIDER, GtkStyleProviderInterface))
|
2011-12-28 21:59:55 +00:00
|
|
|
|
2017-10-31 03:31:46 +00:00
|
|
|
typedef struct _GtkStyleProviderInterface GtkStyleProviderInterface;
|
2011-12-28 21:59:55 +00:00
|
|
|
|
2017-10-31 03:31:46 +00:00
|
|
|
struct _GtkStyleProviderInterface
|
2011-12-28 21:59:55 +00:00
|
|
|
{
|
|
|
|
GTypeInterface g_iface;
|
|
|
|
|
2017-10-31 03:31:46 +00:00
|
|
|
GtkCssValue * (* get_color) (GtkStyleProvider *provider,
|
2011-12-28 21:59:55 +00:00
|
|
|
const char *name);
|
2017-10-31 03:31:46 +00:00
|
|
|
GtkSettings * (* get_settings) (GtkStyleProvider *provider);
|
|
|
|
GtkCssKeyframes * (* get_keyframes) (GtkStyleProvider *provider,
|
2012-04-19 01:58:28 +00:00
|
|
|
const char *name);
|
2017-10-31 03:31:46 +00:00
|
|
|
int (* get_scale) (GtkStyleProvider *provider);
|
|
|
|
void (* lookup) (GtkStyleProvider *provider,
|
2012-03-17 01:36:11 +00:00
|
|
|
const GtkCssMatcher *matcher,
|
2014-12-09 18:31:17 +00:00
|
|
|
GtkCssLookup *lookup,
|
|
|
|
GtkCssChange *out_change);
|
2017-10-31 03:31:46 +00:00
|
|
|
void (* emit_error) (GtkStyleProvider *provider,
|
2016-01-30 03:45:21 +00:00
|
|
|
GtkCssSection *section,
|
|
|
|
const GError *error);
|
2012-04-08 15:33:22 +00:00
|
|
|
/* signal */
|
2017-10-31 03:31:46 +00:00
|
|
|
void (* changed) (GtkStyleProvider *provider);
|
2011-12-28 21:59:55 +00:00
|
|
|
};
|
|
|
|
|
2017-10-31 03:31:46 +00:00
|
|
|
GtkSettings * gtk_style_provider_get_settings (GtkStyleProvider *provider);
|
|
|
|
GtkCssValue * gtk_style_provider_get_color (GtkStyleProvider *provider,
|
2011-12-28 21:59:55 +00:00
|
|
|
const char *name);
|
2017-10-31 03:31:46 +00:00
|
|
|
GtkCssKeyframes * gtk_style_provider_get_keyframes (GtkStyleProvider *provider,
|
2012-04-19 01:58:28 +00:00
|
|
|
const char *name);
|
2017-10-31 03:31:46 +00:00
|
|
|
int gtk_style_provider_get_scale (GtkStyleProvider *provider);
|
|
|
|
void gtk_style_provider_lookup (GtkStyleProvider *provider,
|
2012-03-17 01:36:11 +00:00
|
|
|
const GtkCssMatcher *matcher,
|
2014-12-09 18:31:17 +00:00
|
|
|
GtkCssLookup *lookup,
|
|
|
|
GtkCssChange *out_change);
|
2011-12-28 21:59:55 +00:00
|
|
|
|
2017-10-31 03:31:46 +00:00
|
|
|
void gtk_style_provider_changed (GtkStyleProvider *provider);
|
2012-04-08 15:33:22 +00:00
|
|
|
|
2017-10-31 03:31:46 +00:00
|
|
|
void gtk_style_provider_emit_error (GtkStyleProvider *provider,
|
2016-01-30 03:45:21 +00:00
|
|
|
GtkCssSection *section,
|
|
|
|
GError *error);
|
|
|
|
|
2011-12-28 21:59:55 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GTK_STYLE_PROVIDER_PRIVATE_H__ */
|