@c %start of fragment @node cairo_t @chapter cairo_t The cairo drawing context @section Overview @code{} is the main object used when drawing with cairo. To draw with cairo, you create a @code{}, set the target surface, and drawing options for the @code{}, create shapes with functions like @code{cairo-move-to} and @code{cairo-line-to}, and then draw shapes with @code{cairo-stroke} or @code{cairo-fill}. @code{}'s can be pushed to a stack via @code{cairo-save}. They may then safely be changed, without loosing the current state. Use @code{cairo-restore} to restore to the saved state. @section Usage @include defuns-cairo.xml.texi @c %end of fragment