gtkstylecontextprivate.h 3.47 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
/* 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
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_CONTEXT_PRIVATE_H__
#define __GTK_STYLE_CONTEXT_PRIVATE_H__

#include "gtkstylecontext.h"
22
#include "gtksymboliccolor.h"
23
#include "gtkbitmaskprivate.h"
24
#include "gtkcssvalueprivate.h"
25 26 27

G_BEGIN_DECLS

28 29 30
void            _gtk_style_context_set_widget                (GtkStyleContext *context,
                                                              GtkWidget       *widget);
GtkCssValue   * _gtk_style_context_peek_property             (GtkStyleContext *context,
31
                                                              guint            property_id);
32
double         _gtk_style_context_get_number                 (GtkStyleContext *context,
33
                                                              guint            property_id,
34
                                                              double           one_hundred_percent);
35 36 37 38
const GValue * _gtk_style_context_peek_style_property        (GtkStyleContext *context,
                                                              GType            widget_type,
                                                              GtkStateFlags    state,
                                                              GParamSpec      *pspec);
39
void           _gtk_style_context_validate                   (GtkStyleContext *context,
40
                                                              gint64           timestamp,
41 42
                                                              GtkCssChange     change,
                                                              const GtkBitmask*parent_changes);
43 44
void           _gtk_style_context_queue_invalidate           (GtkStyleContext *context,
                                                              GtkCssChange     change);
45 46
gboolean       _gtk_style_context_check_region_name          (const gchar     *str);

47 48 49
gboolean       _gtk_style_context_resolve_color              (GtkStyleContext  *context,
                                                              GtkSymbolicColor *color,
                                                              GdkRGBA          *result);
50
GtkCssValue *  _gtk_style_context_resolve_color_value        (GtkStyleContext  *context,
51
                                                              GtkCssValue      *current,
52
                                                              GtkCssValue      *color);
53 54 55
void           _gtk_style_context_get_cursor_color           (GtkStyleContext *context,
                                                              GdkRGBA         *primary_color,
                                                              GdkRGBA         *secondary_color);
56

57 58
void           _gtk_style_context_stop_animations            (GtkStyleContext  *context);

59 60 61
G_END_DECLS

#endif /* __GTK_STYLE_CONTEXT_PRIVATE_H__ */