Home | History | Annotate | Download | only in gtk

Lines Matching refs:cr

19 void DrawImage(cairo_t* cr, GtkWidget* widget, gfx::Image* src,
24 src->ToCairo()->SetSource(cr, widget, x, y);
25 cairo_paint_with_alpha(cr, alpha);
28 // Tile pixbuf |src| across |cr| at |x|, |y| for |width| and |height|.
29 void TileImage(cairo_t* cr, GtkWidget* widget, gfx::Image* src,
35 src->ToCairo()->SetSource(cr, widget, x, y);
36 cairo_pattern_set_extend(cairo_get_source(cr), CAIRO_EXTEND_REPEAT);
37 cairo_rectangle(cr, x, y, width, height);
38 cairo_fill(cr);
42 cairo_surface_t* target = cairo_get_target(cr);
51 cairo_set_source_surface(cr, surface, x, y);
52 cairo_paint_with_alpha(cr, alpha);
150 cairo_t* cr = gdk_cairo_create(GDK_DRAWABLE(gtk_widget_get_window(dst)));
156 cairo_translate(cr, allocation.x, allocation.y);
160 cairo_translate(cr, w, 0.0f);
161 cairo_scale(cr, -1.0f, 1.0f);
165 DrawImage(cr, dst, images_[0], 0, 0, opacity);
166 TileImage(cr, dst, images_[1], i0w, 0, w - i0w - i2w, i1h, opacity);
167 DrawImage(cr, dst, images_[2], w - i2w, 0, opacity);
170 TileImage(cr, dst, images_[3], 0, i0h, i3w, h - i0h - i6h, opacity);
171 TileImage(cr, dst, images_[4], i4x, i4y, i4w, i4h, opacity);
172 TileImage(cr, dst, images_[5], w - i5w, i2h, i5w, h - i2h - i8h, opacity);
175 DrawImage(cr, dst, images_[6], 0, h - i6h, opacity);
176 TileImage(cr, dst, images_[7], i6w, h - i7h, w - i6w - i8w, i7h, opacity);
177 DrawImage(cr, dst, images_[8], w - i8w, h - i8h, opacity);
179 cairo_destroy(cr);
205 cairo_t* cr = gdk_cairo_create(mask);
206 cairo_rectangle(cr, x1, 0, x2 - x1, height);
207 cairo_fill(cr);
208 cairo_destroy(cr);