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-output-stream-private.h File Reference
#include "cairo-compiler-private.h"
#include "cairo-types-private.h"
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
Include dependency graph for cairo-output-stream-private.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _cairo_output_stream
 

Typedefs

typedef cairo_status_t(* cairo_output_stream_write_func_t) (cairo_output_stream_t *output_stream, const unsigned char *data, unsigned int length)
 
typedef cairo_status_t(* cairo_output_stream_flush_func_t) (cairo_output_stream_t *output_stream)
 
typedef cairo_status_t(* cairo_output_stream_close_func_t) (cairo_output_stream_t *output_stream)
 
typedef cairo_status_t(* cairo_close_func_t) (void *closure)
 

Functions

void _cairo_output_stream_init (cairo_output_stream_t *stream, cairo_output_stream_write_func_t write_func, cairo_output_stream_flush_func_t flush_func, cairo_output_stream_close_func_t close_func)
 
cairo_status_t _cairo_output_stream_fini (cairo_output_stream_t *stream)
 
cairo_output_stream_t_cairo_output_stream_create (cairo_write_func_t write_func, cairo_close_func_t close_func, void *closure)
 
cairo_output_stream_t_cairo_output_stream_create_in_error (cairo_status_t status)
 
cairo_status_t _cairo_output_stream_flush (cairo_output_stream_t *stream)
 
cairo_status_t _cairo_output_stream_close (cairo_output_stream_t *stream)
 
cairo_status_t _cairo_output_stream_destroy (cairo_output_stream_t *stream)
 
void _cairo_output_stream_write (cairo_output_stream_t *stream, const void *data, size_t length)
 
void _cairo_output_stream_write_hex_string (cairo_output_stream_t *stream, const unsigned char *data, size_t length)
 
void _cairo_output_stream_vprintf (cairo_output_stream_t *stream, const char *fmt, va_list ap)
 
void _cairo_output_stream_printf (cairo_output_stream_t *stream, const char *fmt,...)
 
void _cairo_output_stream_print_matrix (cairo_output_stream_t *stream, const cairo_matrix_t *matrix)
 
long _cairo_output_stream_get_position (cairo_output_stream_t *stream)
 
cairo_status_t _cairo_output_stream_get_status (cairo_output_stream_t *stream)
 
cairo_output_stream_t_cairo_output_stream_create_for_filename (const char *filename)
 
cairo_output_stream_t_cairo_output_stream_create_for_file (FILE *file)
 
cairo_output_stream_t_cairo_memory_stream_create (void)
 
void _cairo_memory_stream_copy (cairo_output_stream_t *base, cairo_output_stream_t *dest)
 
int _cairo_memory_stream_length (cairo_output_stream_t *stream)
 
cairo_status_t _cairo_memory_stream_destroy (cairo_output_stream_t *abstract_stream, unsigned char **data_out, unsigned long *length_out)
 
cairo_output_stream_t_cairo_null_stream_create (void)
 
cairo_output_stream_t_cairo_base85_stream_create (cairo_output_stream_t *output)
 
cairo_output_stream_t_cairo_base64_stream_create (cairo_output_stream_t *output)
 
cairo_output_stream_t_cairo_deflate_stream_create (cairo_output_stream_t *output)
 

Variables

const cairo_output_stream_t _cairo_output_stream_nil
 

Typedef Documentation

◆ cairo_close_func_t

typedef cairo_status_t(* cairo_close_func_t) (void *closure)

Definition at line 84 of file cairo-output-stream-private.h.

◆ cairo_output_stream_close_func_t

typedef cairo_status_t(* cairo_output_stream_close_func_t) (cairo_output_stream_t *output_stream)

Definition at line 54 of file cairo-output-stream-private.h.

◆ cairo_output_stream_flush_func_t

typedef cairo_status_t(* cairo_output_stream_flush_func_t) (cairo_output_stream_t *output_stream)

Definition at line 51 of file cairo-output-stream-private.h.

◆ cairo_output_stream_write_func_t

typedef cairo_status_t(* cairo_output_stream_write_func_t) (cairo_output_stream_t *output_stream, const unsigned char *data, unsigned int length)

