File: cairo-perl.typemap

package info (click to toggle)
libcairo-perl 1.060-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 500 kB
  • ctags: 683
  • sloc: perl: 1,781; ansic: 63; makefile: 53
file content (52 lines) | stat: -rw-r--r-- 1,078 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#
# Copyright (c) 2004-2005 by the cairo perl team (see the file README)
#
# Licensed under the LGPL, see LICENSE file for more information.
#
# $Header: /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);