Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updates to documentation and initial package.xml file

  • Loading branch information...
commit 2b00fb869cb8a2425a613098349a58a6e3a3e65a 1 parent 50a7871
@auroraeosrose auroraeosrose authored
View
3  README
@@ -2,4 +2,5 @@ Cairo OO Extension
================
Object Oriented interface to Cairo Graphics library
-Requires Cairo 1.4 or higher
+Requires Cairo 1.4 or higher
+Requires PHP 5.2 or higher
View
264 SYMBOLS
@@ -0,0 +1,264 @@
+Datatypes
+
+Cairo type pecl/cairo type
+
+cairo_t CairoContext
+cairo_content_t CairoContent
+cairo_fill_rule_t CairoFillRule
+cairo_font_face_t CairoFontFace
+cairo_font_options_t CairoFontOptions
+cairo_glyph_t CairoGlyph
+cairo_line_cap_t CairoLineCap
+cairo_line_join_t CairoLineJoin
+cairo_line_t CairoLine
+cairo_matrix_t CairoMatrix
+cairo_move_t CairoMove
+cairo_operator_t CairoOperator
+cairo_path_t CairoPath
+cairo_pattern_t CairoPattern
+cairo_scaled_font_t CairoScaledFont
+cairo_status_t CairoStatus
+cairo_surface_t CairoSurface
+
+Cairo symbol Procedural symbol OO symbol
+
+CAIRO_STATUS_SUCCESS CAIRO_STATUS_SUCCESS CairoStatus::SUCCESS
+CAIRO_STATUS_NO_MEMORY CAIRO_STATUS_NO_MEMORY CairoStatus::NO_MEMORY
+CAIRO_STATUS_INVALID_RESTORE CAIRO_STATUS_INVALID_RESTORE CairoStatus::INVALID_RESTORE
+CAIRO_STATUS_INVALID_POP_GROUP CAIRO_STATUS_INVALID_POP_GROUP CairoStatus::INVALID_POP_GROUP
+CAIRO_STATUS_NO_CURRENT_POINT CAIRO_STATUS_NO_CURRENT_POINT CairoStatus::NO_CURRENT_POINT
+CAIRO_STATUS_INVALID_MATRIX CAIRO_STATUS_INVALID_MATRIX CairoStatus::INVALID_MATRIX
+CAIRO_STATUS_INVALID_STATUS CAIRO_STATUS_INVALID_STATUS CairoStatus::INVALID_STATUS
+CAIRO_STATUS_NULL_POINTER CAIRO_STATUS_NULL_POINTER CairoStatus::NULL_POINTER
+CAIRO_STATUS_INVALID_STRING CAIRO_STATUS_INVALID_STRING CairoStatus::INVALID_STRING
+CAIRO_STATUS_INVALID_PATH_DATA CAIRO_STATUS_INVALID_PATH_DATA CairoStatus::INVALID_PATH_DATA
+CAIRO_STATUS_READ_ERROR CAIRO_STATUS_READ_ERROR CairoStatus::READ_ERROR
+CAIRO_STATUS_WRITE_ERROR CAIRO_STATUS_WRITE_ERROR CairoStatus::WRITE_ERROR
+CAIRO_STATUS_SURFACE_FINISHED CAIRO_STATUS_SURFACE_FINISHED CairoStatus::SURFACE_FINISHED
+CAIRO_STATUS_SURFACE_TYPE_MISMATCH CAIRO_STATUS_SURFACE_TYPE_MISMATCH CairoStatus::SURFACE_TYPE_MISMATCH
+CAIRO_STATUS_PATTERN_TYPE_MISMATCH CAIRO_STATUS_PATTERN_TYPE_MISMATCH CairoStatus::PATTERN_TYPE_MISMATCH
+CAIRO_STATUS_INVALID_CONTENT CAIRO_STATUS_INVALID_CONTENT CairoStatus::INVALID_CONTENT
+CAIRO_STATUS_INVALID_FORMAT CAIRO_STATUS_INVALID_FORMAT CairoStatus::INVALID_FORMAT
+CAIRO_STATUS_INVALID_VISUAL CAIRO_STATUS_INVALID_VISUAL CairoStatus::INVALID_VISUAL
+CAIRO_STATUS_FILE_NOT_FOUND CAIRO_STATUS_FILE_NOT_FOUND CairoStatus::FILE_NOT_FOUND
+CAIRO_STATUS_INVALID_DASH CAIRO_STATUS_INVALID_DASH CairoStatus::INVALID_DASH
+CAIRO_STATUS_INVALID_DSC_COMMENT CAIRO_STATUS_INVALID_DSC_COMMENT CairoStatus::INVALID_DSC_COMMENT
+CAIRO_STATUS_INVALID_INDEX CAIRO_STATUS_INVALID_INDEX CairoStatus::INVALID_INDEX
+CAIRO_STATUS_CLIP_NOT_REPRESENTABLE CAIRO_STATUS_CLIP_NOT_REPRESENTABLE CairoStatus::CLIP_NOT_REPRESENTABLE
+CAIRO_STATUS_TEMP_FILE_ERROR CAIRO_STATUS_TEMP_FILE_ERROR CairoStatus::TEMP_FILE_ERROR
+CAIRO_STATUS_INVALID_STRIDE CAIRO_STATUS_INVALID_STRIDE CairoStatus::INVALID_STRIDE
+CAIRO_STATUS_FONT_TYPE_MISMATCH CAIRO_STATUS_FONT_TYPE_MISMATCH CairoStatus::FONT_TYPE_MISMATCH
+CAIRO_STATUS_USER_FONT_IMMUTABLE CAIRO_STATUS_USER_FONT_IMMUTABLE CairoStatus::USER_FONT_IMMUTABLE
+CAIRO_STATUS_USER_FONT_ERROR CAIRO_STATUS_USER_FONT_ERROR CairoStatus::USER_FONT_ERROR
+CAIRO_STATUS_NEGATIVE_COUNT CAIRO_STATUS_NEGATIVE_COUNT CairoStatus::NEGATIVE_COUNT
+CAIRO_STATUS_INVALID_CLUSTERS CAIRO_STATUS_INVALID_CLUSTERS CairoStatus::INVALID_CLUSTERS
+CAIRO_STATUS_INVALID_SLANT CAIRO_STATUS_INVALID_SLANT CairoStatus::INVALID_SLANT
+CAIRO_STATUS_INVALID_WEIGHT CAIRO_STATUS_INVALID_WEIGHT CairoStatus::INVALID_WEIGHT
+CAIRO_ANTIALIAS_DEFAULT CAIRO_ANTIALIAS_DEFAULT CairoAntialias::MODE_DEFAULT
+CAIRO_ANTIALIAS_NONE CAIRO_ANTIALIAS_NONE CairoAntialias::MODE_NONE
+CAIRO_ANTIALIAS_GRAY CAIRO_ANTIALIAS_GRAY CairoAntialias::MODE_GRAY
+CAIRO_ANTIALIAS_SUBPIXEL CAIRO_ANTIALIAS_SUBPIXEL CairoAntialias::MODE_SUBPIXEL
+CAIRO_SUBPIXEL_ORDER_DEFAULT CAIRO_SUBPIXEL_ORDER_DEFAULT CairoSubpixelOrder::ORDER_DEFAULT
+CAIRO_SUBPIXEL_ORDER_RGB CAIRO_SUBPIXEL_ORDER_RGB CairoSubpixelOrder::ORDER_RGB
+CAIRO_SUBPIXEL_ORDER_BGR CAIRO_SUBPIXEL_ORDER_BGR CairoSubpixelOrder::ORDER_BGR
+CAIRO_SUBPIXEL_ORDER_VRGB CAIRO_SUBPIXEL_ORDER_VRGB CairoSubpixelOrder::ORDER_VRGB
+CAIRO_SUBPIXEL_ORDER_VBGR CAIRO_SUBPIXEL_ORDER_VBGR CairoSubpixelOrder::ORDER_VBGR
+CAIRO_FILL_RULE_WINDING CAIRO_FILL_RULE_WINDING CairoFillRule::WINDING
+CAIRO_FILL_RULE_EVEN_ODD CAIRO_FILL_RULE_EVEN_ODD CairoFillRule::EVEN_ODD
+CAIRO_LINE_CAP_BUTT CAIRO_LINE_CAP_BUTT CairoLineCap::BUTT
+CAIRO_LINE_CAP_ROUND CAIRO_LINE_CAP_ROUND CairoLineCap::ROUND
+CAIRO_LINE_CAP_SQUARE CAIRO_LINE_CAP_SQUARE CairoLineCap::SQUARE
+CAIRO_LINE_JOIN_MITER CAIRO_LINE_JOIN_MITER CairoLineJoin::MITER
+CAIRO_LINE_JOIN_ROUND CAIRO_LINE_JOIN_ROUND CairoLineJoin::ROUND
+CAIRO_LINE_JOIN_BEVEL CAIRO_LINE_JOIN_BEVEL CairoLineJoin::BEVEL
+CAIRO_OPERATOR_CLEAR CAIRO_OPERATOR_CLEAR CairoOperator::CLEAR
+CAIRO_OPERATOR_SOURCE CAIRO_OPERATOR_SOURCE CairoOperator::SOURCE
+CAIRO_OPERATOR_OVER CAIRO_OPERATOR_OVER CairoOperator::OVER
+CAIRO_OPERATOR_IN CAIRO_OPERATOR_IN CairoOperator::IN
+CAIRO_OPERATOR_OUT CAIRO_OPERATOR_OUT CairoOperator::OUT
+CAIRO_OPERATOR_ATOP CAIRO_OPERATOR_ATOP CairoOperator::ATOP
+CAIRO_OPERATOR_DEST CAIRO_OPERATOR_DEST CairoOperator::DEST
+CAIRO_OPERATOR_DEST_OVER CAIRO_OPERATOR_DEST_OVER CairoOperator::DEST_OVER
+CAIRO_OPERATOR_DEST_IN CAIRO_OPERATOR_DEST_IN CairoOperator::DEST_IN
+CAIRO_OPERATOR_DEST_OUT CAIRO_OPERATOR_DEST_OUT CairoOperator::DEST_OUT
+CAIRO_OPERATOR_DEST_ATOP CAIRO_OPERATOR_DEST_ATOP CairoOperator::DEST_ATOP
+CAIRO_OPERATOR_XOR CAIRO_OPERATOR_XOR CairoOperator::XOR
+CAIRO_OPERATOR_ADD CAIRO_OPERATOR_ADD CairoOperator::ADD
+CAIRO_OPERATOR_SATURATE CAIRO_OPERATOR_SATURATE CairoOperator::SATURATE
+CAIRO_PATTERN_TYPE_SOLID CAIRO_PATTERN_TYPE_SOLID CairoPatternType::SOLID
+CAIRO_PATTERN_TYPE_SURFACE CAIRO_PATTERN_TYPE_SURFACE CairoPatternType::SURFACE
+CAIRO_PATTERN_TYPE_LINEAR CAIRO_PATTERN_TYPE_LINEAR CairoPatternType::LINEAR
+CAIRO_PATTERN_TYPE_RADIAL CAIRO_PATTERN_TYPE_RADIAL CairoPatternType::RADIAL
+CAIRO_EXTEND_NONE CAIRO_EXTEND_NONE CairoExtend::NONE
+CAIRO_EXTEND_REPEAT CAIRO_EXTEND_REPEAT CairoExtend::REPEAT
+CAIRO_EXTEND_REFLECT CAIRO_EXTEND_REFLECT CairoExtend::REFLECT
+CAIRO_EXTEND_PAD CAIRO_EXTEND_PAD CairoExtend::PAD
+CAIRO_FILTER_FAST CAIRO_FILTER_FAST CairoFilter::FAST
+CAIRO_FILTER_GOOD CAIRO_FILTER_GOOD CairoFilter::GOOD
+CAIRO_FILTER_BEST CAIRO_FILTER_BEST CairoFilter::BEST
+CAIRO_FILTER_NEAREST CAIRO_FILTER_NEAREST CairoFilter::NEAREST
+CAIRO_FILTER_BILINEAR CAIRO_FILTER_BILINEAR CairoFilter::BILINEAR
+CAIRO_FILTER_GAUSSIAN CAIRO_FILTER_GAUSSIAN CairoFilter::GAUSSIAN
+CAIRO_HINT_STYLE_DEFAULT CAIRO_HINT_STYLE_DEFAULT CairoHintStyle::STYLE_DEFAULT
+CAIRO_HINT_STYLE_NONE CAIRO_HINT_STYLE_NONE CairoHintStyle::STYLE_NONE
+CAIRO_HINT_STYLE_SLIGHT CAIRO_HINT_STYLE_SLIGHT CairoHintStyle::STYLE_SLIGHT
+CAIRO_HINT_STYLE_MEDIUM CAIRO_HINT_STYLE_MEDIUM CairoHintStyle::STYLE_MEDIUM
+CAIRO_HINT_STYLE_FULL CAIRO_HINT_STYLE_FULL CairoHintStyle::STYLE_FULL
+CAIRO_HINT_METRICS_DEFAULT CAIRO_HINT_METRICS_DEFAULT CairoHintMetrics::METRICS_DEFAULT
+CAIRO_HINT_METRICS_OFF CAIRO_HINT_METRICS_OFF CairoHintMetrics::METRICS_OFF
+CAIRO_HINT_METRICS_ON CAIRO_HINT_METRICS_ON CairoHintMetrics::METRICS_ON
+CAIRO_FONT_TYPE_TOY CAIRO_FONT_TYPE_TOY CairoFontType::TOY
+CAIRO_FONT_TYPE_FT CAIRO_FONT_TYPE_FT CairoFontType::FT
+CAIRO_FONT_TYPE_WIN32 CAIRO_FONT_TYPE_WIN32 CairoFontType::WIN32
+CAIRO_FONT_SLANT_NORMAL CAIRO_FONT_SLANT_NORMAL CairoFontSlant::NORMAL
+CAIRO_FONT_SLANT_ITALIC CAIRO_FONT_SLANT_ITALIC CairoFontSlant::ITALIC
+CAIRO_FONT_SLANT_OBLIQUE CAIRO_FONT_SLANT_OBLIQUE CairoFontSlant::OBLIQUE
+CAIRO_FONT_WEIGHT_NORMAL CAIRO_FONT_WEIGHT_NORMAL CairoFontWeight::NORMAL
+CAIRO_FONT_WEIGHT_BOLD CAIRO_FONT_WEIGHT_BOLD CairoFontWeight::BOLD
+CAIRO_CONTENT_COLOR CAIRO_CONTENT_COLOR CairoContent::COLOR
+CAIRO_CONTENT_ALPHA CAIRO_CONTENT_ALPHA CairoContent::ALPHA
+CAIRO_CONTENT_COLOR_ALPHA CAIRO_CONTENT_COLOR_ALPHA CairoContent::COLOR_ALPHA
+CAIRO_SURFACE_TYPE_IMAGE CAIRO_SURFACE_TYPE_IMAGE CairoSurfaceType::IMAGE
+CAIRO_SURFACE_TYPE_PDF CAIRO_SURFACE_TYPE_PDF CairoSurfaceType::PDF
+CAIRO_SURFACE_TYPE_PS CAIRO_SURFACE_TYPE_PS CairoSurfaceType::PS
+CAIRO_SURFACE_TYPE_XLIB CAIRO_SURFACE_TYPE_XLIB CairoSurfaceType::XLIB
+CAIRO_SURFACE_TYPE_XCB CAIRO_SURFACE_TYPE_XCB CairoSurfaceType::XCB
+CAIRO_SURFACE_TYPE_GLITZ CAIRO_SURFACE_TYPE_GLITZ CairoSurfaceType::GLITZ
+CAIRO_SURFACE_TYPE_QUARTZ CAIRO_SURFACE_TYPE_QUARTZ CairoSurfaceType::QUARTZ
+CAIRO_SURFACE_TYPE_WIN32 CAIRO_SURFACE_TYPE_WIN32 CairoSurfaceType::WIN32
+CAIRO_SURFACE_TYPE_BEOS CAIRO_SURFACE_TYPE_BEOS CairoSurfaceType::BEOS
+CAIRO_SURFACE_TYPE_DIRECTFB CAIRO_SURFACE_TYPE_DIRECTFB CairoSurfaceType::DIRECTFB
+CAIRO_SURFACE_TYPE_SVG CAIRO_SURFACE_TYPE_SVG CairoSurfaceType::SVG
+CAIRO_SURFACE_TYPE_OS2 CAIRO_SURFACE_TYPE_OS2 CairoSurfaceType::OS2
+CAIRO_SURFACE_TYPE_WIN32_PRINTING CAIRO_SURFACE_TYPE_WIN32_PRINTING CairoSurfaceType::WIN32_PRINTING
+CAIRO_SURFACE_TYPE_QUARTZ_IMAGE CAIRO_SURFACE_TYPE_QUARTZ_IMAGE CairoSurfaceType::QUARTZ_IMAGE
+CAIRO_FORMAT_ARGB32 CAIRO_FORMAT_ARGB32 CairoFormat::ARGB32
+CAIRO_FORMAT_RGB24 CAIRO_FORMAT_RGB24 CairoFormat::RGB24
+CAIRO_FORMAT_A8 CAIRO_FORMAT_A8 CairoFormat::A8
+CAIRO_FORMAT_A1 CAIRO_FORMAT_A1 CairoFormat::A1
+CAIRO_PS_LEVEL_2 CAIRO_PS_LEVEL_2 CairoPsLevel::LEVEL_2
+CAIRO_PS_LEVEL_3 CAIRO_PS_LEVEL_3 CairoPsLevel::LEVEL_3
+CAIRO_SVG_VERSION_1_1 CAIRO_SVG_VERSION_1_1 CairoSvgSurface::VERSION_1_1
+CAIRO_SVG_VERSION_1_2 CAIRO_SVG_VERSION_1_2 CairoSvgSurface::VERSION_1_2
+
+cairo_create cairo_create CairoContext::__construct
+cairo_font_face_get_type cairo_font_face_get_type CairoFontFace::getType
+cairo_font_face_status cairo_font_face_status CairoFontFace::status
+
+cairo_font_options_create cairo_font_options_create CairoFontOptions::__construct
+cairo_font_options_equal cairo_font_options_equal CairoFontOptions::equal
+cairo_font_options_get_antialias cairo_font_options_get_antialias CairoFontOptions::getAntiAlias
+cairo_font_options_get_hint_metrics cairo_font_options_get_hint_metrics CairoFontOptions::getHintMetrics
+cairo_font_options_get_hint_style cairo_font_options_get_hint_style CairoFontOptions::getHintStyle
+cairo_font_options_get_subpixel_order cairo_font_options_get_subpixel_order CairoFontOptions::getSubpixelOrder
+cairo_font_options_hash cairo_font_options_hash CairoFontOptions::hash
+cairo_font_options_merge cairo_font_options_merge CairoFontOptions::merge
+cairo_font_options_set_antialias cairo_font_options_set_antialias CairoFontOptions::setAntialias
+cairo_font_options_set_hint_metrics cairo_font_options_set_hint_metrics CairoFontOptions::setHintMetrics
+cairo_font_options_set_hint_style cairo_font_options_set_hint_style CairoFontOptions::setHintStyle
+cairo_font_options_set_subpixel_order cairo_font_options_set_subpixel_order CairoFontOptions::setSubpixelOrder
+cairo_font_options_status cairo_font_options_status CairoFontOptions::status
+
+cairo_format_stride_for_width cairo_format_stride_for_width CairoFormat::strideForWidth
+
+cairo_image_surface_create cairo_image_surface_create CairoImageSurface::__construct
+cairo_image_surface_create_for_data cairo_image_surface_create_for_data CairoImageSurface::createForData
+cairo_image_surface_create_from_png cairo_image_surface_create_from_png CairoImageSurface::createFromPng
+cairo_image_surface_get_data cairo_image_surface_get_data CairoImageSurface::getData
+cairo_image_surface_get_format cairo_image_surface_get_format CairoImageSurface::getFormat
+cairo_image_surface_get_height cairo_image_surface_get_height CairoImageSurface::getHeight
+cairo_image_surface_get_stride cairo_image_surface_get_stride CairoImageSurface::getStride
+cairo_image_surface_get_width cairo_image_surface_get_width CairoImageSurface::getWidth
+
+cairo_matrix_create_scale cairo_matrix_create_scale CairoMatrix::createScale
+cairo_matrix_create_translate cairo_matrix_create_translate CairoMatrix::createTranslate
+cairo_matrix_init_identity cairo_matrix_init_identity CairoMatrix::initIdentity
+cairo_matrix_init_rotate cairo_matrix_init_rotate CairoMatrix::initRotate
+cairo_matrix_init_scale cairo_matrix_init_scale CairoMatrix::initScale
+cairo_matrix_init_translate cairo_matrix_init_translate CairoMatrix::initTranslate
+cairo_matrix_init cairo_matrix_init CairoMatrix::init
+cairo_matrix_invert cairo_matrix_invert CairoMatrix::invert
+cairo_matrix_multiply cairo_matrix_multiply CairoMatrix::multiply
+cairo_matrix_rotate cairo_matrix_rotate CairoMatrix::rotate
+cairo_matrix_scale cairo_matrix_scale CairoMatrix::scale
+cairo_matrix_transform_distance cairo_matrix_transform_distance CairoMatrix::transformDistance
+cairo_matrix_transform_point cairo_matrix_transform_point CairoMatrix::transformPoint
+cairo_matrix_translate cairo_matrix_translate CairoMatrix::translate
+
+cairo_pattern_add_color_stop_rgb cairo_pattern_add_color_stop_rgb CairoPattern::addColorStopRgb
+cairo_pattern_add_color_stop_rgba cairo_pattern_add_color_stop_rgba CairoPattern::addColorStopRgba
+cairo_pattern_create_for_surface cairo_pattern_create_for_surface CairoPattern::createForSurface
+cairo_pattern_create_linear cairo_pattern_create_linear CairoPattern::createLinear
+cairo_pattern_create_radial cairo_pattern_create_radial CairoPattern::createRadial
+cairo_pattern_create_rgb cairo_pattern_create_rgb CairoPattern::createRgb
+cairo_pattern_create_rgba cairo_pattern_create_rgba CairoPattern::createRgba
+cairo_pattern_get_color_stop_count cairo_pattern_get_color_stop_count CairoPattern::getColorStopCount
+cairo_pattern_get_color_stop_rgba cairo_pattern_get_color_stop_rgba CairoPattern::getColorStopRgba
+cairo_pattern_get_extend cairo_pattern_get_extend CairoPattern::getExtend
+cairo_pattern_get_filter cairo_pattern_get_filter CairoPattern::getFilter
+cairo_pattern_get_linear_points cairo_pattern_get_linear_points CairoPattern::getLinearPoints
+cairo_pattern_get_matrix cairo_pattern_get_matrix CairoPattern::getMatrix
+cairo_pattern_get_radial_circles cairo_pattern_get_radial_circles CairoPattern::getRadialCircles
+cairo_pattern_get_rgba cairo_pattern_get_rgba CairoPattern::getRgba
+cairo_pattern_get_surface cairo_pattern_get_surface CairoPattern::getSurface
+cairo_pattern_get_type cairo_pattern_get_type CairoPattern::getType
+cairo_pattern_set_extend cairo_pattern_set_extend CairoPattern::setExtend
+cairo_pattern_set_filter cairo_pattern_set_filter CairoPattern::setFilter
+cairo_pattern_set_matrix cairo_pattern_set_matrix CairoPattern::setMatrix
+cairo_pattern_status cairo_pattern_status CairoPattern::status
+
+cairo_pdf_surface_create cairo_pdf_surface_create CairoPdfSurface::__construct
+cairo_pdf_surface_set_size cairo_pdf_surface_set_size CairoPdfSurface::setSize
+
+cairo_ps_get_levels cairo_ps_get_levels CairoPsSurface::getLevels
+cairo_ps_level_to_string cairo_ps_level_to_string CairoPsSurface::levelToString
+
+cairo_ps_surface_create cairo_ps_surface_create CairoPsSurface::__construct
+cairo_ps_surface_dsc_begin_page_setup cairo_ps_surface_dsc_begin_page_setup CairoPsSurface::dscBeginPageSetup
+cairo_ps_surface_dsc_begin_setup cairo_ps_surface_dsc_begin_setup CairoPsSurface::dscBeginSetup
+cairo_ps_surface_dsc_comment cairo_ps_surface_dsc_comment CairoPsSurface::dscComment
+cairo_ps_surface_get_eps cairo_ps_surface_get_eps CairoPsSurface::getEps
+cairo_ps_surface_restrict_to_level cairo_ps_surface_restrict_to_level CairoPsSurface::restrictToLevel
+cairo_ps_surface_set_eps cairo_ps_surface_set_eps CairoPsSurface::setEps
+cairo_ps_surface_set_size cairo_ps_surface_set_size CairoPsSurface::setSize
+
+cairo_scaled_font_create cairo_scaled_font_create CairoScaledFont::__construct
+cairo_scaled_font_extents cairo_scaled_font_extents CairoScaledFont::extents
+cairo_scaled_font_get_ctm cairo_scaled_font_get_ctm CairoScaledFont::getCtm
+cairo_scaled_font_get_font_face cairo_scaled_font_get_font_face CairoScaledFont::getFontFace
+cairo_scaled_font_get_font_matrix cairo_scaled_font_get_font_matrix CairoScaledFont::getFontMatrix
+cairo_scaled_font_get_font_options cairo_scaled_font_get_font_options CairoScaledFont::getFontOptions
+cairo_scaled_font_get_scale_matrix cairo_scaled_font_get_scale_matrix CairoScaledFont::getScaleMatrix
+cairo_scaled_font_get_type cairo_scaled_font_get_type CairoScaledFont::getType
+cairo_scaled_font_glyph_extents cairo_scaled_font_glyph_extents CairoScaledFont::glyphExtents
+cairo_scaled_font_status cairo_scaled_font_status CairoScaledFont::status
+cairo_scaled_font_text_extents cairo_scaled_font_text_extents CairoScaledFont::textExtents
+
+cairo_surface_copy_page cairo_surface_copy_page CairoSurface::copyPage
+cairo_surface_create_similar cairo_surface_create_similar CairoSurface::createSimilar
+cairo_surface_finish cairo_surface_finish CairoSurface::finish
+cairo_surface_flush cairo_surface_flush CairoSurface::flush
+cairo_surface_get_content cairo_surface_get_content CairoSurface::getContent
+cairo_surface_get_device_offset cairo_surface_get_device_offset CairoSurface::getDeviceOffset
+cairo_surface_get_fallback_resolution cairo_surface_get_fallback_resolution CairoSurface::getFallbackResolution
+cairo_surface_get_font_options cairo_surface_get_font_options CairoSurface::getFontOptions
+cairo_surface_get_type cairo_surface_get_type CairoSurface::getType
+cairo_surface_has_show_text_glyphs cairo_surface_has_show_text_glyphs CairoSurface::hasShowTextGlyphs
+cairo_surface_mark_dirty_rectangle cairo_surface_mark_dirty_rectangle CairoSurface::markDirtyRectangle
+cairo_surface_mark_dirty cairo_surface_mark_dirty CairoSurface::markDirty
+cairo_surface_set_device_offset cairo_surface_set_device_offset CairoSurface::setDeviceOffset
+cairo_surface_set_fallback_resolution cairo_surface_set_fallback_resolution CairoSurface::setFallbackResolution
+cairo_surface_show_page cairo_surface_show_page CairoSurface::showPage
+cairo_surface_status cairo_surface_status CairoSurface::status
+cairo_surface_write_to_png cairo_surface_write_to_png CairoSurface::writeToPng
+
+cairo_svg_get_versions cairo_svg_get_versions CairoSvgSurface::getVersions
+cairo_svg_version_to_string cairo_svg_version_to_string CairoSvgSurface::versionToString
+
+cairo_svg_surface_create cairo_svg_surface_create CairoSvgSurface::__construct
+cairo_svg_surface_restrict_to_version cairo_svg_surface_restrict_to_version CairoSvgSurface::restrictToVersion
+
+cairo_toy_font_face_create cairo_toy_font_face_create CairoToyFontFace::__construct
+cairo_toy_font_face_get_family cairo_toy_font_face_get_family CairoToyFontFace::getFamily
+cairo_toy_font_face_get_slant cairo_toy_font_face_get_slant CairoToyFontFace::getSlant
+cairo_toy_font_face_get_weight cairo_toy_font_face_get_weight CairoToyFontFace::getWeight
View
17 TODO
@@ -13,14 +13,21 @@ Paths:
Constructor and way to add data
Iterator for path object
-Text and Fonts:
- Not very much is complete, basically enough to be able to do basic text drawing
+Other:
+ API utilizing glyphs needs to be completed, a few functions in scaled font,
+ backend fonts, and CairoContext
+
+ Add ability to see values in matrix (read only properties, var_dump support) and
+ in other objects as well
+
+ clone handling
+
+ Maybe implement cairo_svg_surface_create_for_stream and similar, allowing
+ PHP callbacks/closures to be used as the callback
1. Finish code completion (see above)
-2. Tests written (good code coverage wanted) - currently at > 90% for finished code
+2. Tests written (good code coverage wanted)
3. Documentation
-4. Make sure extended classes set into and returned out of cairo calls work and all
- classes can be used extended properly
View
578 package.xml
@@ -0,0 +1,578 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<package xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" packagerversion="1.4.7" version="2.0" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd">
+ <name>Cairo</name>
+ <channel>pecl.php.net</channel>
+ <summary>Cairo Graphics Library Extension</summary>
+ <description>Cairo is a 2D graphics library with support for multiple output devices. Currently supported output targets include the X Window System, Quartz, Win32, image buffers, PostScript, PDF, and SVG file output.</description>
+ <lead>
+ <name>Elizabeth M Smith</name>
+ <user>auroraeosrose</user>
+ <email>auroraeosrose@php.net</email>
+ <active>yes</active>
+ </lead>
+ <developer>
+ <name>Michael Maclean</name>
+ <user>mgdm</user>
+ <email>mgdm@php.net</email>
+ <active>yes</active>
+ </developer>
+ <developer>
+ <name>Akshat Gupta</name>
+ <user>akshat</user>
+ <email>g.akshat@gmail.com</email>
+ <active>no</active>
+ </developer>
+
+ <date>2009-07-05</date>
+ <version><release>0.1.0</release><api>0.1.0</api></version>
+ <stability><release>alpha</release><api>alpha</api></stability>
+ <license uri="http://www.php.net/license">PHP License</license>
+ <notes>
+ * Initial Release
+ * Support for svg, pdf, ps, image, png surface backends
+ * Support for libcairo versions 1.4, 1.6 and 1.8
+ * Toy font API support only, glyph support not complete
+ * OO or procedural APIs
+ </notes>
+
+ <contents>
+ <dir name="/">
+ <file role="doc" name="README"/>
+ <file role="doc" name="TODO"/>
+ <file role="doc" name="IGNORED"/>
+ <file role="doc" name="SYMBOLS"/>
+ <file role="doc" name="CREDITS"/>
+
+ <file role="src" name="php_cairo.h"/>
+ <file role="src" name="php_cairo_api.h"/>
+
+ <file role="src" name="cairo.c"/>
+ <file role="src" name="cairo_context.c"/>
+ <file role="src" name="cairo_error.c"/>
+ <file role="src" name="cairo_matrix.c"/>
+ <file role="src" name="cairo_path.c"/>
+ <file role="src" name="cairo_pattern.c"/>
+ <file role="src" name="cairo_font.c"/>
+ <file role="src" name="cairo_font_face.c"/>
+ <file role="src" name="cairo_scaled_font.c"/>
+ <file role="src" name="cairo_font_options.c"/>
+ <file role="src" name="cairo_surface.c"/>
+ <file role="src" name="cairo_image_surface.c"/>
+ <file role="src" name="cairo_pdf_surface.c"/>
+ <file role="src" name="cairo_ps_surface.c"/>
+ <file role="src" name="cairo_svg_surface.c"/>
+
+ <file role="src" name="config.m4"/>
+ <file role="src" name="config.w32"/>
+
+ <dir name="tests">
+ <file role="test" name="cairo_available_fonts.phpt"/>
+ <file role="test" name="cairo_available_surfaces.phpt"/>
+ <file role="test" name="cairo_constants.phpt"/>
+ <file role="test" name="cairo_phpinfo.phpt"/>
+ <file role="test" name="cairo_status_to_string.phpt"/>
+ <file role="test" name="cairo_version.phpt"/>
+ <file role="test" name="cairo_version_string.phpt"/>
+ <dir name="Cairo">
+ <file role="test" name="availableFonts.phpt"/>
+ <file role="test" name="availableSurfaces.phpt"/>
+ <file role="test" name="CairoStatus_constants.phpt"/>
+ <file role="test" name="statusToString.phpt"/>
+ <file role="test" name="version.phpt"/>
+ <file role="test" name="versionString.phpt"/>
+ </dir>
+ <dir name="CairoContext">
+ <file role="test" name="__construct.phpt"/>
+ <file role="test" name="cairo_clip.phpt"/>
+ <file role="test" name="cairo_clip_extents.phpt"/>
+ <file role="test" name="cairo_clip_preserve.phpt"/>
+ <file role="test" name="cairo_clip_rectangle_list.phpt"/>
+ <file role="test" name="cairo_copy_page.phpt"/>
+ <file role="test" name="cairo_create.phpt"/>
+ <file role="test" name="cairo_fill.phpt"/>
+ <file role="test" name="cairo_fill_extents.phpt"/>
+ <file role="test" name="cairo_fill_preserve.phpt"/>
+ <file role="test" name="cairo_get_antialias.phpt"/>
+ <file role="test" name="cairo_get_dash.phpt"/>
+ <file role="test" name="cairo_get_dash_count.phpt"/>
+ <file role="test" name="cairo_get_fill_rule.phpt"/>
+ <file role="test" name="cairo_get_group_target.phpt"/>
+ <file role="test" name="cairo_get_line_cap.phpt"/>
+ <file role="test" name="cairo_get_line_join.phpt"/>
+ <file role="test" name="cairo_get_line_width.phpt"/>
+ <file role="test" name="cairo_get_miter_limit.phpt"/>
+ <file role="test" name="cairo_get_operator.phpt"/>
+ <file role="test" name="cairo_get_source.phpt"/>
+ <file role="test" name="cairo_get_target.phpt"/>
+ <file role="test" name="cairo_get_target_custom_class.phpt"/>
+ <file role="test" name="cairo_get_target_errors.phpt"/>
+ <file role="test" name="cairo_get_tolerance.phpt"/>
+ <file role="test" name="cairo_in_fill.phpt"/>
+ <file role="test" name="cairo_in_stroke.phpt"/>
+ <file role="test" name="cairo_mask.phpt"/>
+ <file role="test" name="cairo_mask_surface.phpt"/>
+ <file role="test" name="cairo_paint.phpt"/>
+ <file role="test" name="cairo_paint_with_alpha.phpt"/>
+ <file role="test" name="cairo_pop_group.phpt"/>
+ <file role="test" name="cairo_pop_group_to_source.phpt"/>
+ <file role="test" name="cairo_push_group.phpt"/>
+ <file role="test" name="cairo_push_group_with_content.phpt"/>
+ <file role="test" name="cairo_reset_clip.phpt"/>
+ <file role="test" name="cairo_restore.phpt"/>
+ <file role="test" name="cairo_save.phpt"/>
+ <file role="test" name="cairo_set_antialias.phpt"/>
+ <file role="test" name="cairo_set_dash.phpt"/>
+ <file role="test" name="cairo_set_fill_rule.phpt"/>
+ <file role="test" name="cairo_set_line_cap.phpt"/>
+ <file role="test" name="cairo_set_line_join.phpt"/>
+ <file role="test" name="cairo_set_line_width.phpt"/>
+ <file role="test" name="cairo_set_miter_limit.phpt"/>
+ <file role="test" name="cairo_set_operator.phpt"/>
+ <file role="test" name="cairo_set_source.phpt"/>
+ <file role="test" name="cairo_set_source_rgb.phpt"/>
+ <file role="test" name="cairo_set_source_rgba.phpt"/>
+ <file role="test" name="cairo_set_source_surface.phpt"/>
+ <file role="test" name="cairo_set_tolerance.phpt"/>
+ <file role="test" name="cairo_show_page.phpt"/>
+ <file role="test" name="cairo_status.phpt"/>
+ <file role="test" name="cairo_stroke.phpt"/>
+ <file role="test" name="cairo_stroke_extents.phpt"/>
+ <file role="test" name="cairo_stroke_preserve.phpt"/>
+ <file role="test" name="clip.phpt"/>
+ <file role="test" name="clipExtents.phpt"/>
+ <file role="test" name="clipPreserve.phpt"/>
+ <file role="test" name="clipRectangleList.phpt"/>
+ <file role="test" name="copyPage.phpt"/>
+ <file role="test" name="fill.phpt"/>
+ <file role="test" name="fillExtents.phpt"/>
+ <file role="test" name="fillPreserve.phpt"/>
+ <file role="test" name="getAntialias.phpt"/>
+ <file role="test" name="getDash.phpt"/>
+ <file role="test" name="getDashCount.phpt"/>
+ <file role="test" name="getFillRule.phpt"/>
+ <file role="test" name="getGroupTarget.phpt"/>
+ <file role="test" name="getLineCap.phpt"/>
+ <file role="test" name="getLineJoin.phpt"/>
+ <file role="test" name="getLineWidth.phpt"/>
+ <file role="test" name="getMiterLimit.phpt"/>
+ <file role="test" name="getOperator.phpt"/>
+ <file role="test" name="getSource.phpt"/>
+ <file role="test" name="getTarget.phpt"/>
+ <file role="test" name="getTarget_custom_class.phpt"/>
+ <file role="test" name="getTarget_errors.phpt"/>
+ <file role="test" name="getTolerance.phpt"/>
+ <file role="test" name="inFill.phpt"/>
+ <file role="test" name="inStroke.phpt"/>
+ <file role="test" name="mask.phpt"/>
+ <file role="test" name="maskSurface.phpt"/>
+ <file role="test" name="paint.phpt"/>
+ <file role="test" name="paintWithAlpha.phpt"/>
+ <file role="test" name="popGroup.phpt"/>
+ <file role="test" name="popGroupToSource.phpt"/>
+ <file role="test" name="pushGroup.phpt"/>
+ <file role="test" name="pushGroupWithContent.phpt"/>
+ <file role="test" name="resetClip.phpt"/>
+ <file role="test" name="restore.phpt"/>
+ <file role="test" name="save.phpt"/>
+ <file role="test" name="setAntialias.phpt"/>
+ <file role="test" name="setDash.phpt"/>
+ <file role="test" name="setFillRule.phpt"/>
+ <file role="test" name="setLineCap.phpt"/>
+ <file role="test" name="setLineJoin.phpt"/>
+ <file role="test" name="setLineWidth.phpt"/>
+ <file role="test" name="setMiterLimit.phpt"/>
+ <file role="test" name="setOperator.phpt"/>
+ <file role="test" name="setSource.phpt"/>
+ <file role="test" name="setSourceRgb.phpt"/>
+ <file role="test" name="setSourceRGBA.phpt"/>
+ <file role="test" name="setSourceSurface.phpt"/>
+ <file role="test" name="setTolerance.phpt"/>
+ <file role="test" name="showPage.phpt"/>
+ <file role="test" name="status.phpt"/>
+ <file role="test" name="stroke.phpt"/>
+ <file role="test" name="strokeExtents.phpt"/>
+ <file role="test" name="strokePreserve.phpt"/>
+ <dir name="Paths">
+ <file role="test" name="appendPath.phpt"/>
+ <file role="test" name="arc.phpt"/>
+ <file role="test" name="arcNegative.phpt"/>
+ <file role="test" name="cairo_append_path.phpt"/>
+ <file role="test" name="cairo_arc.phpt"/>
+ <file role="test" name="cairo_arc_negative.phpt"/>
+ <file role="test" name="cairo_close_path.phpt"/>
+ <file role="test" name="cairo_copy_path.phpt"/>
+ <file role="test" name="cairo_copy_path_flat.phpt"/>
+ <file role="test" name="cairo_curve_to.phpt"/>
+ <file role="test" name="cairo_get_current_point.phpt"/>
+ <file role="test" name="cairo_glyph_path.phpt"/>
+ <file role="test" name="cairo_has_current_point.phpt"/>
+ <file role="test" name="cairo_line_to.phpt"/>
+ <file role="test" name="cairo_move_to.phpt"/>
+ <file role="test" name="cairo_new_path.phpt"/>
+ <file role="test" name="cairo_new_sub_path.phpt"/>
+ <file role="test" name="cairo_path_extents.phpt"/>
+ <file role="test" name="cairo_rectangle.phpt"/>
+ <file role="test" name="cairo_rel_curve_to.phpt"/>
+ <file role="test" name="cairo_rel_line_to.phpt"/>
+ <file role="test" name="cairo_rel_move_to.phpt"/>
+ <file role="test" name="cairo_text_path.phpt"/>
+ <file role="test" name="closePath.phpt"/>
+ <file role="test" name="copyPath.phpt"/>
+ <file role="test" name="copyPathFlat.phpt"/>
+ <file role="test" name="curveTo.phpt"/>
+ <file role="test" name="getCurrentPoint.phpt"/>
+ <file role="test" name="glyphPath.phpt"/>
+ <file role="test" name="hasCurrentPoint.phpt"/>
+ <file role="test" name="lineTo.phpt"/>
+ <file role="test" name="moveTo.phpt"/>
+ <file role="test" name="newPath.phpt"/>
+ <file role="test" name="newSubPath.phpt"/>
+ <file role="test" name="pathExtents.phpt"/>
+ <file role="test" name="rectangle.phpt"/>
+ <file role="test" name="relCurveTo.phpt"/>
+ <file role="test" name="relLineTo.phpt"/>
+ <file role="test" name="relMoveTo.phpt"/>
+ <file role="test" name="textPath.phpt"/>
+ </dir>
+ <dir name="Text">
+ <file role="test" name="cairo_font_extents.phpt"/>
+ <file role="test" name="cairo_get_font_face.phpt"/>
+ <file role="test" name="cairo_get_font_matrix.phpt"/>
+ <file role="test" name="cairo_get_font_options.phpt"/>
+ <file role="test" name="cairo_get_scaled_font.phpt"/>
+ <file role="test" name="cairo_select_font_face.phpt"/>
+ <file role="test" name="cairo_set_font_face.phpt"/>
+ <file role="test" name="cairo_set_font_matrix.phpt"/>
+ <file role="test" name="cairo_set_font_options.phpt"/>
+ <file role="test" name="cairo_set_font_size.phpt"/>
+ <file role="test" name="cairo_set_scaled_font.phpt"/>
+ <file role="test" name="cairo_show_text.phpt"/>
+ <file role="test" name="cairo_text_extents.phpt"/>
+ <file role="test" name="create_toyfont.inc"/>
+ <file role="test" name="fontExtents.phpt"/>
+ <file role="test" name="getFontFace.phpt"/>
+ <file role="test" name="getFontMatrix.phpt"/>
+ <file role="test" name="getFontOptions.phpt"/>
+ <file role="test" name="getScaledFont.phpt"/>
+ <file role="test" name="selectFontFace.phpt"/>
+ <file role="test" name="setFontFace.phpt"/>
+ <file role="test" name="setFontMatrix.phpt"/>
+ <file role="test" name="setFontOptions.phpt"/>
+ <file role="test" name="setFontSize.phpt"/>
+ <file role="test" name="setScaledFont.phpt"/>
+ <file role="test" name="showText.phpt"/>
+ <file role="test" name="textExtents.phpt"/>
+ </dir>
+ <dir name="Transformations">
+ <file role="test" name="cairo_device_to_user.phpt"/>
+ <file role="test" name="cairo_device_to_user_distance.phpt"/>
+ <file role="test" name="cairo_get_matrix.phpt"/>
+ <file role="test" name="cairo_identity_matrix.phpt"/>
+ <file role="test" name="cairo_rotate.phpt"/>
+ <file role="test" name="cairo_scale.phpt"/>
+ <file role="test" name="cairo_set_matrix.phpt"/>
+ <file role="test" name="cairo_transform.phpt"/>
+ <file role="test" name="cairo_translate.phpt"/>
+ <file role="test" name="cairo_user_to_device.phpt"/>
+ <file role="test" name="cairo_user_to_device_distance.phpt"/>
+ <file role="test" name="deviceToUser.phpt"/>
+ <file role="test" name="deviceToUserDistance.phpt"/>
+ <file role="test" name="getMatrix.phpt"/>
+ <file role="test" name="identityMatrix.phpt"/>
+ <file role="test" name="rotate.phpt"/>
+ <file role="test" name="scale.phpt"/>
+ <file role="test" name="setMatrix.phpt"/>
+ <file role="test" name="transform.phpt"/>
+ <file role="test" name="translate.phpt"/>
+ <file role="test" name="userToDevice.phpt"/>
+ <file role="test" name="userToDeviceDistance.phpt"/>
+ </dir>
+ </dir>
+ <dir name="CairoScaledFont">
+ <file role="test" name="cairo_scaled_font_create.phpt"/>
+ <file role="test" name="cairo_scaled_font_extents.phpt"/>
+ <file role="test" name="cairo_scaled_font_get_ctm.phpt"/>
+ <file role="test" name="cairo_scaled_font_get_font_face.phpt"/>
+ <file role="test" name="cairo_scaled_font_get_font_matrix.phpt"/>
+ <file role="test" name="cairo_scaled_font_get_font_options.phpt"/>
+ <file role="test" name="cairo_scaled_font_get_scale_matrix.phpt"/>
+ <file role="test" name="cairo_scaled_font_get_type.phpt"/>
+ <file role="test" name="cairo_scaled_font_glyph_extents.phpt"/>
+ <file role="test" name="cairo_scaled_font_status.phpt"/>
+ <file role="test" name="cairo_scaled_font_text_extents.phpt"/>
+ <file role="test" name="extents.phpt"/>
+ <file role="test" name="getCtm.phpt"/>
+ <file role="test" name="getFontFace.phpt"/>
+ <file role="test" name="getFontMatrix.phpt"/>
+ <file role="test" name="getFontOptions.phpt"/>
+ <file role="test" name="getScaleMatrix.phpt"/>
+ <file role="test" name="getType.phpt"/>
+ <file role="test" name="glyphExtents.phpt"/>
+ <file role="test" name="status.phpt"/>
+ <file role="test" name="textExtents.phpt"/>
+ <file role="test" name="__construct.phpt"/>
+ <file role="test" name="create_toyfont.inc"/>
+ </dir>
+ <dir name="CairoFontFace">
+ <file role="test" name="CairoFontSlant_constants.phpt"/>
+ <file role="test" name="CairoFontType_constants.phpt"/>
+ <file role="test" name="CairoFontWeight_constants.phpt"/>
+ <file role="test" name="cairo_font_face_get_type.phpt"/>
+ <file role="test" name="cairo_font_face_status.phpt"/>
+ <file role="test" name="getType.phpt"/>
+ <file role="test" name="status.phpt"/>
+ <file role="test" name="__construct.phpt"/>
+ <file role="test" name="create_toyfont.inc"/>
+ <dir name="CairoToyFontFace">
+ <file role="test" name="cairo_toy_font_face_create.phpt"/>
+ <file role="test" name="cairo_toy_font_face_get_family.phpt"/>
+ <file role="test" name="cairo_toy_font_face_get_slant.phpt"/>
+ <file role="test" name="cairo_toy_font_face_get_weight.phpt"/>
+ <file role="test" name="getFamily.phpt"/>
+ <file role="test" name="getSlant.phpt"/>
+ <file role="test" name="getWeight.phpt"/>
+ <file role="test" name="__construct.phpt"/>
+ </dir>
+ </dir>
+ <dir name="CairoFontOptions">
+ <file role="test" name="CairoHintMetrics_constants.phpt"/>
+ <file role="test" name="CairoHintStyle_constants.phpt"/>
+ <file role="test" name="cairo_font_options_create.phpt"/>
+ <file role="test" name="cairo_font_options_equal.phpt"/>
+ <file role="test" name="cairo_font_options_get_antialias.phpt"/>
+ <file role="test" name="cairo_font_options_get_hint_metrics.phpt"/>
+ <file role="test" name="cairo_font_options_get_hint_style.phpt"/>
+ <file role="test" name="cairo_font_options_get_subpixel_order.phpt"/>
+ <file role="test" name="cairo_font_options_hash.phpt"/>
+ <file role="test" name="cairo_font_options_merge.phpt"/>
+ <file role="test" name="cairo_font_options_set_antialias.phpt"/>
+ <file role="test" name="cairo_font_options_set_hint_metrics.phpt"/>
+ <file role="test" name="cairo_font_options_set_hint_style.phpt"/>
+ <file role="test" name="cairo_font_options_set_subpixel_order.phpt"/>
+ <file role="test" name="cairo_font_options_status.phpt"/>
+ <file role="test" name="equal.phpt"/>
+ <file role="test" name="getAntialias.phpt"/>
+ <file role="test" name="getHintMetrics.phpt"/>
+ <file role="test" name="getHintStyle.phpt"/>
+ <file role="test" name="getSubpixelOrder.phpt"/>
+ <file role="test" name="hash.phpt"/>
+ <file role="test" name="merge.phpt"/>
+ <file role="test" name="setAntialias.phpt"/>
+ <file role="test" name="setHintMetrics.phpt"/>
+ <file role="test" name="setHintStyle.phpt"/>
+ <file role="test" name="setSubpixelOrder.phpt"/>
+ <file role="test" name="status.phpt"/>
+ <file role="test" name="__construct.phpt"/>
+ </dir>
+ <dir name="CairoMatrix">
+ <file role="test" name="cairo_matrix_init.phpt"/>
+ <file role="test" name="cairo_matrix_init_identity.phpt"/>
+ <file role="test" name="cairo_matrix_init_rotate.phpt"/>
+ <file role="test" name="cairo_matrix_init_scale.phpt"/>
+ <file role="test" name="cairo_matrix_init_translate.phpt"/>
+ <file role="test" name="cairo_matrix_invert.phpt"/>
+ <file role="test" name="cairo_matrix_multiply.phpt"/>
+ <file role="test" name="cairo_matrix_rotate.phpt"/>
+ <file role="test" name="cairo_matrix_scale.phpt"/>
+ <file role="test" name="cairo_matrix_transform_distance.phpt"/>
+ <file role="test" name="cairo_matrix_transform_point.phpt"/>
+ <file role="test" name="cairo_matrix_translate.phpt"/>
+ <file role="test" name="initIdentity.phpt"/>
+ <file role="test" name="initRotate.phpt"/>
+ <file role="test" name="initScale.phpt"/>
+ <file role="test" name="initTranslate.phpt"/>
+ <file role="test" name="invert.phpt"/>
+ <file role="test" name="matrix_extended_class.phpt"/>
+ <file role="test" name="multiply.phpt"/>
+ <file role="test" name="rotate.phpt"/>
+ <file role="test" name="scale.phpt"/>
+ <file role="test" name="transformDistance.phpt"/>
+ <file role="test" name="transformPoint.phpt"/>
+ <file role="test" name="translate.phpt"/>
+ <file role="test" name="__construct.phpt"/>
+ </dir>
+ <dir name="CairoPattern">
+ <file role="test" name="CairoExtend_constants.phpt"/>
+ <file role="test" name="CairoPatternType_constants.phpt"/>
+ <file role="test" name="cairo_pattern_get_matrix.phpt"/>
+ <file role="test" name="cairo_pattern_get_type.phpt"/>
+ <file role="test" name="cairo_pattern_set_matrix.phpt"/>
+ <file role="test" name="cairo_pattern_status.phpt"/>
+ <file role="test" name="getMatrix.phpt"/>
+ <file role="test" name="getType.phpt"/>
+ <file role="test" name="setMatrix.phpt"/>
+ <file role="test" name="status.phpt"/>
+ <file role="test" name="__construct.phpt"/>
+ <dir name="CairoGradientPattern">
+ <file role="test" name="addColorStopRgb.phpt"/>
+ <file role="test" name="addColorStopRgba.phpt"/>
+ <file role="test" name="cairo_pattern_add_color_stop_rgb.phpt"/>
+ <file role="test" name="cairo_pattern_add_color_stop_rgba.phpt"/>
+ <file role="test" name="cairo_pattern_get_color_stop_count.phpt"/>
+ <file role="test" name="cairo_pattern_get_color_stop_rgba.phpt"/>
+ <file role="test" name="getColorStopCount.phpt"/>
+ <file role="test" name="getColorStopRgba.phpt"/>
+ <file role="test" name="getExtend.phpt"/>
+ <file role="test" name="setExtend.phpt"/>
+ <file role="test" name="__construct.phpt"/>
+ <dir name="CairoLinearGradient">
+ <file role="test" name="cairo_pattern_create_linear.phpt"/>
+ <file role="test" name="cairo_pattern_get_linear_points.phpt"/>
+ <file role="test" name="getPoints.phpt"/>
+ <file role="test" name="__construct.phpt"/>
+ </dir>
+ <dir name="CairoRadialGradient">
+ <file role="test" name="cairo_pattern_create_radial.phpt"/>
+ <file role="test" name="cairo_pattern_get_radial_circles.phpt"/>
+ <file role="test" name="getCircles.phpt"/>
+ <file role="test" name="__construct.phpt"/>
+ </dir>
+ </dir>
+ <dir name="CairoSolidPattern">
+ <file role="test" name="cairo_pattern_create_rgb.phpt"/>
+ <file role="test" name="cairo_pattern_create_rgba.phpt"/>
+ <file role="test" name="cairo_pattern_get_rgba.phpt"/>
+ <file role="test" name="getRgba.phpt"/>
+ <file role="test" name="__construct.phpt"/>
+ </dir>
+ <dir name="CairoSurfacePattern">
+ <file role="test" name="CairoFilter_constants.phpt"/>
+ <file role="test" name="cairo_pattern_create_for_surface.phpt"/>
+ <file role="test" name="cairo_pattern_get_extend.phpt"/>
+ <file role="test" name="cairo_pattern_get_filter.phpt"/>
+ <file role="test" name="cairo_pattern_get_surface.phpt"/>
+ <file role="test" name="cairo_pattern_set_extend.phpt"/>
+ <file role="test" name="cairo_pattern_set_filter.phpt"/>
+ <file role="test" name="getExtend.phpt"/>
+ <file role="test" name="getFilter.phpt"/>
+ <file role="test" name="getSurface.phpt"/>
+ <file role="test" name="setExtend.phpt"/>
+ <file role="test" name="setFilter.phpt"/>
+ <file role="test" name="__construct.phpt"/>
+ </dir>
+ </dir>
+ <dir name="CairoSurface">
+ <file role="test" name="CairoContent_constants.phpt"/>
+ <file role="test" name="CairoSurfaceType_constants.phpt"/>
+ <file role="test" name="cairo_surface_copy_page.phpt"/>
+ <file role="test" name="cairo_surface_create_similar.phpt"/>
+ <file role="test" name="cairo_surface_finish.phpt"/>
+ <file role="test" name="cairo_surface_flush.phpt"/>
+ <file role="test" name="cairo_surface_get_content.phpt"/>
+ <file role="test" name="cairo_surface_get_device_offset.phpt"/>
+ <file role="test" name="cairo_surface_get_fallback_resolution.phpt"/>
+ <file role="test" name="cairo_surface_get_font_options.phpt"/>
+ <file role="test" name="cairo_surface_get_type.phpt"/>
+ <file role="test" name="cairo_surface_has_show_text_glyphs.phpt"/>
+ <file role="test" name="cairo_surface_mark_dirty.phpt"/>
+ <file role="test" name="cairo_surface_mark_dirty_rectangle.phpt"/>
+ <file role="test" name="cairo_surface_set_device_offset.phpt"/>
+ <file role="test" name="cairo_surface_set_fallback_resolution.phpt"/>
+ <file role="test" name="cairo_surface_show_page.phpt"/>
+ <file role="test" name="cairo_surface_status.phpt"/>
+ <file role="test" name="cairo_surface_write_to_png.phpt"/>
+ <file role="test" name="copyPage.phpt"/>
+ <file role="test" name="createSimilar.phpt"/>
+ <file role="test" name="finish.phpt"/>
+ <file role="test" name="flush.phpt"/>
+ <file role="test" name="getContent.phpt"/>
+ <file role="test" name="getDeviceOffset.phpt"/>
+ <file role="test" name="getFallbackResolution.phpt"/>
+ <file role="test" name="getFontOptions.phpt"/>
+ <file role="test" name="getType.phpt"/>
+ <file role="test" name="hasShowTextGlyphs.phpt"/>
+ <file role="test" name="markDirty.phpt"/>
+ <file role="test" name="markDirtyRectangle.phpt"/>
+ <file role="test" name="setDeviceOffset.phpt"/>
+ <file role="test" name="setFallbackResolution.phpt"/>
+ <file role="test" name="showPage.phpt"/>
+ <file role="test" name="status.phpt"/>
+ <file role="test" name="writeToPng.phpt"/>
+ <file role="test" name="__construct.phpt"/>
+ <dir name="CairoImageSurface">
+ <file role="test" name="CairoFormat_constants.phpt"/>
+ <file role="test" name="CairoFormat_strideForWidth.phpt"/>
+ <file role="test" name="cairo_format_stride_for_width.phpt"/>
+ <file role="test" name="cairo_image_surface_create.phpt"/>
+ <file role="test" name="cairo_image_surface_create_for_data.phpt"/>
+ <file role="test" name="cairo_image_surface_create_from_png.phpt"/>
+ <file role="test" name="cairo_image_surface_get_data.phpt"/>
+ <file role="test" name="cairo_image_surface_get_format.phpt"/>
+ <file role="test" name="cairo_image_surface_get_height.phpt"/>
+ <file role="test" name="cairo_image_surface_get_stride.phpt"/>
+ <file role="test" name="cairo_image_surface_get_width.phpt"/>
+ <file role="test" name="createForData.phpt"/>
+ <file role="test" name="createFromPng.phpt"/>
+ <file role="test" name="getData.phpt"/>
+ <file role="test" name="getFormat.phpt"/>
+ <file role="test" name="getHeight.phpt"/>
+ <file role="test" name="getStride.phpt"/>
+ <file role="test" name="getWidth.phpt"/>
+ <file role="test" name="__construct.phpt"/>
+ <file role="test" name="red.png"/>
+ </dir>
+ <dir name="CairoPdfSurface">
+ <file role="test" name="cairo_pdf_surface_create.phpt"/>
+ <file role="test" name="cairo_pdf_surface_set_size.phpt"/>
+ <file role="test" name="setSize.phpt"/>
+ <file role="test" name="__construct.phpt"/>
+ </dir>
+ <dir name="CairoPsSurface">
+ <file role="test" name="CairoPsLevel_constants.phpt"/>
+ <file role="test" name="cairo_ps_get_levels.phpt"/>
+ <file role="test" name="cairo_ps_level_to_string.phpt"/>
+ <file role="test" name="cairo_ps_surface_create.phpt"/>
+ <file role="test" name="cairo_ps_surface_dsc_begin_page_setup.phpt"/>
+ <file role="test" name="cairo_ps_surface_dsc_begin_setup.phpt"/>
+ <file role="test" name="cairo_ps_surface_dsc_comment.phpt"/>
+ <file role="test" name="cairo_ps_surface_get_eps.phpt"/>
+ <file role="test" name="cairo_ps_surface_restrict_to_level.phpt"/>
+ <file role="test" name="cairo_ps_surface_set_eps.phpt"/>
+ <file role="test" name="cairo_ps_surface_set_size.phpt"/>
+ <file role="test" name="dscBeginPageSetup.phpt"/>
+ <file role="test" name="dscBeginSetup.phpt"/>
+ <file role="test" name="dscComment.phpt"/>
+ <file role="test" name="getEps.phpt"/>
+ <file role="test" name="getLevels.phpt"/>
+ <file role="test" name="levelToString.phpt"/>
+ <file role="test" name="restrictToLevel.phpt"/>
+ <file role="test" name="setEps.phpt"/>
+ <file role="test" name="setSize.phpt"/>
+ <file role="test" name="__construct.phpt"/>
+ </dir>
+ <dir name="CairoSvgSurface">
+ <file role="test" name="CairoSvgVersion_constants.phpt"/>
+ <file role="test" name="cairo_svg_get_versions.phpt"/>
+ <file role="test" name="cairo_svg_surface_create.phpt"/>
+ <file role="test" name="cairo_svg_surface_restrict_to_version.phpt"/>
+ <file role="test" name="cairo_svg_version_to_string.phpt"/>
+ <file role="test" name="getVersions.phpt"/>
+ <file role="test" name="restrictToVersion.phpt"/>
+ <file role="test" name="versionToString.phpt"/>
+ <file role="test" name="__construct.phpt"/>
+ </dir>
+ </dir>
+ </dir>
+ </dir>
+ </contents>
+
+ <dependencies>
+ <required>
+ <php>
+ <min>5.2.0</min>
+ </php>
+ <pearinstaller>
+ <min>1.4.0</min>
+ </pearinstaller>
+ </required>
+
+ </dependencies>
+
+ <providesextension>cairo</providesextension>
+
+ <changelog>
+ </changelog>
+</package>
+<!--
+vim:et:ts=1:sw=1
+-->
View
64 tests/CairoContext/cairo_set_source_rgba function.phpt
@@ -1,64 +0,0 @@
---TEST--
-cairo_set_source_rgba function
---SKIPIF--
-<?php
-if(!extension_loaded('cairo')) die('skip - Cairo extension not available');
-?>
---FILE--
-<?php
-$surface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, 50, 50);
-var_dump($surface);
-
-$context = cairo_create($surface);
-var_dump($context);
-
-cairo_set_source_rgba($context, 0.1, 0.1, 0.1, 0.5);
-
-function bad_class($errno, $errstr) {
- echo 'CAUGHT ERROR: ' . $errstr, PHP_EOL;
-}
-set_error_handler('bad_class', E_RECOVERABLE_ERROR);
-
-/* wrong params */
-cairo_set_source_rgba();
-cairo_set_source_rgba($context);
-cairo_set_source_rgba($context, 1);
-cairo_set_source_rgba($context, 1, 1);
-cairo_set_source_rgba($context, 1, 1, 1);
-cairo_set_source_rgba($context, 1, 1, 1, 1, 1);
-
-/* wrong types */
-cairo_set_source_rgba(1, 1, 1, 1, 1);
-cairo_set_source_rgba($context, array(), 1, 1, 1);
-cairo_set_source_rgba($context, 1, array(), 1, 1);
-cairo_set_source_rgba($context, 1, 1, array(), 1);
-cairo_set_source_rgba($context, 1, 1, 1, array());
-?>
---EXPECTF--
-object(CairoImageSurface)#%d (0) {
-}
-object(CairoContext)#%d (0) {
-}
-
-Warning: cairo_set_source_rgba() expects exactly 5 parameters, 0 given in %s on line %d
-
-Warning: cairo_set_source_rgba() expects exactly 5 parameters, 1 given in %s on line %d
-
-Warning: cairo_set_source_rgba() expects exactly 5 parameters, 2 given in %s on line %d
-
-Warning: cairo_set_source_rgba() expects exactly 5 parameters, 3 given in %s on line %d
-
-Warning: cairo_set_source_rgba() expects exactly 5 parameters, 4 given in %s on line %d
-
-Warning: cairo_set_source_rgba() expects exactly 5 parameters, 6 given in %s on line %d
-CAUGHT ERROR: Argument 1 passed to cairo_set_source_rgba() must be an instance of CairoContext, integer given
-
-Warning: cairo_set_source_rgba() expects parameter 1 to be CairoContext, integer given in %s on line %d
-
-Warning: cairo_set_source_rgba() expects parameter 2 to be double, array given in %s on line %d
-
-Warning: cairo_set_source_rgba() expects parameter 3 to be double, array given in %s on line %d
-
-Warning: cairo_set_source_rgba() expects parameter 4 to be double, array given in %s on line %d
-
-Warning: cairo_set_source_rgba() expects parameter 5 to be double, array given in %s on line %d
Please sign in to comment.
Something went wrong with that request. Please try again.