Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
move_to_show_surface.c File Reference
#include "cairo_test.h"

Go to the source code of this file.

Functions

static void draw (cairo_t *cr, int width, int height)
int main (void)

Variables

cairo_test_t test

Function Documentation

static void draw ( cairo_t *  cr,
int  width,
int  height 
) [static]

Definition at line 47 of file move_to_show_surface.c.

{
    cairo_surface_t *surface;
    uint32_t colors[4] = {
       0xffffffff, 0xffff0000,
       0xff00ff00, 0xff0000ff
    };
    int i;

    for (i=0; i < 4; i++) {
       surface = cairo_surface_create_for_image ((char *) &colors[i],
                                            CAIRO_FORMAT_ARGB32, 1, 1, 4);
       cairo_move_to (cr, i % 2, i / 2);
       cairo_show_surface (cr, surface, 1, 1);
       cairo_surface_destroy (surface);
    }
}

Here is the caller graph for this function:

int main ( void  )

Definition at line 66 of file move_to_show_surface.c.

{
    return cairo_test (&test, draw);
}

Here is the call graph for this function:


Variable Documentation

Initial value:
 {
    "move_to_show_surface",
    "Tests calls to cairo_show_surface after cairo_move_to",
    2, 2
}

Definition at line 40 of file move_to_show_surface.c.