w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

cairo-xml-surface.c File Reference
Include dependency graph for cairo-xml-surface.c:

Go to the source code of this file.

Classes

struct  _cairo_xml
 
struct  _cairo_xml_surface
 

Macros

#define static   cairo_warn static
 

Typedefs

typedef struct _cairo_xml_surface cairo_xml_surface_t
 
typedef struct _cairo_xml cairo_xml_t
 

Functions

int _cairo_dummy_prototype (void)
 
static const char * _operator_to_string (cairo_operator_t op)
 
static const char * _extend_to_string (cairo_extend_t extend)
 
static const char * _filter_to_string (cairo_filter_t filter)
 
static const char * _fill_rule_to_string (cairo_fill_rule_t rule)
 
static const char * _antialias_to_string (cairo_antialias_t antialias)
 
static const char * _line_cap_to_string (cairo_line_cap_t line_cap)
 
static const char * _line_join_to_string (cairo_line_join_t line_join)
 
static const char * _content_to_string (cairo_content_t content)
 
static const char * _format_to_string (cairo_format_t format)
 
static cairo_status_t _device_flush (void *abstract_device)
 
static void _device_destroy (void *abstract_device)
 
static cairo_device_t_cairo_xml_create_internal (cairo_output_stream_t *stream)
 
static void _cairo_xml_indent (cairo_xml_t *xml, int indent)
 
static void _cairo_xml_printf (cairo_xml_t *xml, const char *fmt,...)
 
static void _cairo_xml_printf_start (cairo_xml_t *xml, const char *fmt,...)
 
static void _cairo_xml_printf_continue (cairo_xml_t *xml, const char *fmt,...)
 
static void _cairo_xml_printf_end (cairo_xml_t *xml, const char *fmt,...)
 
static cairo_surface_t_cairo_xml_surface_create_similar (void *abstract_surface, cairo_content_t content, int width, int height)
 
static cairo_bool_t _cairo_xml_surface_get_extents (void *abstract_surface, cairo_rectangle_int_t *rectangle)
 
static cairo_status_t _cairo_xml_move_to (void *closure, const cairo_point_t *p1)
 
static cairo_status_t _cairo_xml_line_to (void *closure, const cairo_point_t *p1)
 
static cairo_status_t _cairo_xml_curve_to (void *closure, const cairo_point_t *p1, const cairo_point_t *p2, const cairo_point_t *p3)
 
static cairo_status_t _cairo_xml_close_path (void *closure)
 
static void _cairo_xml_emit_path (cairo_xml_t *xml, const cairo_path_fixed_t *path)
 
static void _cairo_xml_emit_string (cairo_xml_t *xml, const char *node, const char *data)
 
static void _cairo_xml_emit_double (cairo_xml_t *xml, const char *node, double data)
 
static cairo_xml_tto_xml (cairo_xml_surface_t *surface)
 
static cairo_status_t _cairo_xml_surface_emit_clip_boxes (cairo_xml_surface_t *surface, const cairo_clip_t *clip)
 
static cairo_status_t _cairo_xml_surface_emit_clip_path (cairo_xml_surface_t *surface, const cairo_clip_path_t *clip_path)
 
static cairo_status_t _cairo_xml_surface_emit_clip (cairo_xml_surface_t *surface, const cairo_clip_t *clip)
 
static cairo_status_t _cairo_xml_emit_solid (cairo_xml_t *xml, const cairo_solid_pattern_t *solid)
 
static void _cairo_xml_emit_matrix (cairo_xml_t *xml, const cairo_matrix_t *matrix)
 
static void _cairo_xml_emit_gradient (cairo_xml_t *xml, const cairo_gradient_pattern_t *gradient)
 
static cairo_status_t _cairo_xml_emit_linear (cairo_xml_t *xml, const cairo_linear_pattern_t *linear)
 
static cairo_status_t _cairo_xml_emit_radial (cairo_xml_t *xml, const cairo_radial_pattern_t *radial)
 
static cairo_status_t _write_func (void *closure, const unsigned char *data, unsigned len)
 
static cairo_status_t _cairo_xml_emit_image (cairo_xml_t *xml, cairo_image_surface_t *image)
 
static cairo_status_t _cairo_xml_emit_surface (cairo_xml_t *xml, const cairo_surface_pattern_t *pattern)
 
static cairo_status_t _cairo_xml_emit_pattern (cairo_xml_t *xml, const char *source_or_mask, const cairo_pattern_t *pattern)
 
static cairo_int_status_t _cairo_xml_surface_paint (void *abstract_surface, cairo_operator_t op, const cairo_pattern_t *source, const cairo_clip_t *clip)
 
static cairo_int_status_t _cairo_xml_surface_mask (void *abstract_surface, cairo_operator_t op, const cairo_pattern_t *source, const cairo_pattern_t *mask, const cairo_clip_t *clip)
 
