diff options
author | Christian Hergert <christian@hergert.me> | 2015-09-08 14:45:51 -0700 |
---|---|---|
committer | Christian Hergert <christian@hergert.me> | 2015-09-13 13:41:19 -0700 |
commit | c1691a49640026c4701f13c96ab914cd456310b7 (patch) | |
tree | 8ab6a86180cad61b6b85b5545f5bfae2bdf7267c /gtk/gtkstylecontextprivate.h | |
parent | b64a0b923389fb719b6d8947973c834c0be315cb (diff) | |
download | gtk+-c1691a49640026c4701f13c96ab914cd456310b7.tar.gz |
stylecontext: add opaque background helper
This new private API, _gtk_style_context_is_background_opaque(), is meant to
be used by internal Gtk+ wigets to optimize fast paths for cases where
applicable. One such use would be to use a CAIRO_CONTENT_COLOR surface
instead of CAIRO_CONTENT_COLOR_ALPHA.
https://bugzilla.gnome.org/show_bug.cgi?id=754658
Diffstat (limited to 'gtk/gtkstylecontextprivate.h')
-rw-r--r-- | gtk/gtkstylecontextprivate.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkstylecontextprivate.h b/gtk/gtkstylecontextprivate.h index 1ed7b21351..4ba27fe334 100644 --- a/gtk/gtkstylecontextprivate.h +++ b/gtk/gtkstylecontextprivate.h @@ -64,6 +64,8 @@ void _gtk_style_context_get_icon_extents (GtkStyleContext gint width, gint height); +gboolean _gtk_style_context_is_background_opaque (GtkStyleContext *context); + PangoAttrList *_gtk_style_context_get_pango_attributes (GtkStyleContext *context); /* Accessibility support */ |