Back to index

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

Go to the source code of this file.

Defines

#define LITTLE_STAR_SIZE   20
#define BIG_STAR_SIZE   80

Functions

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

Variables

cairo_test_t test

Define Documentation

Definition at line 67 of file fill_rule.c.

Definition at line 66 of file fill_rule.c.


Function Documentation

static void big_star_path ( cairo_t *  cr) [static]

Definition at line 89 of file fill_rule.c.

{
    cairo_move_to (cr, 40, 0);
    cairo_rel_line_to (cr, 25, 80);
    cairo_rel_line_to (cr, -65, -50);
    cairo_rel_line_to (cr, 80, 0);
    cairo_rel_line_to (cr, -65, 50);
    cairo_close_path (cr);
}

Here is the caller graph for this function:

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

Definition at line 77 of file fill_rule.c.

{
    cairo_move_to (cr, 10, 0);
    cairo_rel_line_to (cr, 6, 20);
    cairo_rel_line_to (cr, -16, -12);
    cairo_rel_line_to (cr, 20, 0);
    cairo_rel_line_to (cr, -16, 12);
}

Here is the caller graph for this function:

int main ( void  )

Definition at line 127 of file fill_rule.c.

{
    return cairo_test (&test, draw);
}

Here is the call graph for this function:


Variable Documentation

Initial value:
 {
    "fill_rule",
    "Tests cairo_set_full_rule with some star shapes",
    BIG_STAR_SIZE * 2 + 3, BIG_STAR_SIZE + LITTLE_STAR_SIZE + 3
}

Definition at line 69 of file fill_rule.c.