head 1.7; access; symbols rel-1-060:1.6 rel-1-053:1.6 rel-1-052:1.6 rel-1-045:1.5 rel-1-051:1.6 rel-1-044:1.5 stable-1-04:1.5.0.2 stable-1-02:1.4.0.4 rel-1-050:1.6 rel-1-043:1.5 rel-1-042:1.5 rel-1-041:1.4 rel-1-040:1.4 rel-1-023:1.4 rel-1-031:1.4 rel-1-022:1.4 rel-1-030:1.4 rel-1-021:1.4 stable-1-0:1.4.0.2 rel-1-02:1.4 rel-1-01:1.4 rel-1-00:1.4 rel-0-92:1.4 rel-0-91:1.4 rel-0-90:1.4 rel-0-04:1.4 rel-0-03:1.4 rel-0-02:1.3 rel-0-01:1.3; locks; strict; comment @# @; 1.7 date 2008.10.05.19.59.41; author tsch; state Exp; branches; next 1.6; commitid jap73dqgVgT1Atlt; 1.6 date 2007.10.24.16.32.05; author tsch; state Exp; branches; next 1.5; commitid n4jyLFAXsD0mARCs; 1.5 date 2007.09.09.19.56.21; author tsch; state Exp; branches; next 1.4; commitid zvcBotnuSO48a6xs; 1.4 date 2006.01.08.17.06.29; author tsch; state Exp; branches; next 1.3; commitid 64a343c146924567; 1.3 date 2005.07.29.17.19.55; author tsch; state Exp; branches; next 1.2; commitid 3b1e42ea65374567; 1.2 date 2005.07.12.20.29.47; author tsch; state Exp; branches; next 1.1; commitid 758542d428324567; 1.1 date 2004.11.05.01.34.04; author rwmcfa1; state Exp; branches; next ; desc @@ 1.7 log @In preparation of the move to SVN, use the Id keyword in place of Header. @ text @# # Copyright (c) 2004-2005 by the cairo perl team (see the file README) # # Licensed under the LGPL, see LICENSE file for more information. # # $Id: /cvs/cairo/cairo-perl/cairo-perl.typemap,v 1.6 2007-10-24 16:32:05 tsch Exp $ # TYPEMAP # For backwards compatibility: The typemap shipped with perl 5.6.2 apparently # don't know const char *. const char * T_PV cairo_bool_t T_UV cairo_font_extents_t * T_CAIRO_FONT_EXTENTS cairo_text_extents_t * T_CAIRO_TEXT_EXTENTS cairo_glyph_t * T_CAIRO_GLYPH cairo_path_t * T_CAIRO_PATH FT_Face T_FT_FACE INPUT T_CAIRO_GLYPH $var = SvCairoGlyph ($arg); T_CAIRO_PATH $var = SvCairoPath ($arg); T_FT_FACE if (sv_isobject ($arg) && sv_derived_from ($arg, \"Font::FreeType::Face\")) { $var = ($type) SvIV ((SV *) SvRV ($arg)); } else { croak(\"$var is not of type Font::FreeType::Face\"); } OUTPUT T_CAIRO_FONT_EXTENTS $arg = newSVCairoFontExtents ($var); T_CAIRO_TEXT_EXTENTS $arg = newSVCairoTextExtents ($var); T_CAIRO_GLYPH $arg = newSVCairoGlyph ($var); T_CAIRO_PATH $arg = newSVCairoPath ($var); @ 1.6 log @ * Cairo.pm * Cairo.xs * CairoFt.xs * Makefile.PL * cairo-perl.h * cairo-perl.typemap * examples/freetype-font.pl * t/CairoFt.t: Add support for part of cairo's FreeType integration API. Currently, that's just Cairo::FtFontFace::create, which lets you create a cairo font face from a FreeType font face. @ text @d6 1 a6 1 # $Header: /cvs/cairo/cairo-perl/cairo-perl.typemap,v 1.5 2007-09-09 19:56:21 tsch Exp $ @ 1.5 log @ * cairo-perl.typemap: Add const char * for backwards compatibility. @ text @d6 1 a6 1 # $Header: /cvs/cairo/cairo-perl/cairo-perl.typemap,v 1.4 2006/01/08 17:06:29 tsch Exp $ d22 3 d33 7 @ 1.4 log @ * Cairo.pm: Make DynaLoader export all our symbols. * Cairo.xs, MakeHelper.pm, Makefile.PL, cairo-perl.h: Revamp the type conversion API. Instead of implementing everything in the typemap, we now have macros like newSVCairoPattern SvCairoPattern. These get exported, so other modules can make use of them. * cairo-perl.h: Remove the DBG macro. * cairo-perl.typemap: Use T_UV instead of T_IV for cairo_bool_t. @ text @d6 1 a6 1 # $Header: /cvs/cairo/cairo-perl/cairo-perl.typemap,v 1.3 2005/07/29 17:19:55 tsch Exp $ d11 4 @ 1.3 log @ * t/Cairo.t, xs/Cairo.xs: Wrap cairo_get_font_options. * t/CairoFont.t, xs/CairoFont.xs: Wrap cairo_font_face_status, cairo_scaled_font_status, cairo_font_options_*. Update cairo_scaled_font_create. * t/CairoSurface.t, CairoSurface.xs: Wrap cairo_surface_status, cairo_surface_get_font_options. * Makefile.PL: Wrap the new cairo_font_options_t stuff. * Makefile.PL: Require cairo 0.6.0. Add new and update the old enums. Install all files necessary for other modules to use Cairo. * cairo-perl.typemap: Add a cairo_bool_t typemap. @ text @d6 1 a6 1 # $Header: /cvs/cairo/cairo-perl/cairo-perl.typemap,v 1.2 2005/07/12 20:29:47 tsch Exp $ d11 1 a11 1 cairo_bool_t T_IV @ 1.2 log @ * Cairo.pm, Cairo.xs, t/Cairo.t: Replace the %backends hash with Cairo::HAS_PS_SURFACE, HAS_PDF_SURFACE, HAS_XLIB_SURFACE, HAS_FT_FONT and HAS_PNG_FUNCTIONS. * Cairo.pm, CairoPattern.xs, CairoSurface.xs, Makefile.PL: Implement the pattern and surface hierarchy suggested by the language bindings guidelines. * Cairo.xs: Use Cairo::Context for the namespace of cairo_t, instead of just Cairo, as suggested by the guidelines. * Cairo.xs, CairoFont.xs, CairoMatrix.xs, CairoPattern.xs, CairoSurface.xs, cairo-perl.h: Add new, remove old API. Shuffle some things around. * Cairo.xs: Convert font and text extents and glyphs to and from native Perl data structures. * Cairo.xs, cairo-perl.h, cairo-perl.typemap: Remove everything that cannot be used from Perl, like the XLib and Glitz stuff. * CairoPath.xs, t/CairoPath.t: Add support for cairo_path_t, including a nice tied interface that lets you iterate over paths as if they were normal array references. * MakeHelper.pm: Extend the typemap generator to support "const" and "_noinc" types. Change the enum handling to use the Glib convention, i.e. lowercase and hyphen instead of underscore. * Makefile.PL, README: Use ExtUtils::Depends. * examples/simple.pl, examples/png/caps_join.pl, examples/png/hering.pl, examples/png/outline.pl, examples/png/spiral.pl, examples/png/splines_tolerance.pl, examples/png/stars.pl: Update the examples to make them work again after all those API changes. * t/Cairo.t, t/CairoFont.t, CairoMatrix.t, CairoPattern.t, CairoSurface.t: Redo and/or expand the whole test suite. @ text @d6 1 a6 1 # $Header: /cvs/cairo/cairo-perl/cairo-perl.typemap,v 1.1 2004/11/05 01:34:04 rwmcfa1 Exp $ d11 2 @ 1.1 log @initial import @ text @d2 1 a2 1 # Copyright (c) 2004 by the cairo perl team (see the file README) d6 1 a6 1 # $Header:$ d11 4 a14 10 # Xlib Display * T_PTROBJ Drawable T_PTROBJ Visual * T_PTROBJ Colormap T_PTROBJ # XCB XCBConnection * T_PTROBJ XCBDRAWABLE T_PTROBJ XCBVISUALTYPE * T_PTROBJ d16 21 a36 2 # others const unsigned char * T_PV @