CairoCFFI
'stable'
  • Overview
    • Installing CFFI
    • Installing cairocffi
    • Importing
      • Installing cairo on Windows
    • cairo versions
    • Compatibility with Pycairo
    • Basic usage
  • Python API reference
    • Meta
      • install_as_pycairo()
      • cairo_version()
      • cairo_version_string()
      • CairoError
      • Error
    • Surfaces
      • Surface
        • Surface.copy_page()
        • Surface.create_for_rectangle()
        • Surface.create_similar()
        • Surface.create_similar_image()
        • Surface.finish()
        • Surface.flush()
        • Surface.get_content()
        • Surface.get_device_offset()
        • Surface.get_device_scale()
        • Surface.get_fallback_resolution()
        • Surface.get_font_options()
        • Surface.get_mime_data()
        • Surface.has_show_text_glyphs()
        • Surface.mark_dirty()
        • Surface.mark_dirty_rectangle()
        • Surface.set_device_offset()
        • Surface.set_device_scale()
        • Surface.set_fallback_resolution()
        • Surface.set_mime_data()
        • Surface.show_page()
        • Surface.supports_mime_type()
        • Surface.write_to_png()
      • ImageSurface
        • ImageSurface
      • PDFSurface
        • PDFSurface
      • PSSurface
        • PSSurface
      • SVGSurface
        • SVGSurface
      • RecordingSurface
        • RecordingSurface
      • Win32PrintingSurface
        • Win32PrintingSurface
    • Context
      • Context
        • Context.append_path()
        • Context.arc()
        • Context.arc_negative()
        • Context.clip()
        • Context.clip_extents()
        • Context.clip_preserve()
        • Context.close_path()
        • Context.copy_clip_rectangle_list()
        • Context.copy_page()
        • Context.copy_path()
        • Context.copy_path_flat()
        • Context.curve_to()
        • Context.device_to_user()
        • Context.device_to_user_distance()
        • Context.fill()
        • Context.fill_extents()
        • Context.fill_preserve()
        • Context.font_extents()
        • Context.get_antialias()
        • Context.get_current_point()
        • Context.get_dash()
        • Context.get_dash_count()
        • Context.get_fill_rule()
        • Context.get_font_face()
        • Context.get_font_matrix()
        • Context.get_font_options()
        • Context.get_group_target()
        • Context.get_hairline()
        • Context.get_line_cap()
        • Context.get_line_join()
        • Context.get_line_width()
        • Context.get_matrix()
        • Context.get_miter_limit()
        • Context.get_operator()
        • Context.get_scaled_font()
        • Context.get_source()
        • Context.get_target()
        • Context.get_tolerance()
        • Context.glyph_extents()
        • Context.glyph_path()
        • Context.has_current_point()
        • Context.identity_matrix()
        • Context.in_clip()
        • Context.in_fill()
        • Context.in_stroke()
        • Context.line_to()
        • Context.mask()
        • Context.mask_surface()
        • Context.move_to()
        • Context.new_path()
        • Context.new_sub_path()
        • Context.paint()
        • Context.paint_with_alpha()
        • Context.path_extents()
        • Context.pop_group()
        • Context.pop_group_to_source()
        • Context.push_group()
        • Context.push_group_with_content()
        • Context.rectangle()
        • Context.rel_curve_to()
        • Context.rel_line_to()
        • Context.rel_move_to()
        • Context.reset_clip()
        • Context.restore()
        • Context.rotate()
        • Context.save()
        • Context.scale()
        • Context.select_font_face()
        • Context.set_antialias()
        • Context.set_dash()
        • Context.set_fill_rule()
        • Context.set_font_face()
        • Context.set_font_matrix()
        • Context.set_font_options()
        • Context.set_font_size()
        • Context.set_hairline()
        • Context.set_line_cap()
        • Context.set_line_join()
        • Context.set_line_width()
        • Context.set_matrix()
        • Context.set_miter_limit()
        • Context.set_operator()
        • Context.set_scaled_font()
        • Context.set_source()
        • Context.set_source_rgb()
        • Context.set_source_rgba()
        • Context.set_source_surface()
        • Context.set_tolerance()
        • Context.show_glyphs()
        • Context.show_page()
        • Context.show_text()
        • Context.show_text_glyphs()
        • Context.stroke()
        • Context.stroke_extents()
        • Context.stroke_preserve()
        • Context.tag_begin()
        • Context.tag_end()
        • Context.text_extents()
        • Context.text_path()
        • Context.transform()
        • Context.translate()
        • Context.user_to_device()
        • Context.user_to_device_distance()
    • Matrix
      • Matrix
        • Matrix.as_tuple()
        • Matrix.copy()
        • Matrix.init_rotate()
        • Matrix.invert()
        • Matrix.inverted()
        • Matrix.multiply()
        • Matrix.rotate()
        • Matrix.scale()
        • Matrix.transform_distance()
        • Matrix.transform_point()
        • Matrix.translate()
        • Matrix.x0
        • Matrix.xx
        • Matrix.xy
        • Matrix.y0
        • Matrix.yx
        • Matrix.yy
    • Patterns
      • Pattern
        • Pattern.get_extend()
        • Pattern.get_filter()
        • Pattern.get_matrix()
        • Pattern.set_extend()
        • Pattern.set_filter()
        • Pattern.set_matrix()
      • SolidPattern
        • SolidPattern
      • SurfacePattern
        • SurfacePattern
      • Gradient
        • Gradient
        • LinearGradient
        • RadialGradient
    • Fonts & text
      • Font faces
        • FontFace
        • ToyFontFace
      • ScaledFont
        • ScaledFont
      • FontOptions
        • FontOptions
    • Enumerated values
      • Content
        • CONTENT_COLOR
        • CONTENT_ALPHA
        • CONTENT_COLOR_ALPHA
      • Pixel format
        • FORMAT_ARGB32
        • FORMAT_RGB24
        • FORMAT_A8
        • FORMAT_A1
        • FORMAT_RGB16_565
        • FORMAT_RGB30
      • Compositiong operator
        • OPERATOR_CLEAR
        • OPERATOR_SOURCE
        • OPERATOR_OVER
        • OPERATOR_IN
        • OPERATOR_OUT
        • OPERATOR_ATOP
        • OPERATOR_DEST
        • OPERATOR_DEST_OVER
        • OPERATOR_DEST_IN
        • OPERATOR_DEST_OUT
        • OPERATOR_DEST_ATOP
        • OPERATOR_XOR
        • OPERATOR_ADD
        • OPERATOR_SATURATE
        • OPERATOR_MULTIPLY
        • OPERATOR_SCREEN
        • OPERATOR_OVERLAY
        • OPERATOR_DARKEN
        • OPERATOR_LIGHTEN
        • OPERATOR_COLOR_DODGE
        • OPERATOR_COLOR_BURN
        • OPERATOR_HARD_LIGHT
        • OPERATOR_SOFT_LIGHT
        • OPERATOR_DIFFERENCE
        • OPERATOR_EXCLUSION
        • OPERATOR_HSL_HUE
        • OPERATOR_HSL_SATURATION
        • OPERATOR_HSL_COLOR
        • OPERATOR_HSL_LUMINOSITY
      • Antialiasing mode
        • ANTIALIAS_DEFAULT
        • ANTIALIAS_NONE
        • ANTIALIAS_GRAY
        • ANTIALIAS_SUBPIXEL
        • ANTIALIAS_FAST
        • ANTIALIAS_GOOD
        • ANTIALIAS_BEST
      • Fill rule
        • FILL_RULE_WINDING
        • FILL_RULE_EVEN_ODD
      • Line cap style
        • LINE_CAP_BUTT
        • LINE_CAP_ROUND
        • LINE_CAP_SQUARE
      • Line join style
        • LINE_JOIN_MITER
        • LINE_JOIN_ROUND
        • LINE_JOIN_BEVEL
      • Font slant
        • FONT_SLANT_NORMAL
        • FONT_SLANT_ITALIC
        • FONT_SLANT_OBLIQUE
      • Font weight
        • FONT_WEIGHT_NORMAL
        • FONT_WEIGHT_BOLD
      • Subpixel order
        • SUBPIXEL_ORDER_DEFAULT
        • SUBPIXEL_ORDER_RGB
        • SUBPIXEL_ORDER_BGR
        • SUBPIXEL_ORDER_VRGB
        • SUBPIXEL_ORDER_VBGR
      • Hint style
        • HINT_STYLE_DEFAULT
        • HINT_STYLE_NONE
        • HINT_STYLE_SLIGHT
        • HINT_STYLE_MEDIUM
        • HINT_STYLE_FULL
      • Metrics hinting mode
        • HINT_METRICS_DEFAULT
        • HINT_METRICS_OFF
        • HINT_METRICS_ON
      • Path operation
        • PATH_MOVE_TO
        • PATH_LINE_TO
        • PATH_CURVE_TO
        • PATH_CLOSE_PATH
      • Pattern extend
        • EXTEND_NONE
        • EXTEND_REPEAT
        • EXTEND_REFLECT
        • EXTEND_PAD
      • Pixel filter
        • FILTER_FAST
        • FILTER_GOOD
        • FILTER_BEST
        • FILTER_NEAREST
        • FILTER_BILINEAR
        • FILTER_GAUSSIAN
      • PDF version
        • PDF_VERSION_1_4
        • PDF_VERSION_1_5
      • PDF outline
        • PDF_OUTLINE_FLAG_OPEN
        • PDF_OUTLINE_FLAG_BOLD
        • PDF_OUTLINE_FLAG_ITALIC
        • PDF_OUTLINE_ROOT
      • PDF metadata
        • PDF_METADATA_TITLE
        • PDF_METADATA_AUTHOR
        • PDF_METADATA_SUBJECT
        • PDF_METADATA_KEYWORDS
        • PDF_METADATA_CREATOR
        • PDF_METADATA_CREATE_DATE
        • PDF_METADATA_MOD_DATE
      • PostScript level
        • PS_LEVEL_2
        • PS_LEVEL_3
      • SVG version
        • SVG_VERSION_1_1
        • SVG_VERSION_1_2
      • SVG unit
        • SVG_UNIT_USER
        • SVG_UNIT_EM
        • SVG_UNIT_EX
        • SVG_UNIT_PX
        • SVG_UNIT_IN
        • SVG_UNIT_CM
        • SVG_UNIT_MM
        • SVG_UNIT_PT
        • SVG_UNIT_PC
        • SVG_UNIT_PERCENT
      • Cluster flags
        • TEXT_CLUSTER_FLAG_BACKWARD
  • Decoding images with GDK-PixBuf
    • ImageLoadingError
    • decode_to_image_surface()
  • Using XCB surfaces with xcffib
  • CFFI API
    • Module-level objects
      • ffi
      • cairo
    • Reference counting in cairo
    • Wrappers
      • Surface._from_pointer()
      • Pattern._from_pointer()
      • FontFace._from_pointer()
      • ScaledFont._from_pointer()
      • Context._from_pointer()
      • Surface._pointer
      • Pattern._pointer
      • FontFace._pointer
      • ScaledFont._pointer
      • FontOptions._pointer
      • Matrix._pointer
      • Context._pointer
    • Converting pycairo wrappers to cairocffi
    • Converting cairocffi wrappers to pycairo
    • Example: using Pango through CFFI with cairocffi
  • cairocffi changelog
    • Version 1.7.1
    • Version 1.7.0
    • Version 1.6.1
    • Version 1.6.0
    • Version 1.5.1
    • Version 1.5.0
    • Version 1.4.0
    • Version 1.3.0
    • Version 1.2.0
    • Version 1.1.0
    • Version 1.0.2
    • Version 1.0.1
    • Version 1.0.0
    • Version 0.9.0
    • Version 0.8.1
    • Version 0.8.0
    • Version 0.7.2
    • Version 0.7.1
    • Version 0.7
    • Version 0.6
    • Version 0.5.4
    • Version 0.5.3
    • Version 0.5.2
    • Version 0.5.1
    • Version 0.5
    • Version 0.4.3
    • Version 0.4.2
    • Version 0.4.1
    • Version 0.4
    • Version 0.3.2
    • Version 0.3.1
    • Version 0.3
    • Version 0.2
    • Version 0.1
CairoCFFI
  • Search


© Copyright Simon Sapin and contributors.

Built with Sphinx using a theme provided by Read the Docs.