static cairo_int_status_t _cairo_xml_surface_stroke (void *abstract_surface, cairo_operator_t op, const cairo_pattern_t *source, const cairo_path_fixed_t *path, const cairo_stroke_style_t *style, const cairo_matrix_t *ctm, const cairo_matrix_t *ctm_inverse, double tolerance, cairo_antialias_t antialias, const cairo_clip_t *clip)
 
static cairo_int_status_t _cairo_xml_surface_fill (void *abstract_surface, cairo_operator_t op, const cairo_pattern_t *source, const cairo_path_fixed_t *path, cairo_fill_rule_t fill_rule, double tolerance, cairo_antialias_t antialias, const cairo_clip_t *clip)
 
static cairo_status_t _cairo_xml_emit_type42_font (cairo_xml_t *xml, cairo_scaled_font_t *scaled_font)
 
static cairo_status_t _cairo_xml_emit_type3_font (cairo_xml_t *xml, cairo_scaled_font_t *scaled_font, cairo_glyph_t *glyphs, int num_glyphs)
 
static cairo_status_t _cairo_xml_emit_scaled_font (cairo_xml_t *xml, cairo_scaled_font_t *scaled_font, cairo_glyph_t *glyphs, int num_glyphs)
 
static cairo_int_status_t _cairo_xml_surface_glyphs (void *abstract_surface, cairo_operator_t op, const cairo_pattern_t *source, cairo_glyph_t *glyphs, int num_glyphs, cairo_scaled_font_t *scaled_font, const cairo_clip_t *clip)
 
static cairo_surface_t_cairo_xml_surface_create_internal (cairo_device_t *device, cairo_content_t content, double width, double height)
 
cairo_device_tcairo_xml_create (const char *filename)
 
cairo_device_tcairo_xml_create_for_stream (cairo_write_func_t write_func, void *closure)
 
cairo_surface_tcairo_xml_surface_create (cairo_device_t *device, cairo_content_t content, double width, double height)
 
cairo_status_t cairo_xml_for_recording_surface (cairo_device_t *device, cairo_surface_t *recording_surface)
 

Variables

static const cairo_surface_backend_t _cairo_xml_surface_backend
 
static const cairo_device_backend_t _cairo_xml_device_backend
 

Macro Definition Documentation

◆ static

#define static   cairo_warn static

Definition at line 55 of file cairo-xml-surface.c.

Typedef Documentation

◆ cairo_xml_surface_t

Definition at line 1 of file cairo-xml-surface.c.

◆ cairo_xml_t

typedef struct _cairo_xml cairo_xml_t

Function Documentation

◆ _antialias_to_string()

◆ _cairo_dummy_prototype()

int _cairo_dummy_prototype ( void  )

◆ _cairo_xml_close_path()

static cairo_status_t _cairo_xml_close_path ( void closure)
static

Definition at line 415 of file cairo-xml-surface.c.

References _cairo_xml_printf_continue(), and CAIRO_STATUS_SUCCESS.

Referenced by _cairo_xml_emit_path().

◆ _cairo_xml_create_internal()

◆ _cairo_xml_curve_to()

static cairo_status_t _cairo_xml_curve_to ( void closure,
const cairo_point_t p1,
const cairo_point_t p2,
const cairo_point_t p3 
)
static

◆ _cairo_xml_emit_double()

static void _cairo_xml_emit_double ( cairo_xml_t xml,
const char *  node,
double  data 
)
static

◆ _cairo_xml_emit_gradient()

◆ _cairo_xml_emit_image()

◆ _cairo_xml_emit_linear()

static cairo_status_t _cairo_xml_emit_linear ( cairo_xml_t xml,
const cairo_linear_pattern_t linear 
)
static

◆ _cairo_xml_emit_matrix()

static void _cairo_xml_emit_matrix ( cairo_xml_t xml,
const cairo_matrix_t matrix 
)
static

◆ _cairo_xml_emit_path()

◆ _cairo_xml_emit_pattern()

◆ _cairo_xml_emit_radial()

◆ _cairo_xml_emit_scaled_font()

static cairo_status_t _cairo_xml_emit_scaled_font ( cairo_xml_t xml,
cairo_scaled_font_t scaled_font,
cairo_glyph_t glyphs,
int  num_glyphs 
)
static

◆ _cairo_xml_emit_solid()

◆ _cairo_xml_emit_string()

◆ _cairo_xml_emit_surface()

◆ _cairo_xml_emit_type3_font()

static cairo_status_t _cairo_xml_emit_type3_font ( cairo_xml_t xml,
cairo_scaled_font_t scaled_font,
cairo_glyph_t glyphs,
int  num_glyphs 
)
static

◆ _cairo_xml_emit_type42_font()

