2011-01-23 23:29:07 +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-01-23 23:29:07 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GTK_STYLE_CONTEXT_PRIVATE_H__
|
|
|
|
#define __GTK_STYLE_CONTEXT_PRIVATE_H__
|
|
|
|
|
|
|
|
#include "gtkstylecontext.h"
|
2014-05-10 19:50:37 +00:00
|
|
|
|
2015-01-30 10:42:22 +00:00
|
|
|
#include "gtkcssnodeprivate.h"
|
2014-05-10 19:50:37 +00:00
|
|
|
#include "gtkicontheme.h"
|
2012-09-10 10:35:46 +00:00
|
|
|
#include "gtkstyleproviderprivate.h"
|
2012-07-18 14:55:32 +00:00
|
|
|
#include "gtkbitmaskprivate.h"
|
2012-03-06 13:16:32 +00:00
|
|
|
#include "gtkcssvalueprivate.h"
|
2011-01-23 23:29:07 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2015-02-08 15:37:08 +00:00
|
|
|
GtkStyleContext *gtk_style_context_new_for_node (GtkCssNode *node);
|
|
|
|
|
2015-12-09 17:25:36 +00:00
|
|
|
GtkCssNode *gtk_style_context_get_node (GtkStyleContext *context);
|
2015-01-19 23:33:34 +00:00
|
|
|
void gtk_style_context_set_id (GtkStyleContext *context,
|
|
|
|
const char *id);
|
|
|
|
const char * gtk_style_context_get_id (GtkStyleContext *context);
|
2015-01-31 15:30:05 +00:00
|
|
|
GtkStyleProviderPrivate *
|
|
|
|
gtk_style_context_get_style_provider (GtkStyleContext *context);
|
2015-01-19 23:33:34 +00:00
|
|
|
|
2015-09-05 04:58:17 +00:00
|
|
|
void gtk_style_context_save_named (GtkStyleContext *context,
|
|
|
|
const char *name);
|
2015-02-16 15:37:33 +00:00
|
|
|
void gtk_style_context_save_to_node (GtkStyleContext *context,
|
|
|
|
GtkCssNode *node);
|
2015-09-05 04:58:17 +00:00
|
|
|
|
2015-12-13 03:08:44 +00:00
|
|
|
GtkCssStyleChange *
|
|
|
|
gtk_style_context_get_change (GtkStyleContext *context);
|
2012-11-30 19:36:57 +00:00
|
|
|
|
2015-01-17 01:38:43 +00:00
|
|
|
GtkCssStyle * gtk_style_context_lookup_style (GtkStyleContext *context);
|
2012-03-18 22:02:33 +00:00
|
|
|
GtkCssValue * _gtk_style_context_peek_property (GtkStyleContext *context,
|
2012-03-31 03:42:28 +00:00
|
|
|
guint property_id);
|
2011-01-23 23:29:07 +00:00
|
|
|
const GValue * _gtk_style_context_peek_style_property (GtkStyleContext *context,
|
|
|
|
GType widget_type,
|
|
|
|
GParamSpec *pspec);
|
2015-02-02 14:35:08 +00:00
|
|
|
void gtk_style_context_validate (GtkStyleContext *context,
|
2015-12-13 03:08:44 +00:00
|
|
|
GtkCssStyleChange *change);
|
2015-04-27 17:15:43 +00:00
|
|
|
void gtk_style_context_clear_property_cache (GtkStyleContext *context);
|
2011-01-23 23:29:07 +00:00
|
|
|
gboolean _gtk_style_context_check_region_name (const gchar *str);
|
|
|
|
|
2012-08-27 15:27:06 +00:00
|
|
|
gboolean _gtk_style_context_resolve_color (GtkStyleContext *context,
|
2012-11-25 01:28:59 +00:00
|
|
|
GtkCssValue *color,
|
2015-02-14 01:27:39 +00:00
|
|
|
GdkRGBA *result);
|
2012-08-27 15:27:06 +00:00
|
|
|
void _gtk_style_context_get_cursor_color (GtkStyleContext *context,
|
|
|
|
GdkRGBA *primary_color,
|
|
|
|
GdkRGBA *secondary_color);
|
|
|
|
|
2014-05-19 13:33:28 +00:00
|
|
|
void _gtk_style_context_get_icon_extents (GtkStyleContext *context,
|
|
|
|
GdkRectangle *extents,
|
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
2014-05-10 19:50:37 +00:00
|
|
|
|
2015-09-08 21:45:51 +00:00
|
|
|
gboolean _gtk_style_context_is_background_opaque (GtkStyleContext *context);
|
|
|
|
|
2015-07-04 17:56:40 +00:00
|
|
|
PangoAttrList *_gtk_style_context_get_pango_attributes (GtkStyleContext *context);
|
|
|
|
|
2014-06-15 16:03:59 +00:00
|
|
|
/* Accessibility support */
|
|
|
|
AtkAttributeSet *_gtk_style_context_get_attributes (AtkAttributeSet *attributes,
|
|
|
|
GtkStyleContext *context,
|
|
|
|
GtkStateFlags flags);
|
|
|
|
|
2011-01-23 23:29:07 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GTK_STYLE_CONTEXT_PRIVATE_H__ */
|