Definition at line 46 of file cairo-output-stream-private.h.

Function Documentation

◆ _cairo_base64_stream_create()

cairo_output_stream_t* _cairo_base64_stream_create ( cairo_output_stream_t output)

Definition at line 121 of file cairo-base64-stream.c.

◆ _cairo_base85_stream_create()

cairo_output_stream_t* _cairo_base85_stream_create ( cairo_output_stream_t output)

Definition at line 110 of file cairo-base85-stream.c.

◆ _cairo_deflate_stream_create()

cairo_output_stream_t* _cairo_deflate_stream_create ( cairo_output_stream_t output)

Definition at line 120 of file cairo-deflate-stream.c.

◆ _cairo_memory_stream_copy()

◆ _cairo_memory_stream_create()

◆ _cairo_memory_stream_destroy()

◆ _cairo_memory_stream_length()

◆ _cairo_null_stream_create()

◆ _cairo_output_stream_close()

◆ _cairo_output_stream_create()

◆ _cairo_output_stream_create_for_file()

◆ _cairo_output_stream_create_for_filename()

◆ _cairo_output_stream_create_in_error()

◆ _cairo_output_stream_destroy()

cairo_status_t _cairo_output_stream_destroy ( cairo_output_stream_t stream)

Definition at line 239 of file cairo-output-stream.c.

References _cairo_output_stream_fini(), _cairo_output_stream_nil, _cairo_output_stream_nil_write_error, assert(), free, NULL, and status.

Referenced by _cairo_pdf_operators_emit_path(), _cairo_pdf_operators_flush_glyphs(), _cairo_pdf_surface_analyze_user_font_subset(), _cairo_pdf_surface_close_group(), _cairo_pdf_surface_close_stream(), _cairo_pdf_surface_create_for_stream_internal(), _cairo_pdf_surface_finish(), _cairo_pdf_surface_open_stream(), _cairo_ps_surface_create_for_stream_internal(), _cairo_ps_surface_emit_base85_string(), _cairo_ps_surface_finish(), _cairo_script_surface_show_text_glyphs(), _cairo_svg_document_create(), _cairo_svg_document_finish(), _cairo_svg_surface_create_for_document(), _cairo_svg_surface_create_for_stream_internal(), _cairo_svg_surface_finish(), _cairo_svg_surface_mask(), _cairo_svg_surface_paint(), _cairo_svg_surface_store_page(), _cairo_type1_font_subset_fini(), _cairo_type3_glyph_surface_analyze_glyph(), _cairo_type3_glyph_surface_emit_glyph(), _cairo_xml_emit_image(), _cairo_xml_emit_type42_font(), _device_destroy(), _emit_image_surface(), _emit_png_surface(), _emit_type42_font(), cairo_device_observer_print(), cairo_pdf_surface_create(), cairo_pdf_surface_create_for_stream(), cairo_ps_surface_create(), cairo_ps_surface_create_for_stream(), cairo_surface_observer_print(), cairo_svg_surface_create(), cairo_svg_surface_create_for_stream(), cairo_type1_font_destroy(), cairo_type1_font_generate(), cairo_type1_font_write_private_dict(), and read_png().

◆ _cairo_output_stream_fini()

cairo_status_t _cairo_output_stream_fini ( cairo_output_stream_t stream)

Definition at line 86 of file cairo-output-stream.c.

References _cairo_output_stream_close().

◆ _cairo_output_stream_flush()

◆ _cairo_output_stream_get_position()

◆ _cairo_output_stream_get_status()

cairo_status_t _cairo_output_stream_get_status ( cairo_output_stream_t stream)

Definition at line 580 of file cairo-output-stream.c.

