gtkstyleproviderprivate.h 3.91 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
/* 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
Javier Jardón's avatar
Javier Jardón committed
15
 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16 17 18 19 20 21
 */

#ifndef __GTK_STYLE_PROVIDER_PRIVATE_H__
#define __GTK_STYLE_PROVIDER_PRIVATE_H__

#include <glib-object.h>
22
#include "gtk/gtkcsskeyframesprivate.h"
23
#include "gtk/gtkcsslookupprivate.h"
24
#include "gtk/gtkcssmatcherprivate.h"
25
#include "gtk/gtkcssvalueprivate.h"
26
#include <gtk/gtktypes.h>
27 28 29 30 31 32 33 34 35

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;
36
/* typedef struct _GtkStyleProviderPrivate GtkStyleProviderPrivate; */ /* dummy typedef */
37 38 39 40 41

struct _GtkStyleProviderPrivateInterface
{
  GTypeInterface g_iface;

42
  GtkCssValue *         (* get_color)           (GtkStyleProviderPrivate *provider,
43
                                                 const char              *name);
44
  GtkSettings *         (* get_settings)        (GtkStyleProviderPrivate *provider);
45 46
  GtkCssKeyframes *     (* get_keyframes)       (GtkStyleProviderPrivate *provider,
                                                 const char              *name);
47
  void                  (* lookup)              (GtkStyleProviderPrivate *provider,
48
                                                 const GtkCssMatcher     *matcher,
49
                                                 GtkCssLookup            *lookup);
50 51
  GtkCssChange          (* get_change)          (GtkStyleProviderPrivate *provider,
                                                 const GtkCssMatcher     *matcher);
52 53 54

  /* signal */
  void                  (* changed)             (GtkStyleProviderPrivate *provider);
55 56 57 58
};

GType                   _gtk_style_provider_private_get_type     (void) G_GNUC_CONST;

59
GtkSettings *           _gtk_style_provider_private_get_settings (GtkStyleProviderPrivate *provider);
60
GtkCssValue *           _gtk_style_provider_private_get_color    (GtkStyleProviderPrivate *provider,
61
                                                                  const char              *name);
62 63
GtkCssKeyframes *       _gtk_style_provider_private_get_keyframes(GtkStyleProviderPrivate *provider,
                                                                  const char              *name);
64
void                    _gtk_style_provider_private_lookup       (GtkStyleProviderPrivate *provider,
65
                                                                  const GtkCssMatcher     *matcher,
66
                                                                  GtkCssLookup            *lookup);
67 68
GtkCssChange            _gtk_style_provider_private_get_change   (GtkStyleProviderPrivate *provider,
                                                                  const GtkCssMatcher     *matcher);
69

70 71
void                    _gtk_style_provider_private_changed      (GtkStyleProviderPrivate *provider);

72 73 74
G_END_DECLS

#endif /* __GTK_STYLE_PROVIDER_PRIVATE_H__ */