]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkthemingbackgroundprivate.h
stylecontext: Do invalidation on first resize container
[~andy/gtk] / gtk / gtkthemingbackgroundprivate.h
index 27dbc821eea5d3ce59035df3f8f2f3b0090a8cde..23fe092157382ae311841cd78cfd334994e07804 100644 (file)
@@ -14,9 +14,7 @@
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
 #ifndef __GTK_THEMING_BACKGROUND_PRIVATE_H__
 #include "gtkcssimageprivate.h"
 #include "gtkstylecontextprivate.h"
 #include "gtkroundedboxprivate.h"
-#include "gtkshadowprivate.h"
 
 G_BEGIN_DECLS
 
 typedef struct _GtkThemingBackground GtkThemingBackground;
 
 struct _GtkThemingBackground {
-  GtkThemingEngine *engine;
+  GtkStyleContext *context;
 
   cairo_rectangle_t paint_area;
-  cairo_rectangle_t image_rect;
-
-  GtkJunctionSides junction;
-  GtkCssImage *image;
-
+  GtkRoundedBox border_box;
   GtkRoundedBox padding_box;
-  GtkRoundedBox clip_box;
+  GtkRoundedBox content_box;
 
-  GtkStateFlags flags;
-  GtkBorder border;
-  GtkBorder padding;
+  GtkJunctionSides junction;
   GdkRGBA bg_color;
 };
 
@@ -60,6 +51,14 @@ void _gtk_theming_background_init (GtkThemingBackground *bg,
                                    gdouble               height,
                                    GtkJunctionSides      junction);
 
+void _gtk_theming_background_init_from_context (GtkThemingBackground *bg,
+                                                GtkStyleContext      *context,
+                                                gdouble               x,
+                                                gdouble               y,
+                                                gdouble               width,
+                                                gdouble               height,
+                                                GtkJunctionSides      junction);
+
 void _gtk_theming_background_render (GtkThemingBackground *bg,
                                      cairo_t              *cr);