static cairo_status_t _cairo_xml_emit_type42_font ( cairo_xml_t xml,
cairo_scaled_font_t scaled_font 
)
static

Definition at line 973 of file cairo-xml-surface.c.

References CAIRO_INT_STATUS_UNSUPPORTED.

Referenced by _cairo_xml_emit_scaled_font().

◆ _cairo_xml_indent()

◆ _cairo_xml_line_to()

static cairo_status_t _cairo_xml_line_to ( void closure,
const cairo_point_t p1 
)
static

◆ _cairo_xml_move_to()

static cairo_status_t _cairo_xml_move_to ( void closure,
const cairo_point_t p1 
)
static

◆ _cairo_xml_printf()

◆ _cairo_xml_printf_continue()

◆ _cairo_xml_printf_end()

◆ _cairo_xml_printf_start()

◆ _cairo_xml_surface_create_internal()

◆ _cairo_xml_surface_create_similar()

static cairo_surface_t* _cairo_xml_surface_create_similar ( void abstract_surface,
cairo_content_t  content,
int  width,
int  height 
)
static

◆ _cairo_xml_surface_emit_clip()

◆ _cairo_xml_surface_emit_clip_boxes()

◆ _cairo_xml_surface_emit_clip_path()

◆ _cairo_xml_surface_fill()

◆ _cairo_xml_surface_get_extents()

static cairo_bool_t _cairo_xml_surface_get_extents ( void abstract_surface,
cairo_rectangle_int_t rectangle 
)
static

◆ _cairo_xml_surface_glyphs()

◆ _cairo_xml_surface_mask()

◆ _cairo_xml_surface_paint()

◆ _cairo_xml_surface_stroke()

◆ _content_to_string()

static const char* _content_to_string ( cairo_content_t  content)
static

◆ _device_destroy()

static void _device_destroy ( void abstract_device)
static

Definition at line 236 of file cairo-xml-surface.c.

References _cairo_output_stream_destroy(), free, status, and xml.

◆ _device_flush()

static cairo_status_t _device_flush ( void abstract_device)
static

Definition at line 225 of file cairo-xml-surface.c.

References _cairo_output_stream_flush(), status, and xml.

◆ _extend_to_string()

static const char* _extend_to_string ( cairo_extend_t  extend)
static

Definition at line 119 of file cairo-xml-surface.c.

References ARRAY_LENGTH, assert(), extend, and fc-lang::names.

Referenced by _cairo_xml_emit_pattern().

◆ _fill_rule_to_string()

static const char* _fill_rule_to_string ( cairo_fill_rule_t  rule)
static

◆ _filter_to_string()

static const char* _filter_to_string ( cairo_filter_t  filter)
static

Definition at line 132 of file cairo-xml-surface.c.

References ARRAY_LENGTH, assert(), filter, and fc-lang::names.

Referenced by _cairo_xml_emit_pattern().

◆ _format_to_string()

◆ _line_cap_to_string()

static const char* _line_cap_to_string ( cairo_line_cap_t  line_cap)
static

Definition at line 174 of file cairo-xml-surface.c.

References ARRAY_LENGTH, assert(), and fc-lang::names.

Referenced by _cairo_xml_surface_stroke().

◆ _line_join_to_string()

static const char* _line_join_to_string ( cairo_line_join_t  line_join)
static

Definition at line 186 of file cairo-xml-surface.c.

References ARRAY_LENGTH, assert(), and fc-lang::names.

Referenced by _cairo_xml_surface_stroke().

◆ _operator_to_string()

◆ _write_func()

static cairo_status_t _write_func ( void closure,
const unsigned char *  data,
unsigned  len 
)
static

Definition at line 654 of file cairo-xml-surface.c.

References _cairo_output_stream_write(), CAIRO_STATUS_SUCCESS, data, and len.

Referenced by _cairo_xml_emit_image().

◆ cairo_xml_create()

◆ cairo_xml_create_for_stream()

◆ cairo_xml_for_recording_surface()

◆ cairo_xml_surface_create()

◆ to_xml()

Variable Documentation

◆ _cairo_xml_device_backend

const cairo_device_backend_t _cairo_xml_device_backend
static
Initial value:
= {
NULL,
}
@ CAIRO_DEVICE_TYPE_XML
Definition: cairo.h:2169
static cairo_status_t _device_flush(void *abstract_device)
static void _device_destroy(void *abstract_device)
#define NULL
Definition: ftobjs.h:61

Definition at line 246 of file cairo-xml-surface.c.

Referenced by _cairo_xml_create_internal().

◆ _cairo_xml_surface_backend

static const cairo_surface_backend_t _cairo_xml_surface_backend
static

Definition at line 74 of file cairo-xml-surface.c.

Referenced by _cairo_xml_surface_create_internal().