| 1 |
|
| 2 |
@c %start of fragment |
| 3 |
|
| 4 |
@node cairo_t |
| 5 |
@chapter cairo_t |
| 6 |
The cairo drawing context |
| 7 |
|
| 8 |
@section Overview |
| 9 |
@code{<cairo>} is the main object used when drawing with cairo. To |
| 10 |
draw with cairo, you create a @code{<cairo>}, set the target surface, |
| 11 |
and drawing options for the @code{<cairo>}, create shapes with |
| 12 |
functions like @code{cairo-move-to} and @code{cairo-line-to}, and then |
| 13 |
draw shapes with @code{cairo-stroke} or @code{cairo-fill}. |
| 14 |
|
| 15 |
@code{<cairo>}'s can be pushed to a stack via @code{cairo-save}. They |
| 16 |
may then safely be changed, without loosing the current state. Use |
| 17 |
@code{cairo-restore} to restore to the saved state. |
| 18 |
|
| 19 |
@section Usage |
| 20 |
@include defuns-cairo.xml.texi |
| 21 |
|
| 22 |
@c %end of fragment |