Referenced by _base85_string_wrap_stream_close(), _base85_string_wrap_stream_write(), _cairo_base64_stream_write(), _cairo_base85_stream_close(), _cairo_base85_stream_write(), _cairo_deflate_stream_close(), _cairo_deflate_stream_write(), _cairo_pdf_emit_imagemask(), _cairo_pdf_operators_begin_actualtext(), _cairo_pdf_operators_begin_text(), _cairo_pdf_operators_clip(), _cairo_pdf_operators_emit_glyph_string(), _cairo_pdf_operators_emit_glyph_string_with_positioning(), _cairo_pdf_operators_emit_path(), _cairo_pdf_operators_emit_stroke(), _cairo_pdf_operators_emit_stroke_style(), _cairo_pdf_operators_end_actualtext(), _cairo_pdf_operators_end_text(), _cairo_pdf_operators_fill(), _cairo_pdf_operators_flush_glyphs(), _cairo_pdf_operators_set_text_matrix(), _cairo_pdf_operators_set_text_position(), _cairo_pdf_operators_show_text_glyphs(), _cairo_pdf_operators_tag_begin(), _cairo_pdf_operators_tag_end(), _cairo_pdf_path_close_path(), _cairo_pdf_path_curve_to(), _cairo_pdf_path_line_to(), _cairo_pdf_path_move_to(), _cairo_pdf_path_rectangle(), _cairo_pdf_surface_close_content_stream(), _cairo_pdf_surface_close_stream(), _cairo_pdf_surface_emit_combined_smask(), _cairo_pdf_surface_emit_gradient(), _cairo_pdf_surface_emit_mesh_pattern(), _cairo_pdf_surface_emit_repeating_function(), _cairo_pdf_surface_emit_stencil_mask(), _cairo_pdf_surface_emit_stitched_colorgradient(), _cairo_pdf_surface_emit_surface_pattern(), _cairo_pdf_surface_fill(), _cairo_pdf_surface_fill_stroke(), _cairo_pdf_surface_mask(), _cairo_pdf_surface_open_content_stream(), _cairo_pdf_surface_open_group(), _cairo_pdf_surface_open_stream(), _cairo_pdf_surface_paint(), _cairo_pdf_surface_select_pattern(), _cairo_pdf_surface_show_text_glyphs(), _cairo_pdf_surface_stroke(), _cairo_pdf_surface_write_mask_group(), _cairo_ps_emit_imagemask(), _cairo_ps_surface_create_for_stream_internal(), _cairo_ps_surface_emit_base85_string(), _cairo_ps_surface_set_bounding_box(), _cairo_svg_document_create(), _cairo_svg_surface_create_for_document(), _cairo_svg_surface_mask(), _cairo_svg_surface_paint(), _cairo_svg_surface_store_page(), _word_wrap_stream_close(), _word_wrap_stream_write(), base64_write_func(), cairo_pdf_interchange_write_annot(), cairo_pdf_interchange_write_node_object(), cairo_pdf_surface_create(), cairo_pdf_surface_create_for_stream(), cairo_pdf_surface_emit_transparency_group(), cairo_ps_surface_create(), cairo_ps_surface_create_for_stream(), cairo_script_create(), cairo_script_create_for_stream(), cairo_svg_surface_create(), cairo_svg_surface_create_for_stream(), cairo_type1_font_generate(), cairo_type1_font_write_private_dict(), cairo_xml_create(), and cairo_xml_create_for_stream().

◆ _cairo_output_stream_init()

◆ _cairo_output_stream_print_matrix()

◆ _cairo_output_stream_printf()

void _cairo_output_stream_printf ( cairo_output_stream_t stream,
const char *  fmt,
  ... 
)

Definition at line 522 of file cairo-output-stream.c.

References _cairo_output_stream_vprintf(), ap, fmt, va_end, and va_start.

