pango 0.90.7-x86-mingw32 → 0.90.8-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ChangeLog +13 -0
- data/ext/pango/extconf.rb +0 -2
- data/ext/pango/rbpangoanalysis.c +13 -26
- data/ext/pango/rbpangoattribute.c +35 -75
- data/ext/pango/rbpangoattriterator.c +5 -12
- data/ext/pango/rbpangoattrlist.c +8 -17
- data/ext/pango/rbpangocairo.c +14 -28
- data/ext/pango/rbpangocolor.c +10 -23
- data/ext/pango/rbpangocontext.c +21 -46
- data/ext/pango/rbpangocoverage.c +6 -12
- data/ext/pango/rbpangoengine.c +2 -4
- data/ext/pango/rbpangofont.c +6 -16
- data/ext/pango/rbpangofontdescription.c +21 -42
- data/ext/pango/rbpangofontface.c +3 -6
- data/ext/pango/rbpangofontfamily.c +3 -6
- data/ext/pango/rbpangofontmap.c +5 -10
- data/ext/pango/rbpangofontmetrics.c +8 -16
- data/ext/pango/rbpangofontset.c +4 -10
- data/ext/pango/rbpangofontsetsimple.c +3 -6
- data/ext/pango/rbpangoglyphinfo.c +7 -14
- data/ext/pango/rbpangoglyphitem.c +6 -12
- data/ext/pango/rbpangoglyphstring.c +8 -18
- data/ext/pango/rbpangoitem.c +6 -12
- data/ext/pango/rbpangolanguage.c +5 -12
- data/ext/pango/rbpangolayout.c +45 -96
- data/ext/pango/rbpangolayoutiter.c +16 -32
- data/ext/pango/rbpangolayoutline.c +18 -36
- data/ext/pango/rbpangologattr.c +3 -6
- data/ext/pango/rbpangomain.c +9 -20
- data/ext/pango/rbpangomatrix.c +9 -20
- data/ext/pango/rbpangorectangle.c +15 -30
- data/ext/pango/rbpangorenderer.c +14 -28
- data/ext/pango/rbpangoscript.c +2 -4
- data/ext/pango/rbpangoscriptiter.c +4 -8
- data/ext/pango/rbpangotabarray.c +7 -16
- data/lib/1.8/pango.so +0 -0
- data/lib/1.9/pango.so +0 -0
- metadata +7 -7
@@ -28,15 +28,13 @@ pango_attr_iter_get_type(void)
|
|
28
28
|
/**********************************/
|
29
29
|
|
30
30
|
static VALUE
|
31
|
-
attriterator_next(self)
|
32
|
-
VALUE self;
|
31
|
+
attriterator_next(VALUE self)
|
33
32
|
{
|
34
33
|
return CBOOL2RVAL(pango_attr_iterator_next(_SELF(self)));
|
35
34
|
}
|
36
35
|
|
37
36
|
static VALUE
|
38
|
-
attriterator_range(self)
|
39
|
-
VALUE self;
|
37
|
+
attriterator_range(VALUE self)
|
40
38
|
{
|
41
39
|
gint start = 0;
|
42
40
|
gint end = 0;
|
@@ -45,10 +43,7 @@ attriterator_range(self)
|
|
45
43
|
}
|
46
44
|
|
47
45
|
static VALUE
|
48
|
-
attriterator_get(argc, argv, self)
|
49
|
-
int argc;
|
50
|
-
VALUE* argv;
|
51
|
-
VALUE self;
|
46
|
+
attriterator_get(int argc, VALUE *argv, VALUE self)
|
52
47
|
{
|
53
48
|
VALUE type, ret;
|
54
49
|
PangoAttribute* attr;
|
@@ -72,8 +67,7 @@ attriterator_get(argc, argv, self)
|
|
72
67
|
}
|
73
68
|
|
74
69
|
static VALUE
|
75
|
-
attriterator_get_font(self)
|
76
|
-
VALUE self;
|
70
|
+
attriterator_get_font(VALUE self)
|
77
71
|
{
|
78
72
|
PangoFontDescription* desc;
|
79
73
|
PangoLanguage* lang;
|
@@ -100,8 +94,7 @@ attriterator_get_font(self)
|
|
100
94
|
|
101
95
|
#ifdef HAVE_PANGO_ATTR_ITERATOR_GET_ATTRS
|
102
96
|
static VALUE
|
103
|
-
attriterator_get_attrs(self)
|
104
|
-
VALUE self;
|
97
|
+
attriterator_get_attrs(VALUE self)
|
105
98
|
{
|
106
99
|
GSList* list = pango_attr_iterator_get_attrs(_SELF(self));
|
107
100
|
GSList* base = list;
|
data/ext/pango/rbpangoattrlist.c
CHANGED
@@ -16,40 +16,35 @@ static ID id_call;
|
|
16
16
|
#define _SELF(self) ((PangoAttrList*)RVAL2BOXED(self, PANGO_TYPE_ATTR_LIST))
|
17
17
|
|
18
18
|
static VALUE
|
19
|
-
attrlist_initialize(self)
|
20
|
-
VALUE self;
|
19
|
+
attrlist_initialize(VALUE self)
|
21
20
|
{
|
22
21
|
G_INITIALIZE(self, pango_attr_list_new());
|
23
22
|
return Qnil;
|
24
23
|
}
|
25
24
|
|
26
25
|
static VALUE
|
27
|
-
attrlist_insert(self, attr)
|
28
|
-
VALUE self, attr;
|
26
|
+
attrlist_insert(VALUE self, VALUE attr)
|
29
27
|
{
|
30
28
|
pango_attr_list_insert(_SELF(self), RVAL2ATTR(attr));
|
31
29
|
return self;
|
32
30
|
}
|
33
31
|
|
34
32
|
static VALUE
|
35
|
-
attrlist_insert_before(self, attr)
|
36
|
-
VALUE self, attr;
|
33
|
+
attrlist_insert_before(VALUE self, VALUE attr)
|
37
34
|
{
|
38
35
|
pango_attr_list_insert_before(_SELF(self), RVAL2ATTR(attr));
|
39
36
|
return self;
|
40
37
|
}
|
41
38
|
|
42
39
|
static VALUE
|
43
|
-
attrlist_change(self, attr)
|
44
|
-
VALUE self, attr;
|
40
|
+
attrlist_change(VALUE self, VALUE attr)
|
45
41
|
{
|
46
42
|
pango_attr_list_change(_SELF(self), RVAL2ATTR(attr));
|
47
43
|
return self;
|
48
44
|
}
|
49
45
|
|
50
46
|
static VALUE
|
51
|
-
attrlist_splice(self, other, pos, len)
|
52
|
-
VALUE self, other, pos, len;
|
47
|
+
attrlist_splice(VALUE self, VALUE other, VALUE pos, VALUE len)
|
53
48
|
{
|
54
49
|
pango_attr_list_splice(_SELF(self), _SELF(other), NUM2INT(pos), NUM2INT(len));
|
55
50
|
return self;
|
@@ -57,16 +52,13 @@ attrlist_splice(self, other, pos, len)
|
|
57
52
|
|
58
53
|
#if PANGO_CHECK_VERSION(1,4,0)
|
59
54
|
static gboolean
|
60
|
-
filter_func(attr, data)
|
61
|
-
PangoAttribute* attr;
|
62
|
-
gpointer data;
|
55
|
+
filter_func(PangoAttribute *attr, gpointer data)
|
63
56
|
{
|
64
57
|
return CBOOL2RVAL(rb_funcall((VALUE)data, id_call, 1, ATTR2RVAL(attr)));
|
65
58
|
}
|
66
59
|
|
67
60
|
static VALUE
|
68
|
-
attrlist_filter(self)
|
69
|
-
VALUE self;
|
61
|
+
attrlist_filter(VALUE self)
|
70
62
|
{
|
71
63
|
VALUE func = rb_block_proc();
|
72
64
|
G_RELATIVE(self, func);
|
@@ -78,8 +70,7 @@ attrlist_filter(self)
|
|
78
70
|
#endif
|
79
71
|
|
80
72
|
static VALUE
|
81
|
-
attrlist_get_iterator(self)
|
82
|
-
VALUE self;
|
73
|
+
attrlist_get_iterator(VALUE self)
|
83
74
|
{
|
84
75
|
return BOXED2RVAL(pango_attr_list_get_iterator(_SELF(self)), PANGO_TYPE_ATTR_ITERATOR);
|
85
76
|
}
|
data/ext/pango/rbpangocairo.c
CHANGED
@@ -26,30 +26,26 @@
|
|
26
26
|
#define RVAL2LINE(v) ((PangoLayoutLine*)RVAL2BOXED(v, PANGO_TYPE_LAYOUT_LINE))
|
27
27
|
|
28
28
|
static VALUE
|
29
|
-
font_map_create(klass)
|
30
|
-
VALUE klass;
|
29
|
+
font_map_create(VALUE klass)
|
31
30
|
{
|
32
31
|
return GOBJ2RVAL(pango_cairo_font_map_new());
|
33
32
|
}
|
34
33
|
|
35
34
|
static VALUE
|
36
|
-
font_map_get_default(klass)
|
37
|
-
VALUE klass;
|
35
|
+
font_map_get_default(VALUE klass)
|
38
36
|
{
|
39
37
|
return GOBJ2RVAL(pango_cairo_font_map_get_default());
|
40
38
|
}
|
41
39
|
|
42
40
|
static VALUE
|
43
|
-
font_map_set_resolution(self, dpi)
|
44
|
-
VALUE self, dpi;
|
41
|
+
font_map_set_resolution(VALUE self, VALUE dpi)
|
45
42
|
{
|
46
43
|
pango_cairo_font_map_set_resolution(_SELF(self), NUM2DBL(dpi));
|
47
44
|
return self;
|
48
45
|
}
|
49
46
|
|
50
47
|
static VALUE
|
51
|
-
font_map_get_resolution(self)
|
52
|
-
VALUE self;
|
48
|
+
font_map_get_resolution(VALUE self)
|
53
49
|
{
|
54
50
|
return rb_float_new(pango_cairo_font_map_get_resolution(_SELF(self)));
|
55
51
|
}
|
@@ -61,8 +57,7 @@ font_map_create_context(VALUE self)
|
|
61
57
|
}
|
62
58
|
|
63
59
|
static VALUE
|
64
|
-
update_context(self, context)
|
65
|
-
VALUE self, context;
|
60
|
+
update_context(VALUE self, VALUE context)
|
66
61
|
{
|
67
62
|
pango_cairo_update_context(RVAL2CRCONTEXT(self), RVAL2CONTEXT(context));
|
68
63
|
return self;
|
@@ -76,8 +71,7 @@ create_layout(VALUE self)
|
|
76
71
|
}
|
77
72
|
|
78
73
|
static VALUE
|
79
|
-
update_layout(self, layout)
|
80
|
-
VALUE self, layout;
|
74
|
+
update_layout(VALUE self, VALUE layout)
|
81
75
|
{
|
82
76
|
pango_cairo_update_layout(RVAL2CRCONTEXT(self), RVAL2LAYOUT(layout));
|
83
77
|
return self;
|
@@ -85,8 +79,7 @@ update_layout(self, layout)
|
|
85
79
|
|
86
80
|
/* Rendering */
|
87
81
|
static VALUE
|
88
|
-
show_glyph_string(self, font, glyphs)
|
89
|
-
VALUE self, font, glyphs;
|
82
|
+
show_glyph_string(VALUE self, VALUE font, VALUE glyphs)
|
90
83
|
{
|
91
84
|
pango_cairo_show_glyph_string(RVAL2CRCONTEXT(self),
|
92
85
|
RVAL2FONT(font),
|
@@ -95,16 +88,14 @@ show_glyph_string(self, font, glyphs)
|
|
95
88
|
}
|
96
89
|
|
97
90
|
static VALUE
|
98
|
-
show_layout_line(self, line)
|
99
|
-
VALUE self, line;
|
91
|
+
show_layout_line(VALUE self, VALUE line)
|
100
92
|
{
|
101
93
|
pango_cairo_show_layout_line(RVAL2CRCONTEXT(self), RVAL2LINE(line));
|
102
94
|
return self;
|
103
95
|
}
|
104
96
|
|
105
97
|
static VALUE
|
106
|
-
show_layout(self, layout)
|
107
|
-
VALUE self, layout;
|
98
|
+
show_layout(VALUE self, VALUE layout)
|
108
99
|
{
|
109
100
|
pango_cairo_show_layout(RVAL2CRCONTEXT(self), RVAL2LAYOUT(layout));
|
110
101
|
return self;
|
@@ -112,8 +103,7 @@ show_layout(self, layout)
|
|
112
103
|
|
113
104
|
#if PANGO_CHECK_VERSION(1,14,0)
|
114
105
|
static VALUE
|
115
|
-
show_error_underline(self, x, y, width, height)
|
116
|
-
VALUE self, x, y, width, height;
|
106
|
+
show_error_underline(VALUE self, VALUE x, VALUE y, VALUE width, VALUE height)
|
117
107
|
{
|
118
108
|
pango_cairo_show_error_underline(RVAL2CRCONTEXT(self),
|
119
109
|
NUM2DBL(x), NUM2DBL(y),
|
@@ -124,8 +114,7 @@ show_error_underline(self, x, y, width, height)
|
|
124
114
|
|
125
115
|
/* Rendering to a path */
|
126
116
|
static VALUE
|
127
|
-
glyph_string_path(self, font, glyphs)
|
128
|
-
VALUE self, font, glyphs;
|
117
|
+
glyph_string_path(VALUE self, VALUE font, VALUE glyphs)
|
129
118
|
{
|
130
119
|
pango_cairo_glyph_string_path(RVAL2CRCONTEXT(self),
|
131
120
|
RVAL2FONT(font),
|
@@ -134,16 +123,14 @@ glyph_string_path(self, font, glyphs)
|
|
134
123
|
}
|
135
124
|
|
136
125
|
static VALUE
|
137
|
-
layout_line_path(self, line)
|
138
|
-
VALUE self, line;
|
126
|
+
layout_line_path(VALUE self, VALUE line)
|
139
127
|
{
|
140
128
|
pango_cairo_layout_line_path(RVAL2CRCONTEXT(self), RVAL2LINE(line));
|
141
129
|
return self;
|
142
130
|
}
|
143
131
|
|
144
132
|
static VALUE
|
145
|
-
layout_path(self, layout)
|
146
|
-
VALUE self, layout;
|
133
|
+
layout_path(VALUE self, VALUE layout)
|
147
134
|
{
|
148
135
|
pango_cairo_layout_path(RVAL2CRCONTEXT(self), RVAL2LAYOUT(layout));
|
149
136
|
return self;
|
@@ -151,8 +138,7 @@ layout_path(self, layout)
|
|
151
138
|
|
152
139
|
#if PANGO_CHECK_VERSION(1,14,0)
|
153
140
|
static VALUE
|
154
|
-
error_underline_path(self, x, y, width, height)
|
155
|
-
VALUE self, x, y, width, height;
|
141
|
+
error_underline_path(VALUE self, VALUE x, VALUE y, VALUE width, VALUE height)
|
156
142
|
{
|
157
143
|
pango_cairo_error_underline_path(RVAL2CRCONTEXT(self),
|
158
144
|
NUM2DBL(x), NUM2DBL(y),
|
data/ext/pango/rbpangocolor.c
CHANGED
@@ -14,8 +14,7 @@
|
|
14
14
|
#define _SELF(self) ((PangoColor*)RVAL2BOXED(self, PANGO_TYPE_COLOR))
|
15
15
|
|
16
16
|
static VALUE
|
17
|
-
color_initialize(self, red, green, blue)
|
18
|
-
VALUE self, red, green, blue;
|
17
|
+
color_initialize(VALUE self, VALUE red, VALUE green, VALUE blue)
|
19
18
|
{
|
20
19
|
PangoColor c;
|
21
20
|
c.red = NUM2INT(red);
|
@@ -27,63 +26,52 @@ color_initialize(self, red, green, blue)
|
|
27
26
|
}
|
28
27
|
|
29
28
|
static VALUE
|
30
|
-
color_parse(self, spec)
|
31
|
-
VALUE self, spec;
|
29
|
+
color_parse(VALUE self, VALUE spec)
|
32
30
|
{
|
33
31
|
return CBOOL2RVAL(pango_color_parse(_SELF(self), RVAL2CSTR(spec)));
|
34
32
|
}
|
35
33
|
|
36
34
|
static VALUE
|
37
|
-
color_red(self)
|
38
|
-
VALUE self;
|
35
|
+
color_red(VALUE self)
|
39
36
|
{
|
40
37
|
return INT2FIX(_SELF(self)->red);
|
41
38
|
}
|
42
39
|
|
43
40
|
static VALUE
|
44
|
-
color_set_red(self, red)
|
45
|
-
VALUE self;
|
46
|
-
VALUE red;
|
41
|
+
color_set_red(VALUE self, VALUE red)
|
47
42
|
{
|
48
43
|
_SELF(self)->red = NUM2INT(red);
|
49
44
|
return self;
|
50
45
|
}
|
51
46
|
|
52
47
|
static VALUE
|
53
|
-
color_green(self)
|
54
|
-
VALUE self;
|
48
|
+
color_green(VALUE self)
|
55
49
|
{
|
56
50
|
return INT2FIX(_SELF(self)->green);
|
57
51
|
}
|
58
52
|
|
59
53
|
static VALUE
|
60
|
-
color_set_green(self, green)
|
61
|
-
VALUE self;
|
62
|
-
VALUE green;
|
54
|
+
color_set_green(VALUE self, VALUE green)
|
63
55
|
{
|
64
56
|
_SELF(self)->green = NUM2INT(green);
|
65
57
|
return self;
|
66
58
|
}
|
67
59
|
|
68
60
|
static VALUE
|
69
|
-
color_blue(self)
|
70
|
-
VALUE self;
|
61
|
+
color_blue(VALUE self)
|
71
62
|
{
|
72
63
|
return INT2FIX(_SELF(self)->blue);
|
73
64
|
}
|
74
65
|
|
75
66
|
static VALUE
|
76
|
-
color_set_blue(self, blue)
|
77
|
-
VALUE self;
|
78
|
-
VALUE blue;
|
67
|
+
color_set_blue(VALUE self, VALUE blue)
|
79
68
|
{
|
80
69
|
_SELF(self)->blue = NUM2INT(blue);
|
81
70
|
return self;
|
82
71
|
}
|
83
72
|
|
84
73
|
static VALUE
|
85
|
-
color_to_a(self)
|
86
|
-
VALUE self;
|
74
|
+
color_to_a(VALUE self)
|
87
75
|
{
|
88
76
|
PangoColor *c = _SELF(self);
|
89
77
|
return rb_ary_new3(3, INT2FIX(c->red),
|
@@ -91,8 +79,7 @@ color_to_a(self)
|
|
91
79
|
}
|
92
80
|
|
93
81
|
static VALUE
|
94
|
-
color_equal(self, other)
|
95
|
-
VALUE self, other;
|
82
|
+
color_equal(VALUE self, VALUE other)
|
96
83
|
{
|
97
84
|
PangoColor* c1 = _SELF(self);
|
98
85
|
PangoColor* c2 = _SELF(other);
|
data/ext/pango/rbpangocontext.c
CHANGED
@@ -16,10 +16,7 @@
|
|
16
16
|
#define RVAL2LANG(v) ((PangoLanguage*)RVAL2BOXED(v, PANGO_TYPE_LANGUAGE))
|
17
17
|
|
18
18
|
static VALUE
|
19
|
-
rcontext_itemize(argc, argv, self)
|
20
|
-
int argc;
|
21
|
-
VALUE *argv;
|
22
|
-
VALUE self;
|
19
|
+
rcontext_itemize(int argc, VALUE *argv, VALUE self)
|
23
20
|
{
|
24
21
|
VALUE arg1, arg2, arg3, arg4, arg5, arg6;
|
25
22
|
GList* list;
|
@@ -61,16 +58,14 @@ GList* pango_reorder_items (GList *logical_items);
|
|
61
58
|
|
62
59
|
#ifdef PANGO_ENABLE_BACKEND
|
63
60
|
static VALUE
|
64
|
-
rcontext_initialize(self)
|
65
|
-
VALUE self;
|
61
|
+
rcontext_initialize(VALUE self)
|
66
62
|
{
|
67
63
|
G_INITIALIZE(self, pango_context_new());
|
68
64
|
return Qnil;
|
69
65
|
}
|
70
66
|
|
71
67
|
static VALUE
|
72
|
-
rcontext_set_font_map(self, font_map)
|
73
|
-
VALUE self, font_map;
|
68
|
+
rcontext_set_font_map(VALUE self, VALUE font_map)
|
74
69
|
{
|
75
70
|
pango_context_set_font_map(_SELF(self), PANGO_FONT_MAP(RVAL2GOBJ(font_map)));
|
76
71
|
return self;
|
@@ -78,8 +73,7 @@ rcontext_set_font_map(self, font_map)
|
|
78
73
|
|
79
74
|
#if PANGO_CHECK_VERSION(1,6,0)
|
80
75
|
static VALUE
|
81
|
-
rcontext_get_font_map(self)
|
82
|
-
VALUE self;
|
76
|
+
rcontext_get_font_map(VALUE self)
|
83
77
|
{
|
84
78
|
return GOBJ2RVAL(pango_context_get_font_map(_SELF(self)));
|
85
79
|
}
|
@@ -87,32 +81,28 @@ rcontext_get_font_map(self)
|
|
87
81
|
#endif /* PANGO_ENABLE_BACKEND */
|
88
82
|
|
89
83
|
static VALUE
|
90
|
-
rcontext_get_font_description(self)
|
91
|
-
VALUE self;
|
84
|
+
rcontext_get_font_description(VALUE self)
|
92
85
|
{
|
93
86
|
PangoFontDescription* ret = pango_context_get_font_description(_SELF(self));
|
94
87
|
return BOXED2RVAL(ret, PANGO_TYPE_FONT_DESCRIPTION);
|
95
88
|
}
|
96
89
|
|
97
90
|
static VALUE
|
98
|
-
rcontext_set_font_description(self, desc)
|
99
|
-
VALUE self, desc;
|
91
|
+
rcontext_set_font_description(VALUE self, VALUE desc)
|
100
92
|
{
|
101
93
|
pango_context_set_font_description(_SELF(self), RVAL2DESC(desc));
|
102
94
|
return self;
|
103
95
|
}
|
104
96
|
|
105
97
|
static VALUE
|
106
|
-
rcontext_get_language(self)
|
107
|
-
VALUE self;
|
98
|
+
rcontext_get_language(VALUE self)
|
108
99
|
{
|
109
100
|
PangoLanguage* ret = pango_context_get_language(_SELF(self));
|
110
101
|
return BOXED2RVAL(ret, PANGO_TYPE_LANGUAGE);
|
111
102
|
}
|
112
103
|
|
113
104
|
static VALUE
|
114
|
-
rcontext_set_language(self, lang)
|
115
|
-
VALUE self, lang;
|
105
|
+
rcontext_set_language(VALUE self, VALUE lang)
|
116
106
|
{
|
117
107
|
pango_context_set_language(_SELF(self),
|
118
108
|
RVAL2LANG(lang));
|
@@ -120,15 +110,13 @@ rcontext_set_language(self, lang)
|
|
120
110
|
}
|
121
111
|
|
122
112
|
static VALUE
|
123
|
-
rcontext_get_base_dir(self)
|
124
|
-
VALUE self;
|
113
|
+
rcontext_get_base_dir(VALUE self)
|
125
114
|
{
|
126
115
|
return GENUM2RVAL(pango_context_get_base_dir(_SELF(self)), PANGO_TYPE_DIRECTION);
|
127
116
|
}
|
128
117
|
|
129
118
|
static VALUE
|
130
|
-
rcontext_set_base_dir(self, direction)
|
131
|
-
VALUE self, direction;
|
119
|
+
rcontext_set_base_dir(VALUE self, VALUE direction)
|
132
120
|
{
|
133
121
|
pango_context_set_base_dir(_SELF(self), RVAL2GENUM(direction, PANGO_TYPE_DIRECTION));
|
134
122
|
return self;
|
@@ -164,16 +152,14 @@ rcontext_set_gravity_hint(VALUE self, VALUE gravity_hint)
|
|
164
152
|
|
165
153
|
#if PANGO_CHECK_VERSION(1,6,0)
|
166
154
|
static VALUE
|
167
|
-
rcontext_get_matrix(self)
|
168
|
-
VALUE self;
|
155
|
+
rcontext_get_matrix(VALUE self)
|
169
156
|
{
|
170
157
|
const PangoMatrix* matrix = pango_context_get_matrix(_SELF(self));
|
171
158
|
return BOXED2RVAL((PangoMatrix*)matrix, PANGO_TYPE_MATRIX);
|
172
159
|
}
|
173
160
|
|
174
161
|
static VALUE
|
175
|
-
rcontext_set_matrix(self, matrix)
|
176
|
-
VALUE self, matrix;
|
162
|
+
rcontext_set_matrix(VALUE self, VALUE matrix)
|
177
163
|
{
|
178
164
|
pango_context_set_matrix(_SELF(self),
|
179
165
|
(PangoMatrix*)RVAL2BOXED(matrix, PANGO_TYPE_MATRIX));
|
@@ -182,25 +168,20 @@ rcontext_set_matrix(self, matrix)
|
|
182
168
|
#endif
|
183
169
|
|
184
170
|
static VALUE
|
185
|
-
rcontext_load_font(self, desc)
|
186
|
-
VALUE self, desc;
|
171
|
+
rcontext_load_font(VALUE self, VALUE desc)
|
187
172
|
{
|
188
173
|
return GOBJ2RVAL(pango_context_load_font(_SELF(self), RVAL2DESC(desc)));
|
189
174
|
}
|
190
175
|
|
191
176
|
static VALUE
|
192
|
-
rcontext_load_fontset(self, desc, lang)
|
193
|
-
VALUE self, desc, lang;
|
177
|
+
rcontext_load_fontset(VALUE self, VALUE desc, VALUE lang)
|
194
178
|
{
|
195
179
|
return GOBJ2RVAL(pango_context_load_fontset(_SELF(self),
|
196
180
|
RVAL2DESC(desc), RVAL2LANG(lang)));
|
197
181
|
}
|
198
182
|
|
199
183
|
static VALUE
|
200
|
-
rcontext_get_metrics(argc, argv, self)
|
201
|
-
int argc;
|
202
|
-
VALUE *argv;
|
203
|
-
VALUE self;
|
184
|
+
rcontext_get_metrics(int argc, VALUE *argv, VALUE self)
|
204
185
|
{
|
205
186
|
VALUE desc, lang;
|
206
187
|
|
@@ -213,8 +194,7 @@ rcontext_get_metrics(argc, argv, self)
|
|
213
194
|
}
|
214
195
|
|
215
196
|
static VALUE
|
216
|
-
rcontext_list_families(self)
|
217
|
-
VALUE self;
|
197
|
+
rcontext_list_families(VALUE self)
|
218
198
|
{
|
219
199
|
int n_families;
|
220
200
|
PangoFontFamily** families;
|
@@ -237,8 +217,7 @@ rcontext_list_families(self)
|
|
237
217
|
#if PANGO_CHECK_VERSION(1,10,0)
|
238
218
|
# if HAVE_RB_CAIRO_H
|
239
219
|
static VALUE
|
240
|
-
rcontext_set_font_options(self, options)
|
241
|
-
VALUE self, options;
|
220
|
+
rcontext_set_font_options(VALUE self, VALUE options)
|
242
221
|
{
|
243
222
|
if (NIL_P(options))
|
244
223
|
pango_cairo_context_set_font_options(_SELF(self), NULL);
|
@@ -249,8 +228,7 @@ rcontext_set_font_options(self, options)
|
|
249
228
|
}
|
250
229
|
|
251
230
|
static VALUE
|
252
|
-
rcontext_get_font_options(self)
|
253
|
-
VALUE self;
|
231
|
+
rcontext_get_font_options(VALUE self)
|
254
232
|
{
|
255
233
|
const cairo_font_options_t *options;
|
256
234
|
options = pango_cairo_context_get_font_options(_SELF(self));
|
@@ -261,16 +239,14 @@ rcontext_get_font_options(self)
|
|
261
239
|
}
|
262
240
|
|
263
241
|
static VALUE
|
264
|
-
rcontext_set_resolution(self, dpi)
|
265
|
-
VALUE self, dpi;
|
242
|
+
rcontext_set_resolution(VALUE self, VALUE dpi)
|
266
243
|
{
|
267
244
|
pango_cairo_context_set_resolution(_SELF(self), NUM2DBL(dpi));
|
268
245
|
return self;
|
269
246
|
}
|
270
247
|
|
271
248
|
static VALUE
|
272
|
-
rcontext_get_resolution(self)
|
273
|
-
VALUE self;
|
249
|
+
rcontext_get_resolution(VALUE self)
|
274
250
|
{
|
275
251
|
return rb_float_new(pango_cairo_context_get_resolution(_SELF(self)));
|
276
252
|
}
|
@@ -279,8 +255,7 @@ rcontext_get_resolution(self)
|
|
279
255
|
|
280
256
|
|
281
257
|
static VALUE
|
282
|
-
rcontext_list_families_old(self)
|
283
|
-
VALUE self;
|
258
|
+
rcontext_list_families_old(VALUE self)
|
284
259
|
{
|
285
260
|
rb_warn("Deprecated. Use Pango::Context#families instead.");
|
286
261
|
return rcontext_list_families(self);
|