Lines Matching defs:surface
3 * Cairo surface that remembers its origin.
13 #include "display/drawing-surface.h"
25 * Drawing surface that remembers its origin.
30 * and the "physical space" (surface pixels). For example, patterns
35 * the Cairo surface it wraps on the first call to createRawContext()
40 * Creates a surface with the given physical extents.
41 * When a drawing context is created for this surface, its pixels
52 * Creates a surface with the given logical and physical extents.
53 * When a drawing context is created for this surface, its pixels
56 * @param logbox Logical extents of the surface
57 * @param pixdims Pixel dimensions of the surface.
68 * This constructor will take an extra reference on @a surface, which will
71 DrawingSurface::DrawingSurface(cairo_surface_t *surface, Geom::Point const &origin)
72 : _surface(surface)
76 cairo_surface_reference(surface);
77 _pixels[X] = cairo_image_surface_get_width(surface);
78 _pixels[Y] = cairo_image_surface_get_height(surface);
87 /// Get the logical extents of the surface.
95 /// Get the pixel dimensions of the surface
102 /// Get the logical width and weight of the surface as a point.
137 /// Drop contents of the surface and release the underlying Cairo object.
148 * Create a drawing context for this surface.
149 * It's better to use the surface constructor of DrawingContext.
316 cairo_surface_t *surface = ink_cairo_surface_copy(_surface);
317 DrawingContext dc(surface, _origin);
333 cairo_surface_write_to_png(surface, fn);
334 cairo_surface_destroy(surface);