Referenced by _base85_string_wrap_stream_close(), _base85_string_wrap_stream_write(), _cairo_gl_shader_emit_border_fade(), _cairo_gl_shader_emit_wrap(), _cairo_observation_print(), _cairo_pdf_emit_imagemask(), _cairo_pdf_interchange_write_document_dests(), _cairo_pdf_operators_begin_actualtext(), _cairo_pdf_operators_begin_text(), _cairo_pdf_operators_clip(), _cairo_pdf_operators_emit_glyph_index(), _cairo_pdf_operators_emit_glyph_string(), _cairo_pdf_operators_emit_glyph_string_with_positioning(), _cairo_pdf_operators_emit_stroke(), _cairo_pdf_operators_emit_stroke_style(), _cairo_pdf_operators_end_actualtext(), _cairo_pdf_operators_end_text(), _cairo_pdf_operators_fill(), _cairo_pdf_operators_set_font_subset(), _cairo_pdf_operators_set_text_matrix(), _cairo_pdf_operators_set_text_position(), _cairo_pdf_operators_tag_begin(), _cairo_pdf_operators_tag_end(), _cairo_pdf_path_close_path(), _cairo_pdf_path_curve_to(), _cairo_pdf_path_line_to(), _cairo_pdf_path_move_to(), _cairo_pdf_path_rectangle(), _cairo_pdf_surface_clipper_intersect_clip_path(), _cairo_pdf_surface_close_content_stream(), _cairo_pdf_surface_close_group(), _cairo_pdf_surface_close_stream(), _cairo_pdf_surface_emit_cff_font(), _cairo_pdf_surface_emit_combined_smask(), _cairo_pdf_surface_emit_group_resources(), _cairo_pdf_surface_emit_mesh_pattern(), _cairo_pdf_surface_emit_recording_surface(), _cairo_pdf_surface_emit_repeating_function(), _cairo_pdf_surface_emit_stencil_mask(), _cairo_pdf_surface_emit_stitched_colorgradient(), _cairo_pdf_surface_emit_surface_pattern(), _cairo_pdf_surface_emit_to_unicode_stream(), _cairo_pdf_surface_emit_truetype_font_subset(), _cairo_pdf_surface_emit_type1_font(), _cairo_pdf_surface_emit_type3_font_subset(), _cairo_pdf_surface_emit_unicode_for_glyph(), _cairo_pdf_surface_fill(), _cairo_pdf_surface_finish(), _cairo_pdf_surface_mask(), _cairo_pdf_surface_open_content_stream(), _cairo_pdf_surface_open_stream(), _cairo_pdf_surface_output_gradient(), _cairo_pdf_surface_paint(), _cairo_pdf_surface_paint_gradient(), _cairo_pdf_surface_paint_surface_pattern(), _cairo_pdf_surface_select_operator(), _cairo_pdf_surface_select_pattern(), _cairo_pdf_surface_show_text_glyphs(), _cairo_pdf_surface_start_page(), _cairo_pdf_surface_stroke(), _cairo_pdf_surface_unselect_pattern(), _cairo_pdf_surface_write_catalog(), _cairo_pdf_surface_write_mask_group(), _cairo_pdf_surface_write_memory_stream(), _cairo_pdf_surface_write_page(), _cairo_pdf_surface_write_pages(), _cairo_pdf_surface_write_smask_group(), _cairo_pdf_surface_write_xref(), _cairo_ps_emit_imagemask(), _cairo_ps_form_emit(), _cairo_ps_surface_clipper_intersect_clip_path(), _cairo_ps_surface_emit_ccitt_image(), _cairo_ps_surface_emit_eps(), _cairo_ps_surface_emit_font_subsets(), _cairo_ps_surface_emit_footer(), _cairo_ps_surface_emit_form(), _cairo_ps_surface_emit_gradient(), _cairo_ps_surface_emit_header(), _cairo_ps_surface_emit_image(), _cairo_ps_surface_emit_jpeg_image(), _cairo_ps_surface_emit_linear_colorgradient(), _cairo_ps_surface_emit_mesh_pattern(), _cairo_ps_surface_emit_pattern_stops(), _cairo_ps_surface_emit_recording_surface(), _cairo_ps_surface_emit_repeating_function(), _cairo_ps_surface_emit_solid_pattern(), _cairo_ps_surface_emit_stitched_colorgradient(), _cairo_ps_surface_emit_surface_pattern(), _cairo_ps_surface_emit_truetype_font_subset(), _cairo_ps_surface_emit_type1_font_fallback(), _cairo_ps_surface_emit_type1_font_subset(), _cairo_ps_surface_emit_type3_font_subset(), _cairo_ps_surface_fill(), _cairo_ps_surface_finish(), _cairo_ps_surface_mask(), _cairo_ps_surface_paint(), _cairo_ps_surface_paint_gradient(), _cairo_ps_surface_paint_surface(), _cairo_ps_surface_set_bounding_box(), _cairo_ps_surface_set_paginated_mode(), _cairo_ps_surface_show_page(), _cairo_ps_surface_show_text_glyphs(), _cairo_ps_surface_stroke(), _cairo_script_scaled_font_fini(), _cairo_script_surface_create_similar(), _cairo_script_surface_finish(), _cairo_script_surface_show_text_glyphs(), _cairo_surface_base64_encode(), _cairo_surface_base64_encode_jpeg(), _cairo_surface_base64_encode_png(), _cairo_svg_document_emit_bitmap_glyph_data(), _cairo_svg_document_emit_glyph(), _cairo_svg_document_emit_outline_glyph_data(), _cairo_svg_document_finish(), _cairo_svg_path_close_path(), _cairo_svg_path_curve_to(), _cairo_svg_path_line_to(), _cairo_svg_path_move_to(), _cairo_svg_surface_clipper_intersect_clip_path(), _cairo_svg_surface_create_for_document(), _cairo_svg_surface_emit_alpha_filter(), _cairo_svg_surface_emit_attr_value(), _cairo_svg_surface_emit_composite_recording_pattern(), _cairo_svg_surface_emit_composite_surface_pattern(), _cairo_svg_surface_emit_fill_style(), _cairo_svg_surface_emit_linear_pattern(), _cairo_svg_surface_emit_operator(), _cairo_svg_surface_emit_operator_for_style(), _cairo_svg_surface_emit_paint(), _cairo_svg_surface_emit_path(), _cairo_svg_surface_emit_pattern_extend(), _cairo_svg_surface_emit_pattern_stops(), _cairo_svg_surface_emit_radial_pattern(), _cairo_svg_surface_emit_recording_surface(), _cairo_svg_surface_emit_solid_pattern(), _cairo_svg_surface_emit_stroke_style(), _cairo_svg_surface_emit_surface(), _cairo_svg_surface_emit_surface_pattern(), _cairo_svg_surface_emit_transform(), _cairo_svg_surface_fill(), _cairo_svg_surface_fill_stroke(), _cairo_svg_surface_mask(), _cairo_svg_surface_paint(), _cairo_svg_surface_show_glyphs(), _cairo_svg_surface_store_page(), _cairo_svg_surface_stroke(), _cairo_type3_glyph_surface_clipper_intersect_clip_path(), _cairo_type3_glyph_surface_emit_glyph(), _cairo_type3_glyph_surface_emit_image(), _emit_antialias(), _emit_context(), _emit_dash(), _emit_fill_rule(), _emit_font_matrix(), _emit_font_options(), _emit_gradient_color_stops(), _emit_image_surface(), _emit_line_cap(), _emit_line_join(), _emit_line_width(), _emit_linear_pattern(), _emit_mesh_pattern(), _emit_miter_limit(), _emit_operator(), _emit_path(), _emit_path_boxes(), _emit_pattern(), _emit_png_surface(), _emit_radial_pattern(), _emit_recording_surface_pattern(), _emit_scaled_font(), _emit_scaled_font_init(), _emit_scaled_glyph_bitmap(), _emit_scaled_glyph_prologue(), _emit_scaled_glyph_vector(), _emit_scaling_matrix(), _emit_solid_pattern(), _emit_string_literal(), _emit_subsurface_pattern(), _emit_surface(), _emit_surface_pattern(), _emit_tolerance(), _emit_type42_font(), _get_target(), _path_close(), _path_curve_to(), _path_line_to(), _path_move_to(), _word_wrap_stream_count_hexstring_up_to(), _word_wrap_stream_count_string_up_to(), _word_wrap_stream_write(), attach_snapshot(), cairo_gl_shader_dcl_coverage(), cairo_gl_shader_def_coverage(), cairo_gl_shader_emit_color(), cairo_gl_shader_emit_variable(), cairo_gl_shader_emit_vertex(), cairo_gl_shader_get_fragment_source(), cairo_gl_shader_get_vertex_source(), cairo_pdf_interchange_write_annot(), cairo_pdf_interchange_write_dest(), cairo_pdf_interchange_write_docinfo(), cairo_pdf_interchange_write_explicit_dest(), cairo_pdf_interchange_write_link_action(), cairo_pdf_interchange_write_names_dict(), cairo_pdf_interchange_write_node_object(), cairo_pdf_interchange_write_outline(), cairo_pdf_interchange_write_page_labels(), cairo_pdf_interchange_write_page_parent_elems(), cairo_pdf_interchange_write_parent_tree(), cairo_pdf_interchange_write_struct_tree(), cairo_pdf_surface_emit_alpha_linear_function(), cairo_pdf_surface_emit_rgb_linear_function(), cairo_pdf_surface_emit_transparency_group(), cairo_type1_font_subset_write_header(), cairo_type1_font_subset_write_trailer(), cairo_type1_font_write_charstrings(), cairo_type1_font_write_header(), cairo_type1_font_write_private_dict(), cairo_type1_font_write_trailer(), detach_snapshot(), inactive(), print_antialias(), print_array(), print_clip(), print_extents(), print_fill_rule(), print_line_caps(), print_line_joins(), print_operators(), print_path(), print_pattern(), print_record(), write_rect_int_to_pdf_bbox(), and write_rect_to_pdf_quad_points().

