- CAIRO_VERSION_ENCODE
ulong CAIRO_VERSION_ENCODE(uint major, uint minor, uint micro)
- CAIRO_VERSION_STRINGIZE
string CAIRO_VERSION_STRINGIZE(uint major, uint minor, uint micro)
- cairo_append_path
void cairo_append_path(cairo_t* cr, cairo_path_t* path)
- cairo_arc
void cairo_arc(cairo_t* cr, double xc, double yc, double radius, double angle1, double angle2)
- cairo_arc_negative
void cairo_arc_negative(cairo_t* cr, double xc, double yc, double radius, double angle1, double angle2)
- cairo_clip
void cairo_clip(cairo_t* cr)
- cairo_clip_extents
void cairo_clip_extents(cairo_t* cr, double* x1, double* y1, double* x2, double* y2)
- cairo_clip_preserve
void cairo_clip_preserve(cairo_t* cr)
- cairo_close_path
void cairo_close_path(cairo_t* cr)
- cairo_copy_clip_rectangle_list
cairo_rectangle_list_t* cairo_copy_clip_rectangle_list(cairo_t* cr)
- cairo_copy_page
void cairo_copy_page(cairo_t* cr)
- cairo_copy_path
cairo_path_t* cairo_copy_path(cairo_t* cr)
- cairo_copy_path_flat
cairo_path_t* cairo_copy_path_flat(cairo_t* cr)
- cairo_create
cairo_t* cairo_create(cairo_surface_t* target)
Functions for manipulating state objects
- cairo_curve_to
void cairo_curve_to(cairo_t* cr, double x1, double y1, double x2, double y2, double x3, double y3)
- cairo_debug_reset_static_data
void cairo_debug_reset_static_data()
Functions to be used while debugging (not intended for use in production code)
- cairo_destroy
void cairo_destroy(cairo_t* cr)
Functions for manipulating state objects
- cairo_device_acquire
cairo_status_t cairo_device_acquire(cairo_device_t* device)
- cairo_device_destroy
void cairo_device_destroy(cairo_device_t* device)
- cairo_device_finish
void cairo_device_finish(cairo_device_t* device)
- cairo_device_flush
void cairo_device_flush(cairo_device_t* device)
- cairo_device_get_reference_count
uint cairo_device_get_reference_count(cairo_device_t* device)
- cairo_device_get_type
cairo_device_type_t cairo_device_get_type(cairo_device_t* device)
- cairo_device_get_user_data
void* cairo_device_get_user_data(cairo_device_t* device, cairo_user_data_key_t* key)
- cairo_device_reference
cairo_device_t* cairo_device_reference(cairo_device_t* device)
Backend device manipulation
- cairo_device_release
void cairo_device_release(cairo_device_t* device)
- cairo_device_set_user_data
cairo_status_t cairo_device_set_user_data(cairo_device_t* device, cairo_user_data_key_t* key, void* user_data, cairo_destroy_func_t destroy)
- cairo_device_status
cairo_status_t cairo_device_status(cairo_device_t* device)
- cairo_device_to_user
void cairo_device_to_user(cairo_t* cr, double* x, double* y)
- cairo_device_to_user_distance
void cairo_device_to_user_distance(cairo_t* cr, double* dx, double* dy)
- cairo_fill
void cairo_fill(cairo_t* cr)
- cairo_fill_extents
void cairo_fill_extents(cairo_t* cr, double* x1, double* y1, double* x2, double* y2)
- cairo_fill_preserve
void cairo_fill_preserve(cairo_t* cr)
- cairo_font_extents
void cairo_font_extents(cairo_t* cr, cairo_font_extents_t* extents)
- cairo_font_face_destroy
void cairo_font_face_destroy(cairo_font_face_t* font_face)
- cairo_font_face_get_reference_count
uint cairo_font_face_get_reference_count(cairo_font_face_t* font_face)
- cairo_font_face_get_type
cairo_font_type_t cairo_font_face_get_type(cairo_font_face_t* font_face)
- cairo_font_face_get_user_data
void* cairo_font_face_get_user_data(cairo_font_face_t* font_face, cairo_user_data_key_t* key)
- cairo_font_face_reference
cairo_font_face_t* cairo_font_face_reference(cairo_font_face_t* font_face)
- cairo_font_face_set_user_data
cairo_status_t cairo_font_face_set_user_data(cairo_font_face_t* font_face, cairo_user_data_key_t* key, void* user_data, cairo_destroy_func_t destroy)
- cairo_font_face_status
cairo_status_t cairo_font_face_status(cairo_font_face_t* font_face)
- cairo_font_options_copy
cairo_font_options_t* cairo_font_options_copy(cairo_font_options_t* original)
- cairo_font_options_create
cairo_font_options_t* cairo_font_options_create()
- cairo_font_options_destroy
void cairo_font_options_destroy(cairo_font_options_t* options)
- cairo_font_options_equal
cairo_bool_t cairo_font_options_equal(cairo_font_options_t* options, cairo_font_options_t* other)
- cairo_font_options_get_antialias
cairo_antialias_t cairo_font_options_get_antialias(cairo_font_options_t* options)
- cairo_font_options_get_hint_metrics
cairo_hint_metrics_t cairo_font_options_get_hint_metrics(cairo_font_options_t* options)
- cairo_font_options_get_hint_style
cairo_hint_style_t cairo_font_options_get_hint_style(cairo_font_options_t* options)
- cairo_font_options_get_subpixel_order
cairo_subpixel_order_t cairo_font_options_get_subpixel_order(cairo_font_options_t* options)
- cairo_font_options_hash
ulong cairo_font_options_hash(cairo_font_options_t* options)
- cairo_font_options_merge
void cairo_font_options_merge(cairo_font_options_t* options, cairo_font_options_t* other)
- cairo_font_options_set_antialias
void cairo_font_options_set_antialias(cairo_font_options_t* options, cairo_antialias_t antialias)
- cairo_font_options_set_hint_metrics
void cairo_font_options_set_hint_metrics(cairo_font_options_t* options, cairo_hint_metrics_t hint_metrics)
- cairo_font_options_set_hint_style
void cairo_font_options_set_hint_style(cairo_font_options_t* options, cairo_hint_style_t hint_style)
- cairo_font_options_set_subpixel_order
void cairo_font_options_set_subpixel_order(cairo_font_options_t* options, cairo_subpixel_order_t subpixel_order)
- cairo_font_options_status
cairo_status_t cairo_font_options_status(cairo_font_options_t* options)
- cairo_format_stride_for_width
int cairo_format_stride_for_width(cairo_format_t format, int width)
- cairo_get_antialias
cairo_antialias_t cairo_get_antialias(cairo_t* cr)
- cairo_get_current_point
void cairo_get_current_point(cairo_t* cr, double* x, double* y)
- cairo_get_dash
void cairo_get_dash(cairo_t* cr, double* dashes, double* offset)
- cairo_get_dash_count
int cairo_get_dash_count(cairo_t* cr)
- cairo_get_fill_rule
cairo_fill_rule_t cairo_get_fill_rule(cairo_t* cr)
- cairo_get_font_face
cairo_font_face_t* cairo_get_font_face(cairo_t* cr)
- cairo_get_font_matrix
void cairo_get_font_matrix(cairo_t* cr, cairo_matrix_t* matrix)
- cairo_get_font_options
void cairo_get_font_options(cairo_t* cr, cairo_font_options_t* options)
- cairo_get_group_target
cairo_surface_t* cairo_get_group_target(cairo_t* cr)
- cairo_get_line_cap
cairo_line_cap_t cairo_get_line_cap(cairo_t* cr)
- cairo_get_line_join
cairo_line_join_t cairo_get_line_join(cairo_t* cr)
- cairo_get_line_width
double cairo_get_line_width(cairo_t* cr)
- cairo_get_matrix
void cairo_get_matrix(cairo_t* cr, cairo_matrix_t* matrix)
- cairo_get_miter_limit
double cairo_get_miter_limit(cairo_t* cr)
- cairo_get_operator
cairo_operator_t cairo_get_operator(cairo_t* cr)
- cairo_get_reference_count
uint cairo_get_reference_count(cairo_t* cr)
Functions for manipulating state objects
- cairo_get_scaled_font
cairo_scaled_font_t* cairo_get_scaled_font(cairo_t* cr)
- cairo_get_source
cairo_pattern_t* cairo_get_source(cairo_t* cr)
- cairo_get_target
cairo_surface_t* cairo_get_target(cairo_t* cr)
- cairo_get_tolerance
double cairo_get_tolerance(cairo_t* cr)
- cairo_get_user_data
void* cairo_get_user_data(cairo_t* cr, cairo_user_data_key_t* key)
Functions for manipulating state objects
- cairo_glyph_allocate
cairo_glyph_t* cairo_glyph_allocate(int num_glyphs)
- cairo_glyph_extents
void cairo_glyph_extents(cairo_t* cr, cairo_glyph_t* glyphs, int num_glyphs, cairo_text_extents_t* extents)
- cairo_glyph_free
void cairo_glyph_free(cairo_glyph_t* glyphs)
- cairo_glyph_path
void cairo_glyph_path(cairo_t* cr, cairo_glyph_t* glyphs, int num_glyphs)
- cairo_has_current_point
cairo_bool_t cairo_has_current_point(cairo_t* cr)
- cairo_identity_matrix
void cairo_identity_matrix(cairo_t* cr)
- cairo_image_surface_create
cairo_surface_t* cairo_image_surface_create(cairo_format_t format, int width, int height)
- cairo_image_surface_create_for_data
cairo_surface_t* cairo_image_surface_create_for_data(ubyte* data, cairo_format_t format, int width, int height, int stride)
- cairo_image_surface_create_from_png
cairo_surface_t* cairo_image_surface_create_from_png(char* filename)
- cairo_image_surface_create_from_png_stream
cairo_surface_t* cairo_image_surface_create_from_png_stream(cairo_read_func_t read_func, void* closure)
requires -version=CAIRO_HAS_PNG_FUNCTIONS
- cairo_image_surface_get_data
ubyte* cairo_image_surface_get_data(cairo_surface_t* surface)
- cairo_image_surface_get_format
cairo_format_t cairo_image_surface_get_format(cairo_surface_t* surface)
- cairo_image_surface_get_height
int cairo_image_surface_get_height(cairo_surface_t* surface)
- cairo_image_surface_get_stride
int cairo_image_surface_get_stride(cairo_surface_t* surface)
- cairo_image_surface_get_width
int cairo_image_surface_get_width(cairo_surface_t* surface)
- cairo_in_clip
cairo_bool_t cairo_in_clip(cairo_t* cr, double x, double y)
- cairo_in_fill
cairo_bool_t cairo_in_fill(cairo_t* cr, double x, double y)
- cairo_in_stroke
cairo_bool_t cairo_in_stroke(cairo_t* cr, double x, double y)
- cairo_line_to
void cairo_line_to(cairo_t* cr, double x, double y)
- cairo_mask
void cairo_mask(cairo_t* cr, cairo_pattern_t* pattern)
- cairo_mask_surface
void cairo_mask_surface(cairo_t* cr, cairo_surface_t* surface, double surface_x, double surface_y)
- cairo_matrix_init
void cairo_matrix_init(cairo_matrix_t* matrix, double xx, double yx, double xy, double yy, double x0, double y0)
- cairo_matrix_init_identity
void cairo_matrix_init_identity(cairo_matrix_t* matrix)
- cairo_matrix_init_rotate
void cairo_matrix_init_rotate(cairo_matrix_t* matrix, double radians)
- cairo_matrix_init_scale
void cairo_matrix_init_scale(cairo_matrix_t* matrix, double sx, double sy)
- cairo_matrix_init_translate
void cairo_matrix_init_translate(cairo_matrix_t* matrix, double tx, double ty)
- cairo_matrix_invert
cairo_status_t cairo_matrix_invert(cairo_matrix_t* matrix)
- cairo_matrix_multiply
void cairo_matrix_multiply(cairo_matrix_t* result, cairo_matrix_t* a, cairo_matrix_t* b)
- cairo_matrix_rotate
void cairo_matrix_rotate(cairo_matrix_t* matrix, double radians)
- cairo_matrix_scale
void cairo_matrix_scale(cairo_matrix_t* matrix, double sx, double sy)
- cairo_matrix_transform_distance
void cairo_matrix_transform_distance(cairo_matrix_t* matrix, double* dx, double* dy)
- cairo_matrix_transform_point
void cairo_matrix_transform_point(cairo_matrix_t* matrix, double* x, double* y)
- cairo_matrix_translate
void cairo_matrix_translate(cairo_matrix_t* matrix, double tx, double ty)
- cairo_move_to
void cairo_move_to(cairo_t* cr, double x, double y)
- cairo_new_path
void cairo_new_path(cairo_t* cr)
- cairo_new_sub_path
void cairo_new_sub_path(cairo_t* cr)
- cairo_paint
void cairo_paint(cairo_t* cr)
- cairo_paint_with_alpha
void cairo_paint_with_alpha(cairo_t* cr, double alpha)
- cairo_path_destroy
void cairo_path_destroy(cairo_path_t* path)
- cairo_path_extents
void cairo_path_extents(cairo_t* cr, double* x1, double* y1, double* x2, double* y2)
- cairo_pattern_add_color_stop_rgb
void cairo_pattern_add_color_stop_rgb(cairo_pattern_t* pattern, double offset, double red, double green, double blue)
- cairo_pattern_add_color_stop_rgba
void cairo_pattern_add_color_stop_rgba(cairo_pattern_t* pattern, double offset, double red, double green, double blue, double alpha)
- cairo_pattern_create_for_surface
cairo_pattern_t* cairo_pattern_create_for_surface(cairo_surface_t* surface)
- cairo_pattern_create_linear
cairo_pattern_t* cairo_pattern_create_linear(double x0, double y0, double x1, double y1)
- cairo_pattern_create_radial
cairo_pattern_t* cairo_pattern_create_radial(double cx0, double cy0, double radius0, double cx1, double cy1, double radius1)
Pattern creation functions
- cairo_pattern_create_rgb
cairo_pattern_t* cairo_pattern_create_rgb(double red, double green, double blue)
- cairo_pattern_create_rgba
cairo_pattern_t* cairo_pattern_create_rgba(double red, double green, double blue, double alpha)
- cairo_pattern_destroy
void cairo_pattern_destroy(cairo_pattern_t* pattern)
Pattern creation functions
- cairo_pattern_get_color_stop_count
cairo_status_t cairo_pattern_get_color_stop_count(cairo_pattern_t* pattern, int* count)
- cairo_pattern_get_color_stop_rgba
cairo_status_t cairo_pattern_get_color_stop_rgba(cairo_pattern_t* pattern, int index, double* offset, double* red, double* green, double* blue, double* alpha)
- cairo_pattern_get_extend
cairo_extend_t cairo_pattern_get_extend(cairo_pattern_t* pattern)
- cairo_pattern_get_filter
cairo_filter_t cairo_pattern_get_filter(cairo_pattern_t* pattern)
- cairo_pattern_get_linear_points
cairo_status_t cairo_pattern_get_linear_points(cairo_pattern_t* pattern, double* x0, double* y0, double* x1, double* y1)
- cairo_pattern_get_matrix
void cairo_pattern_get_matrix(cairo_pattern_t* pattern, cairo_matrix_t* matrix)
- cairo_pattern_get_radial_circles
cairo_status_t cairo_pattern_get_radial_circles(cairo_pattern_t* pattern, double* x0, double* y0, double* r0, double* x1, double* y1, double* r1)
- cairo_pattern_get_reference_count
uint cairo_pattern_get_reference_count(cairo_pattern_t* pattern)
Pattern creation functions
- cairo_pattern_get_rgba
cairo_status_t cairo_pattern_get_rgba(cairo_pattern_t* pattern, double* red, double* green, double* blue, double* alpha)
- cairo_pattern_get_surface
cairo_status_t cairo_pattern_get_surface(cairo_pattern_t* pattern, cairo_surface_t** surface)
- cairo_pattern_get_type
cairo_pattern_type_t cairo_pattern_get_type(cairo_pattern_t* pattern)
- cairo_pattern_get_user_data
void* cairo_pattern_get_user_data(cairo_pattern_t* pattern, cairo_user_data_key_t* key)
- cairo_pattern_reference
cairo_pattern_t* cairo_pattern_reference(cairo_pattern_t* pattern)
Pattern creation functions
- cairo_pattern_set_extend
void cairo_pattern_set_extend(cairo_pattern_t* pattern, cairo_extend_t extend)
- cairo_pattern_set_filter
void cairo_pattern_set_filter(cairo_pattern_t* pattern, cairo_filter_t filter)
- cairo_pattern_set_matrix
void cairo_pattern_set_matrix(cairo_pattern_t* pattern, cairo_matrix_t* matrix)
- cairo_pattern_set_user_data
cairo_status_t cairo_pattern_set_user_data(cairo_pattern_t* pattern, cairo_user_data_key_t* key, void* user_data, cairo_destroy_func_t destroy)
- cairo_pattern_status
cairo_status_t cairo_pattern_status(cairo_pattern_t* pattern)
Pattern creation functions
- cairo_pop_group
cairo_pattern_t* cairo_pop_group(cairo_t* cr)
- cairo_pop_group_to_source
void cairo_pop_group_to_source(cairo_t* cr)
- cairo_push_group
void cairo_push_group(cairo_t* cr)
- cairo_push_group_with_content
void cairo_push_group_with_content(cairo_t* cr, cairo_content_t content)
Functions for manipulating state objects
- cairo_recording_surface_create
cairo_surface_t* cairo_recording_surface_create(cairo_content_t content, cairo_rectangle_t* extents)
- cairo_recording_surface_ink_extents
void cairo_recording_surface_ink_extents(cairo_surface_t* surface, double* x0, double* y0, double* width, double* height)
Recording-surface functions
- cairo_rectangle
void cairo_rectangle(cairo_t* cr, double x, double y, double width, double height)
- cairo_rectangle_list_destroy
void cairo_rectangle_list_destroy(cairo_rectangle_list_t* rectangle_list)
- cairo_reference
cairo_t* cairo_reference(cairo_t* cr)
Functions for manipulating state objects
- cairo_region_contains_point
cairo_bool_t cairo_region_contains_point(cairo_region_t* region, int x, int y)
- cairo_region_contains_rectangle
cairo_region_overlap_t cairo_region_contains_rectangle(cairo_region_t* region, cairo_rectangle_int_t* rectangle)
- cairo_region_copy
cairo_region_t* cairo_region_copy(cairo_region_t* original)
- cairo_region_create
cairo_region_t* cairo_region_create()
- cairo_region_create_rectangle
cairo_region_t* cairo_region_create_rectangle(cairo_rectangle_int_t* rectangle)
- cairo_region_create_rectangles
cairo_region_t* cairo_region_create_rectangles(cairo_rectangle_int_t* rects, int count)
- cairo_region_destroy
void cairo_region_destroy(cairo_region_t* region)
- cairo_region_equal
cairo_bool_t cairo_region_equal(cairo_region_t* a, cairo_region_t* b)
- cairo_region_get_extents
void cairo_region_get_extents(cairo_region_t* region, cairo_rectangle_int_t* extents)
- cairo_region_get_rectangle
void cairo_region_get_rectangle(cairo_region_t* region, int nth, cairo_rectangle_int_t* rectangle)
- cairo_region_intersect
cairo_status_t cairo_region_intersect(cairo_region_t* dst, cairo_region_t* other)
- cairo_region_intersect_rectangle
cairo_status_t cairo_region_intersect_rectangle(cairo_region_t* dst, cairo_rectangle_int_t* rectangle)
- cairo_region_is_empty
cairo_bool_t cairo_region_is_empty(cairo_region_t* region)
- cairo_region_num_rectangles
int cairo_region_num_rectangles(cairo_region_t* region)
- cairo_region_reference
cairo_region_t* cairo_region_reference(cairo_region_t* region)
- cairo_region_status
cairo_status_t cairo_region_status(cairo_region_t* region)
- cairo_region_subtract
cairo_status_t cairo_region_subtract(cairo_region_t* dst, cairo_region_t* other)
- cairo_region_subtract_rectangle
cairo_status_t cairo_region_subtract_rectangle(cairo_region_t* dst, cairo_rectangle_int_t* rectangle)
- cairo_region_translate
void cairo_region_translate(cairo_region_t* region, int dx, int dy)
- cairo_region_union
cairo_status_t cairo_region_union(cairo_region_t* dst, cairo_region_t* other)
- cairo_region_union_rectangle
cairo_status_t cairo_region_union_rectangle(cairo_region_t* dst, cairo_rectangle_int_t* rectangle)
- cairo_region_xor
cairo_status_t cairo_region_xor(cairo_region_t* dst, cairo_region_t* other)
- cairo_region_xor_rectangle
cairo_status_t cairo_region_xor_rectangle(cairo_region_t* dst, cairo_rectangle_int_t* rectangle)
- cairo_rel_curve_to
void cairo_rel_curve_to(cairo_t* cr, double dx1, double dy1, double dx2, double dy2, double dx3, double dy3)
- cairo_rel_line_to
void cairo_rel_line_to(cairo_t* cr, double dx, double dy)
- cairo_rel_move_to
void cairo_rel_move_to(cairo_t* cr, double dx, double dy)
- cairo_reset_clip
void cairo_reset_clip(cairo_t* cr)
- cairo_restore
void cairo_restore(cairo_t* cr)
Functions for manipulating state objects
- cairo_rotate
void cairo_rotate(cairo_t* cr, double angle)
- cairo_save
void cairo_save(cairo_t* cr)
Functions for manipulating state objects
- cairo_scale
void cairo_scale(cairo_t* cr, double sx, double sy)
- cairo_scaled_font_create
cairo_scaled_font_t* cairo_scaled_font_create(cairo_font_face_t* font_face, cairo_matrix_t* font_matrix, cairo_matrix_t* ctm, cairo_font_options_t* options)
- cairo_scaled_font_destroy
void cairo_scaled_font_destroy(cairo_scaled_font_t* scaled_font)
- cairo_scaled_font_extents
void cairo_scaled_font_extents(cairo_scaled_font_t* scaled_font, cairo_font_extents_t* extents)
- cairo_scaled_font_get_ctm
void cairo_scaled_font_get_ctm(cairo_scaled_font_t* scaled_font, cairo_matrix_t* ctm)
- cairo_scaled_font_get_font_face
cairo_font_face_t* cairo_scaled_font_get_font_face(cairo_scaled_font_t* scaled_font)
- cairo_scaled_font_get_font_matrix
void cairo_scaled_font_get_font_matrix(cairo_scaled_font_t* scaled_font, cairo_matrix_t* font_matrix)
- cairo_scaled_font_get_font_options
void cairo_scaled_font_get_font_options(cairo_scaled_font_t* scaled_font, cairo_font_options_t* options)
- cairo_scaled_font_get_reference_count
uint cairo_scaled_font_get_reference_count(cairo_scaled_font_t* scaled_font)
- cairo_scaled_font_get_scale_matrix
void cairo_scaled_font_get_scale_matrix(cairo_scaled_font_t* scaled_font, cairo_matrix_t* scale_matrix)
- cairo_scaled_font_get_type
cairo_font_type_t cairo_scaled_font_get_type(cairo_scaled_font_t* scaled_font)
- cairo_scaled_font_get_user_data
void* cairo_scaled_font_get_user_data(cairo_scaled_font_t* scaled_font, cairo_user_data_key_t* key)
- cairo_scaled_font_glyph_extents
void cairo_scaled_font_glyph_extents(cairo_scaled_font_t* scaled_font, cairo_glyph_t* glyphs, int num_glyphs, cairo_text_extents_t* extents)
- cairo_scaled_font_reference
cairo_scaled_font_t* cairo_scaled_font_reference(cairo_scaled_font_t* scaled_font)
- cairo_scaled_font_set_user_data
cairo_status_t cairo_scaled_font_set_user_data(cairo_scaled_font_t* scaled_font, cairo_user_data_key_t* key, void* user_data, cairo_destroy_func_t destroy)
- cairo_scaled_font_status
cairo_status_t cairo_scaled_font_status(cairo_scaled_font_t* scaled_font)
- cairo_scaled_font_text_extents
void cairo_scaled_font_text_extents(cairo_scaled_font_t* scaled_font, char* utf8, cairo_text_extents_t* extents)
- cairo_scaled_font_text_to_glyphs
cairo_status_t cairo_scaled_font_text_to_glyphs(cairo_scaled_font_t* scaled_font, double x, double y, char* utf8, int utf8_len, cairo_glyph_t** glyphs, int* num_glyphs, cairo_text_cluster_t** clusters, int* num_clusters, cairo_text_cluster_flags_t* cluster_flags)
Portable interface to general font features.
- cairo_select_font_face
void cairo_select_font_face(cairo_t* cr, char* family, cairo_font_slant_t slant, cairo_font_weight_t weight)
- cairo_set_antialias
void cairo_set_antialias(cairo_t* cr, cairo_antialias_t antialias)
- cairo_set_dash
void cairo_set_dash(cairo_t* cr, double* dashes, int num_dashes, double offset)
- cairo_set_fill_rule
void cairo_set_fill_rule(cairo_t* cr, cairo_fill_rule_t fill_rule)
- cairo_set_font_face
void cairo_set_font_face(cairo_t* cr, cairo_font_face_t* font_face)
- cairo_set_font_matrix
void cairo_set_font_matrix(cairo_t* cr, cairo_matrix_t* matrix)
- cairo_set_font_options
void cairo_set_font_options(cairo_t* cr, cairo_font_options_t* options)
- cairo_set_font_size
void cairo_set_font_size(cairo_t* cr, double size)
- cairo_set_line_cap
void cairo_set_line_cap(cairo_t* cr, cairo_line_cap_t line_cap)
- cairo_set_line_join
void cairo_set_line_join(cairo_t* cr, cairo_line_join_t line_join)
- cairo_set_line_width
void cairo_set_line_width(cairo_t* cr, double width)
- cairo_set_matrix
void cairo_set_matrix(cairo_t* cr, cairo_matrix_t* matrix)
- cairo_set_miter_limit
void cairo_set_miter_limit(cairo_t* cr, double limit)
- cairo_set_operator
void cairo_set_operator(cairo_t* cr, cairo_operator_t op)
- cairo_set_scaled_font
void cairo_set_scaled_font(cairo_t* cr, cairo_scaled_font_t* scaled_font)
- cairo_set_source
void cairo_set_source(cairo_t* cr, cairo_pattern_t* source)
- cairo_set_source_rgb
void cairo_set_source_rgb(cairo_t* cr, double red, double green, double blue)
- cairo_set_source_rgba
void cairo_set_source_rgba(cairo_t* cr, double red, double green, double blue, double alpha)
- cairo_set_source_surface
void cairo_set_source_surface(cairo_t* cr, cairo_surface_t* surface, double x, double y)
- cairo_set_tolerance
void cairo_set_tolerance(cairo_t* cr, double tolerance)
- cairo_set_user_data
cairo_status_t cairo_set_user_data(cairo_t* cr, cairo_user_data_key_t* key, void* user_data, cairo_destroy_func_t destroy)
Functions for manipulating state objects
- cairo_show_glyphs
void cairo_show_glyphs(cairo_t* cr, cairo_glyph_t* glyphs, int num_glyphs)
- cairo_show_page
void cairo_show_page(cairo_t* cr)
- cairo_show_text
void cairo_show_text(cairo_t* cr, char* utf8)
- cairo_show_text_glyphs
void cairo_show_text_glyphs(cairo_t* cr, char* utf8, int utf8_len, cairo_glyph_t* glyphs, int num_glyphs, cairo_text_cluster_t* clusters, int num_clusters, cairo_text_cluster_flags_t cluster_flags)
- cairo_status
cairo_status_t cairo_status(cairo_t* cr)
- cairo_status_to_string
immutable(char)* cairo_status_to_string(cairo_status_t status)
- cairo_stroke
void cairo_stroke(cairo_t* cr)
- cairo_stroke_extents
void cairo_stroke_extents(cairo_t* cr, double* x1, double* y1, double* x2, double* y2)
- cairo_stroke_preserve
void cairo_stroke_preserve(cairo_t* cr)
- cairo_surface_copy_page
void cairo_surface_copy_page(cairo_surface_t* surface)
- cairo_surface_create_for_rectangle
cairo_surface_t* cairo_surface_create_for_rectangle(cairo_surface_t* target, double x, double y, double width, double height)
- cairo_surface_create_similar
cairo_surface_t* cairo_surface_create_similar(cairo_surface_t* other, cairo_content_t content, int width, int height)
- cairo_surface_destroy
void cairo_surface_destroy(cairo_surface_t* surface)
- cairo_surface_finish
void cairo_surface_finish(cairo_surface_t* surface)
- cairo_surface_flush
void cairo_surface_flush(cairo_surface_t* surface)
- cairo_surface_get_content
cairo_content_t cairo_surface_get_content(cairo_surface_t* surface)
- cairo_surface_get_device
cairo_device_t* cairo_surface_get_device(cairo_surface_t* surface)
- cairo_surface_get_device_offset
void cairo_surface_get_device_offset(cairo_surface_t* surface, double* x_offset, double* y_offset)
- cairo_surface_get_fallback_resolution
void cairo_surface_get_fallback_resolution(cairo_surface_t* surface, double* x_pixels_per_inch, double* y_pixels_per_inch)
- cairo_surface_get_font_options
void cairo_surface_get_font_options(cairo_surface_t* surface, cairo_font_options_t* options)
- cairo_surface_get_mime_data
void cairo_surface_get_mime_data(cairo_surface_t* surface, char* mime_type, ubyte** data, ulong* length)
- cairo_surface_get_reference_count
uint cairo_surface_get_reference_count(cairo_surface_t* surface)
- cairo_surface_get_type
cairo_surface_type_t cairo_surface_get_type(cairo_surface_t* surface)
- cairo_surface_get_user_data
void* cairo_surface_get_user_data(cairo_surface_t* surface, cairo_user_data_key_t* key)
- cairo_surface_has_show_text_glyphs
cairo_bool_t cairo_surface_has_show_text_glyphs(cairo_surface_t* surface)
- cairo_surface_mark_dirty
void cairo_surface_mark_dirty(cairo_surface_t* surface)
- cairo_surface_mark_dirty_rectangle
void cairo_surface_mark_dirty_rectangle(cairo_surface_t* surface, int x, int y, int width, int height)
- cairo_surface_reference
cairo_surface_t* cairo_surface_reference(cairo_surface_t* surface)
- cairo_surface_set_device_offset
void cairo_surface_set_device_offset(cairo_surface_t* surface, double x_offset, double y_offset)
- cairo_surface_set_fallback_resolution
void cairo_surface_set_fallback_resolution(cairo_surface_t* surface, double x_pixels_per_inch, double y_pixels_per_inch)
- cairo_surface_set_mime_data
cairo_status_t cairo_surface_set_mime_data(cairo_surface_t* surface, char* mime_type, ubyte* data, ulong length, cairo_destroy_func_t destroy, void* closure)
- cairo_surface_set_user_data
cairo_status_t cairo_surface_set_user_data(cairo_surface_t* surface, cairo_user_data_key_t* key, void* user_data, cairo_destroy_func_t destroy)
- cairo_surface_show_page
void cairo_surface_show_page(cairo_surface_t* surface)
- cairo_surface_status
cairo_status_t cairo_surface_status(cairo_surface_t* surface)
- cairo_surface_write_to_png
cairo_status_t cairo_surface_write_to_png(cairo_surface_t* surface, char* filename)
- cairo_surface_write_to_png_stream
cairo_status_t cairo_surface_write_to_png_stream(cairo_surface_t* surface, cairo_write_func_t write_func, void* closure)
requires -version=CAIRO_HAS_PNG_FUNCTIONS
- cairo_text_cluster_allocate
cairo_text_cluster_t* cairo_text_cluster_allocate(int num_clusters)
- cairo_text_cluster_free
void cairo_text_cluster_free(cairo_text_cluster_t* clusters)
- cairo_text_extents
void cairo_text_extents(cairo_t* cr, char* utf8, cairo_text_extents_t* extents)
- cairo_text_path
void cairo_text_path(cairo_t* cr, char* utf8)
- cairo_toy_font_face_create
cairo_font_face_t* cairo_toy_font_face_create(char* family, cairo_font_slant_t slant, cairo_font_weight_t weight)
- cairo_toy_font_face_get_family
const(char)* cairo_toy_font_face_get_family(cairo_font_face_t* font_face)
- cairo_toy_font_face_get_slant
cairo_font_slant_t cairo_toy_font_face_get_slant(cairo_font_face_t* font_face)
- cairo_toy_font_face_get_weight
cairo_font_weight_t cairo_toy_font_face_get_weight(cairo_font_face_t* font_face)
- cairo_transform
void cairo_transform(cairo_t* cr, cairo_matrix_t* matrix)
- cairo_translate
void cairo_translate(cairo_t* cr, double tx, double ty)
- cairo_user_font_face_create
cairo_font_face_t* cairo_user_font_face_create()
- cairo_user_font_face_get_init_func
cairo_user_scaled_font_init_func_t cairo_user_font_face_get_init_func(cairo_font_face_t* font_face)
- cairo_user_font_face_get_render_glyph_func
cairo_user_scaled_font_render_glyph_func_t cairo_user_font_face_get_render_glyph_func(cairo_font_face_t* font_face)
- cairo_user_font_face_get_text_to_glyphs_func
cairo_user_scaled_font_text_to_glyphs_func_t cairo_user_font_face_get_text_to_glyphs_func(cairo_font_face_t* font_face)
- cairo_user_font_face_get_unicode_to_glyph_func
cairo_user_scaled_font_unicode_to_glyph_func_t cairo_user_font_face_get_unicode_to_glyph_func(cairo_font_face_t* font_face)
- cairo_user_font_face_set_init_func
void cairo_user_font_face_set_init_func(cairo_font_face_t* font_face, cairo_user_scaled_font_init_func_t init_func)
- cairo_user_font_face_set_render_glyph_func
void cairo_user_font_face_set_render_glyph_func(cairo_font_face_t* font_face, cairo_user_scaled_font_render_glyph_func_t render_glyph_func)
- cairo_user_font_face_set_text_to_glyphs_func
void cairo_user_font_face_set_text_to_glyphs_func(cairo_font_face_t* font_face, cairo_user_scaled_font_text_to_glyphs_func_t text_to_glyphs_func)
- cairo_user_font_face_set_unicode_to_glyph_func
void cairo_user_font_face_set_unicode_to_glyph_func(cairo_font_face_t* font_face, cairo_user_scaled_font_unicode_to_glyph_func_t unicode_to_glyph_func)
- cairo_user_to_device
void cairo_user_to_device(cairo_t* cr, double* x, double* y)
- cairo_user_to_device_distance
void cairo_user_to_device_distance(cairo_t* cr, double* dx, double* dy)
- cairo_version
int cairo_version()
- cairo_version_string
immutable(char)* cairo_version_string()
Cairo C API. Contains stuff from cairo.h and cairo-version.h
This module only contains basic documentation. For more information see http://cairographics.org/manual/