◆ _cairo_output_stream_vprintf()

◆ _cairo_output_stream_write()

void _cairo_output_stream_write ( cairo_output_stream_t stream,
const void data,
size_t  length 
)

Definition at line 258 of file cairo-output-stream.c.

References data, and length.

Referenced by _base85_string_wrap_stream_write(), _cairo_base64_stream_write(), _cairo_base85_stream_close(), _cairo_base85_stream_write(), _cairo_pdf_emit_imagemask(), _cairo_pdf_surface_emit_ccitt_image(), _cairo_pdf_surface_emit_cff_font(), _cairo_pdf_surface_emit_image(), _cairo_pdf_surface_emit_jbig2_image(), _cairo_pdf_surface_emit_jpeg_image(), _cairo_pdf_surface_emit_jpx_image(), _cairo_pdf_surface_emit_mesh_pattern(), _cairo_pdf_surface_emit_smask(), _cairo_pdf_surface_emit_truetype_font_subset(), _cairo_pdf_surface_emit_type1_font(), _cairo_ps_surface_emit_base85_string(), _cairo_ps_surface_emit_body(), _cairo_ps_surface_emit_eps(), _cairo_ps_surface_emit_type1_font_fallback(), _cairo_ps_surface_emit_type1_font_subset(), _cairo_script_surface_show_text_glyphs(), _cairo_svg_surface_emit_attr_value(), _cairo_xml_emit_type42_font(), _cairo_xml_printf(), _cairo_xml_printf_end(), _cairo_xml_printf_start(), _emit_image_surface(), _emit_png_surface(), _emit_string_literal(), _emit_type42_font(), _word_wrap_stream_count_hexstring_up_to(), _word_wrap_stream_count_string_up_to(), _word_wrap_stream_count_word_up_to(), _word_wrap_stream_write(), _write_func(), _write_image_surface(), base64_write_func(), cairo_deflate_stream_deflate(), cairo_gl_shader_get_fragment_source(), cairo_gl_shader_get_vertex_source(), cairo_script_write_comment(), cairo_type1_font_subset_write_encrypted(), cairo_type1_font_subset_write_header(), cairo_type1_font_subset_write_private_dict(), cairo_type1_font_subset_write_trailer(), cairo_type1_font_write_charstrings(), cairo_type1_font_write_header(), cairo_type1_font_write_trailer(), cairo_type1_write_stream_encrypted(), and stream_read_func().

◆ _cairo_output_stream_write_hex_string()

void _cairo_output_stream_write_hex_string ( cairo_output_stream_t stream,
const unsigned char *  data,
size_t  length 
)

Variable Documentation

◆ _cairo_output_stream_nil