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
@@ -16,8 +16,7 @@
|
|
16
16
|
/**********************************/
|
17
17
|
#ifndef HAVE_PANGO_LAYOUT_ITER_GET_TYPE
|
18
18
|
static PangoLayoutIter*
|
19
|
-
layout_iter_copy(ref)
|
20
|
-
const PangoLayoutIter* ref;
|
19
|
+
layout_iter_copy(const PangoLayoutIter *ref)
|
21
20
|
{
|
22
21
|
#if PANGO_CHECK_VERSION(1,6,0)
|
23
22
|
PangoLayoutIter* new_ref;
|
@@ -47,72 +46,62 @@ pango_layout_iter_get_type(void)
|
|
47
46
|
/**********************************/
|
48
47
|
|
49
48
|
static VALUE
|
50
|
-
layout_iter_next_run(self)
|
51
|
-
VALUE self;
|
49
|
+
layout_iter_next_run(VALUE self)
|
52
50
|
{
|
53
51
|
return CBOOL2RVAL(pango_layout_iter_next_run(_SELF(self)));
|
54
52
|
}
|
55
53
|
|
56
54
|
static VALUE
|
57
|
-
layout_iter_next_char(self)
|
58
|
-
VALUE self;
|
55
|
+
layout_iter_next_char(VALUE self)
|
59
56
|
{
|
60
57
|
return CBOOL2RVAL(pango_layout_iter_next_char(_SELF(self)));
|
61
58
|
}
|
62
59
|
|
63
60
|
static VALUE
|
64
|
-
layout_iter_next_cluster(self)
|
65
|
-
VALUE self;
|
61
|
+
layout_iter_next_cluster(VALUE self)
|
66
62
|
{
|
67
63
|
return CBOOL2RVAL(pango_layout_iter_next_cluster(_SELF(self)));
|
68
64
|
}
|
69
65
|
|
70
66
|
static VALUE
|
71
|
-
layout_iter_next_line(self)
|
72
|
-
VALUE self;
|
67
|
+
layout_iter_next_line(VALUE self)
|
73
68
|
{
|
74
69
|
return CBOOL2RVAL(pango_layout_iter_next_line(_SELF(self)));
|
75
70
|
}
|
76
71
|
|
77
72
|
static VALUE
|
78
|
-
layout_iter_at_last_line(self)
|
79
|
-
VALUE self;
|
73
|
+
layout_iter_at_last_line(VALUE self)
|
80
74
|
{
|
81
75
|
return CBOOL2RVAL(pango_layout_iter_at_last_line(_SELF(self)));
|
82
76
|
}
|
83
77
|
|
84
78
|
static VALUE
|
85
|
-
layout_iter_get_index(self)
|
86
|
-
VALUE self;
|
79
|
+
layout_iter_get_index(VALUE self)
|
87
80
|
{
|
88
81
|
return INT2NUM(pango_layout_iter_get_index(_SELF(self)));
|
89
82
|
}
|
90
83
|
|
91
84
|
static VALUE
|
92
|
-
layout_iter_get_baseline(self)
|
93
|
-
VALUE self;
|
85
|
+
layout_iter_get_baseline(VALUE self)
|
94
86
|
{
|
95
87
|
return INT2NUM(pango_layout_iter_get_baseline(_SELF(self)));
|
96
88
|
}
|
97
89
|
|
98
90
|
static VALUE
|
99
|
-
layout_iter_get_run(self)
|
100
|
-
VALUE self;
|
91
|
+
layout_iter_get_run(VALUE self)
|
101
92
|
{
|
102
93
|
PangoLayoutRun* run = pango_layout_iter_get_run(_SELF(self));
|
103
94
|
return BOXED2RVAL(run, PANGO_TYPE_GLYPH_ITEM);
|
104
95
|
}
|
105
96
|
|
106
97
|
static VALUE
|
107
|
-
layout_iter_get_line(self)
|
108
|
-
VALUE self;
|
98
|
+
layout_iter_get_line(VALUE self)
|
109
99
|
{
|
110
100
|
return BOXED2RVAL(pango_layout_iter_get_line(_SELF(self)), PANGO_TYPE_LAYOUT_LINE);
|
111
101
|
}
|
112
102
|
|
113
103
|
static VALUE
|
114
|
-
layout_iter_get_char_extents(self)
|
115
|
-
VALUE self;
|
104
|
+
layout_iter_get_char_extents(VALUE self)
|
116
105
|
{
|
117
106
|
PangoRectangle logical_rect;
|
118
107
|
|
@@ -121,8 +110,7 @@ layout_iter_get_char_extents(self)
|
|
121
110
|
}
|
122
111
|
|
123
112
|
static VALUE
|
124
|
-
layout_iter_get_cluster_extents(self)
|
125
|
-
VALUE self;
|
113
|
+
layout_iter_get_cluster_extents(VALUE self)
|
126
114
|
{
|
127
115
|
PangoRectangle ink_rect, logical_rect;
|
128
116
|
|
@@ -133,8 +121,7 @@ layout_iter_get_cluster_extents(self)
|
|
133
121
|
}
|
134
122
|
|
135
123
|
static VALUE
|
136
|
-
layout_iter_get_run_extents(self)
|
137
|
-
VALUE self;
|
124
|
+
layout_iter_get_run_extents(VALUE self)
|
138
125
|
{
|
139
126
|
PangoRectangle ink_rect, logical_rect;
|
140
127
|
|
@@ -145,8 +132,7 @@ layout_iter_get_run_extents(self)
|
|
145
132
|
}
|
146
133
|
|
147
134
|
static VALUE
|
148
|
-
layout_iter_get_line_yrange(self)
|
149
|
-
VALUE self;
|
135
|
+
layout_iter_get_line_yrange(VALUE self)
|
150
136
|
{
|
151
137
|
int y0, y1;
|
152
138
|
pango_layout_iter_get_line_yrange(_SELF(self), &y0, &y1);
|
@@ -154,8 +140,7 @@ layout_iter_get_line_yrange(self)
|
|
154
140
|
}
|
155
141
|
|
156
142
|
static VALUE
|
157
|
-
layout_iter_get_line_extents(self)
|
158
|
-
VALUE self;
|
143
|
+
layout_iter_get_line_extents(VALUE self)
|
159
144
|
{
|
160
145
|
PangoRectangle ink_rect, logical_rect;
|
161
146
|
|
@@ -165,8 +150,7 @@ layout_iter_get_line_extents(self)
|
|
165
150
|
BOXED2RVAL(&logical_rect, PANGO_TYPE_RECTANGLE));
|
166
151
|
}
|
167
152
|
static VALUE
|
168
|
-
layout_iter_get_layout_extents(self)
|
169
|
-
VALUE self;
|
153
|
+
layout_iter_get_layout_extents(VALUE self)
|
170
154
|
{
|
171
155
|
PangoRectangle ink_rect, logical_rect;
|
172
156
|
|
@@ -17,8 +17,7 @@
|
|
17
17
|
/**********************************/
|
18
18
|
#if !PANGO_CHECK_VERSION(1,9,0)
|
19
19
|
static PangoLayoutLine*
|
20
|
-
layout_line_copy(ref)
|
21
|
-
PangoLayoutLine* ref;
|
20
|
+
layout_line_copy(PangoLayoutLine *ref)
|
22
21
|
{
|
23
22
|
g_return_val_if_fail (ref != NULL, NULL);
|
24
23
|
pango_layout_line_ref(ref);
|
@@ -40,8 +39,7 @@ pango_layout_line_get_type(void)
|
|
40
39
|
/**********************************/
|
41
40
|
|
42
41
|
static VALUE
|
43
|
-
layout_line_get_extents(self)
|
44
|
-
VALUE self;
|
42
|
+
layout_line_get_extents(VALUE self)
|
45
43
|
{
|
46
44
|
PangoRectangle ink_rect, logical_rect;
|
47
45
|
|
@@ -52,8 +50,7 @@ layout_line_get_extents(self)
|
|
52
50
|
}
|
53
51
|
|
54
52
|
static VALUE
|
55
|
-
layout_line_get_pixel_extents(self)
|
56
|
-
VALUE self;
|
53
|
+
layout_line_get_pixel_extents(VALUE self)
|
57
54
|
{
|
58
55
|
PangoRectangle ink_rect, logical_rect;
|
59
56
|
|
@@ -64,8 +61,7 @@ layout_line_get_pixel_extents(self)
|
|
64
61
|
}
|
65
62
|
|
66
63
|
static VALUE
|
67
|
-
layout_line_index_to_x(self, index, trailing)
|
68
|
-
VALUE self, index, trailing;
|
64
|
+
layout_line_index_to_x(VALUE self, VALUE index, VALUE trailing)
|
69
65
|
{
|
70
66
|
int x_pos;
|
71
67
|
pango_layout_line_index_to_x(_SELF(self), NUM2INT(index),
|
@@ -74,8 +70,7 @@ layout_line_index_to_x(self, index, trailing)
|
|
74
70
|
}
|
75
71
|
|
76
72
|
static VALUE
|
77
|
-
layout_line_x_to_index(self, x_pos)
|
78
|
-
VALUE self, x_pos;
|
73
|
+
layout_line_x_to_index(VALUE self, VALUE x_pos)
|
79
74
|
{
|
80
75
|
int index, trailing;
|
81
76
|
|
@@ -85,8 +80,7 @@ layout_line_x_to_index(self, x_pos)
|
|
85
80
|
}
|
86
81
|
|
87
82
|
static VALUE
|
88
|
-
layout_line_get_x_ranges(self, start_index, end_index)
|
89
|
-
VALUE self, start_index, end_index;
|
83
|
+
layout_line_get_x_ranges(VALUE self, VALUE start_index, VALUE end_index)
|
90
84
|
{
|
91
85
|
int* ranges;
|
92
86
|
int i, n_ranges;
|
@@ -106,45 +100,39 @@ layout_line_get_x_ranges(self, start_index, end_index)
|
|
106
100
|
|
107
101
|
/* Structure members */
|
108
102
|
static VALUE
|
109
|
-
layout_line_get_layout(self)
|
110
|
-
VALUE self;
|
103
|
+
layout_line_get_layout(VALUE self)
|
111
104
|
{
|
112
105
|
return GOBJ2RVAL(_SELF(self)->layout);
|
113
106
|
}
|
114
107
|
|
115
108
|
static VALUE
|
116
|
-
layout_line_set_layout(self, val)
|
117
|
-
VALUE self, val;
|
109
|
+
layout_line_set_layout(VALUE self, VALUE val)
|
118
110
|
{
|
119
111
|
_SELF(self)->layout = PANGO_LAYOUT(RVAL2GOBJ(val));
|
120
112
|
return self;
|
121
113
|
}
|
122
114
|
|
123
115
|
static VALUE
|
124
|
-
layout_line_get_start_index(self)
|
125
|
-
VALUE self;
|
116
|
+
layout_line_get_start_index(VALUE self)
|
126
117
|
{
|
127
118
|
return INT2NUM(_SELF(self)->start_index);
|
128
119
|
}
|
129
120
|
|
130
121
|
static VALUE
|
131
|
-
layout_line_set_start_index(self, val)
|
132
|
-
VALUE self, val;
|
122
|
+
layout_line_set_start_index(VALUE self, VALUE val)
|
133
123
|
{
|
134
124
|
_SELF(self)->start_index = NUM2INT(val);
|
135
125
|
return self;
|
136
126
|
}
|
137
127
|
|
138
128
|
static VALUE
|
139
|
-
layout_line_get_length(self)
|
140
|
-
VALUE self;
|
129
|
+
layout_line_get_length(VALUE self)
|
141
130
|
{
|
142
131
|
return INT2NUM(_SELF(self)->length);
|
143
132
|
}
|
144
133
|
|
145
134
|
static VALUE
|
146
|
-
layout_line_set_length(self, val)
|
147
|
-
VALUE self, val;
|
135
|
+
layout_line_set_length(VALUE self, VALUE val)
|
148
136
|
{
|
149
137
|
_SELF(self)->length = NUM2INT(val);
|
150
138
|
return self;
|
@@ -152,8 +140,7 @@ layout_line_set_length(self, val)
|
|
152
140
|
|
153
141
|
#if PANGO_CHECK_VERSION(1,2,0)
|
154
142
|
static VALUE
|
155
|
-
layout_line_get_runs(self)
|
156
|
-
VALUE self;
|
143
|
+
layout_line_get_runs(VALUE self)
|
157
144
|
{
|
158
145
|
GSList* list = _SELF(self)->runs;
|
159
146
|
VALUE ary = rb_ary_new();
|
@@ -172,8 +159,7 @@ layout_line_get_runs(self)
|
|
172
159
|
#endif
|
173
160
|
|
174
161
|
static VALUE
|
175
|
-
layout_line_set_runs(self, ary)
|
176
|
-
VALUE self, ary;
|
162
|
+
layout_line_set_runs(VALUE self, VALUE ary)
|
177
163
|
{
|
178
164
|
int i, len;
|
179
165
|
GSList* list = NULL;
|
@@ -195,30 +181,26 @@ layout_line_set_runs(self, ary)
|
|
195
181
|
|
196
182
|
#if PANGO_CHECK_VERSION(1,4,0)
|
197
183
|
static VALUE
|
198
|
-
layout_line_is_paragraph_start(self)
|
199
|
-
VALUE self;
|
184
|
+
layout_line_is_paragraph_start(VALUE self)
|
200
185
|
{
|
201
186
|
return CBOOL2RVAL(_SELF(self)->is_paragraph_start);
|
202
187
|
}
|
203
188
|
|
204
189
|
static VALUE
|
205
|
-
layout_line_set_paragraph_start(self, val)
|
206
|
-
VALUE self, val;
|
190
|
+
layout_line_set_paragraph_start(VALUE self, VALUE val)
|
207
191
|
{
|
208
192
|
_SELF(self)->is_paragraph_start = RVAL2CBOOL(val);
|
209
193
|
return self;
|
210
194
|
}
|
211
195
|
|
212
196
|
static VALUE
|
213
|
-
layout_line_get_resolved_dir(self)
|
214
|
-
VALUE self;
|
197
|
+
layout_line_get_resolved_dir(VALUE self)
|
215
198
|
{
|
216
199
|
return UINT2NUM(_SELF(self)->resolved_dir);
|
217
200
|
}
|
218
201
|
|
219
202
|
static VALUE
|
220
|
-
layout_line_set_resolved_dir(self, val)
|
221
|
-
VALUE self, val;
|
203
|
+
layout_line_set_resolved_dir(VALUE self, VALUE val)
|
222
204
|
{
|
223
205
|
_SELF(self)->resolved_dir = NUM2UINT(val);
|
224
206
|
return self;
|
data/ext/pango/rbpangologattr.c
CHANGED
@@ -39,22 +39,19 @@ pango_log_attr_get_type(void)
|
|
39
39
|
|
40
40
|
#define ATTR_BOOL(name)\
|
41
41
|
static VALUE \
|
42
|
-
log_get_ ## name (self)\
|
43
|
-
VALUE self;\
|
42
|
+
log_get_ ## name (VALUE self)\
|
44
43
|
{\
|
45
44
|
return CBOOL2RVAL(_SELF(self)->name);\
|
46
45
|
}\
|
47
46
|
static VALUE \
|
48
|
-
log_set_ ## name (self, val)\
|
49
|
-
VALUE self, val;\
|
47
|
+
log_set_ ## name (VALUE self, VALUE val)\
|
50
48
|
{\
|
51
49
|
_SELF(self)->name = RVAL2CBOOL(val);\
|
52
50
|
return self;\
|
53
51
|
}
|
54
52
|
|
55
53
|
static VALUE
|
56
|
-
log_initialize(self)
|
57
|
-
VALUE self;
|
54
|
+
log_initialize(VALUE self)
|
58
55
|
{
|
59
56
|
PangoLogAttr log;
|
60
57
|
G_INITIALIZE(self, &log);
|
data/ext/pango/rbpangomain.c
CHANGED
@@ -16,8 +16,7 @@
|
|
16
16
|
*/
|
17
17
|
|
18
18
|
static VALUE
|
19
|
-
rpango_reorder_items(self, logical_items)
|
20
|
-
VALUE self, logical_items;
|
19
|
+
rpango_reorder_items(VALUE self, VALUE logical_items)
|
21
20
|
{
|
22
21
|
int i;
|
23
22
|
GList *glist = NULL;
|
@@ -37,15 +36,13 @@ rpango_reorder_items(self, logical_items)
|
|
37
36
|
|
38
37
|
#if PANGO_CHECK_VERSION(1,4,0)
|
39
38
|
static VALUE
|
40
|
-
rpango_unichar_direction(self, ch)
|
41
|
-
VALUE self, ch;
|
39
|
+
rpango_unichar_direction(VALUE self, VALUE ch)
|
42
40
|
{
|
43
41
|
return GENUM2RVAL(pango_unichar_direction(NUM2UINT(ch)), PANGO_TYPE_DIRECTION);
|
44
42
|
}
|
45
43
|
|
46
44
|
static VALUE
|
47
|
-
rpango_find_base_dir(self, text)
|
48
|
-
VALUE self, text;
|
45
|
+
rpango_find_base_dir(VALUE self, VALUE text)
|
49
46
|
{
|
50
47
|
StringValue(text);
|
51
48
|
return GENUM2RVAL(pango_find_base_dir(RVAL2CSTR(text), RSTRING_LEN(text)),
|
@@ -54,8 +51,7 @@ rpango_find_base_dir(self, text)
|
|
54
51
|
#endif
|
55
52
|
|
56
53
|
static VALUE
|
57
|
-
rpango_break(self, text, analysis)
|
58
|
-
VALUE self, text, analysis;
|
54
|
+
rpango_break(VALUE self, VALUE text, VALUE analysis)
|
59
55
|
{
|
60
56
|
gint i, len;
|
61
57
|
glong attrs_len;
|
@@ -82,8 +78,7 @@ rpango_break(self, text, analysis)
|
|
82
78
|
}
|
83
79
|
|
84
80
|
static VALUE
|
85
|
-
rpango_get_log_attrs(self, text, level, language)
|
86
|
-
VALUE self, text, level, language;
|
81
|
+
rpango_get_log_attrs(VALUE self, VALUE text, VALUE level, VALUE language)
|
87
82
|
{
|
88
83
|
gint i, len;
|
89
84
|
glong attrs_len;
|
@@ -110,8 +105,7 @@ rpango_get_log_attrs(self, text, level, language)
|
|
110
105
|
}
|
111
106
|
|
112
107
|
static VALUE
|
113
|
-
rpango_find_paragraph_boundary(self, text)
|
114
|
-
VALUE self, text;
|
108
|
+
rpango_find_paragraph_boundary(VALUE self, VALUE text)
|
115
109
|
{
|
116
110
|
gint paragraph_delimiter_index, next_paragraph_start;
|
117
111
|
|
@@ -132,8 +126,7 @@ void pango_default_break (const gchar *text,
|
|
132
126
|
*/
|
133
127
|
|
134
128
|
static VALUE
|
135
|
-
rpango_shape(self, text, analysis)
|
136
|
-
VALUE self, text, analysis;
|
129
|
+
rpango_shape(VALUE self, VALUE text, VALUE analysis)
|
137
130
|
{
|
138
131
|
VALUE ret;
|
139
132
|
PangoGlyphString* glyphs = pango_glyph_string_new();
|
@@ -146,10 +139,7 @@ rpango_shape(self, text, analysis)
|
|
146
139
|
|
147
140
|
/* This method is from rbpangoattribute.c */
|
148
141
|
static VALUE
|
149
|
-
rpango_parse_markup(argc, argv, self)
|
150
|
-
int argc;
|
151
|
-
VALUE *argv;
|
152
|
-
VALUE self;
|
142
|
+
rpango_parse_markup(int argc, VALUE *argv, VALUE self)
|
153
143
|
{
|
154
144
|
VALUE markup_text, accel_marker;
|
155
145
|
PangoAttrList *pattr_list;
|
@@ -187,8 +177,7 @@ rpango_parse_markup(argc, argv, self)
|
|
187
177
|
}
|
188
178
|
|
189
179
|
static VALUE
|
190
|
-
rpango_pixels(self, pixels)
|
191
|
-
VALUE self, pixels;
|
180
|
+
rpango_pixels(VALUE self, VALUE pixels)
|
192
181
|
{
|
193
182
|
return rb_float_new(PANGO_PIXELS(NUM2DBL(pixels)));
|
194
183
|
}
|
data/ext/pango/rbpangomatrix.c
CHANGED
@@ -16,14 +16,12 @@
|
|
16
16
|
|
17
17
|
#define ATTR_FLOAT(name)\
|
18
18
|
static VALUE \
|
19
|
-
matrix_get_ ## name (self)\
|
20
|
-
VALUE self;\
|
19
|
+
matrix_get_ ## name (VALUE self)\
|
21
20
|
{\
|
22
21
|
return rb_float_new(_SELF(self)->name);\
|
23
22
|
}\
|
24
23
|
static VALUE \
|
25
|
-
matrix_set_ ## name (self, val)\
|
26
|
-
VALUE self, val;\
|
24
|
+
matrix_set_ ## name (VALUE self, VALUE val)\
|
27
25
|
{\
|
28
26
|
_SELF(self)->name = NUM2DBL(val);\
|
29
27
|
return self;\
|
@@ -34,10 +32,7 @@ matrix_set_ ## name (self, val)\
|
|
34
32
|
rb_define_method(matrix, G_STRINGIFY(set_ ## name), matrix_set_## name, 1);
|
35
33
|
|
36
34
|
static VALUE
|
37
|
-
matrix_initialize(argc, argv, self)
|
38
|
-
int argc;
|
39
|
-
VALUE *argv;
|
40
|
-
VALUE self;
|
35
|
+
matrix_initialize(int argc, VALUE *argv, VALUE self)
|
41
36
|
{
|
42
37
|
PangoMatrix matrix = PANGO_MATRIX_INIT;
|
43
38
|
VALUE xx, xy, yx, yy, x0, y0;
|
@@ -57,24 +52,21 @@ matrix_initialize(argc, argv, self)
|
|
57
52
|
}
|
58
53
|
|
59
54
|
static VALUE
|
60
|
-
matrix_translate(self, tx, ty)
|
61
|
-
VALUE self, tx, ty;
|
55
|
+
matrix_translate(VALUE self, VALUE tx, VALUE ty)
|
62
56
|
{
|
63
57
|
pango_matrix_translate(_SELF(self), NUM2DBL(tx), NUM2DBL(ty));
|
64
58
|
return self;
|
65
59
|
}
|
66
60
|
|
67
61
|
static VALUE
|
68
|
-
matrix_scale(self, scale_x, scale_y)
|
69
|
-
VALUE self, scale_x, scale_y;
|
62
|
+
matrix_scale(VALUE self, VALUE scale_x, VALUE scale_y)
|
70
63
|
{
|
71
64
|
pango_matrix_scale(_SELF(self), NUM2DBL(scale_x), NUM2DBL(scale_y));
|
72
65
|
return self;
|
73
66
|
}
|
74
67
|
|
75
68
|
static VALUE
|
76
|
-
matrix_rotate(self, degrees)
|
77
|
-
VALUE self, degrees;
|
69
|
+
matrix_rotate(VALUE self, VALUE degrees)
|
78
70
|
{
|
79
71
|
pango_matrix_rotate(_SELF(self), NUM2DBL(degrees));
|
80
72
|
return self;
|
@@ -89,8 +81,7 @@ matrix_get_gravity(VALUE self)
|
|
89
81
|
#endif
|
90
82
|
|
91
83
|
static VALUE
|
92
|
-
matrix_concat(self, new_matrix)
|
93
|
-
VALUE self, new_matrix;
|
84
|
+
matrix_concat(VALUE self, VALUE new_matrix)
|
94
85
|
{
|
95
86
|
pango_matrix_concat(_SELF(self), _SELF(new_matrix));
|
96
87
|
return self;
|
@@ -98,8 +89,7 @@ matrix_concat(self, new_matrix)
|
|
98
89
|
|
99
90
|
#if PANGO_CHECK_VERSION(1,12,0)
|
100
91
|
static VALUE
|
101
|
-
matrix_get_font_scale_factor(self)
|
102
|
-
VALUE self;
|
92
|
+
matrix_get_font_scale_factor(VALUE self)
|
103
93
|
{
|
104
94
|
return rb_float_new(pango_matrix_get_font_scale_factor(_SELF(self)));
|
105
95
|
}
|
@@ -113,8 +103,7 @@ ATTR_FLOAT(x0);
|
|
113
103
|
ATTR_FLOAT(y0);
|
114
104
|
|
115
105
|
static VALUE
|
116
|
-
matrix_to_a(self)
|
117
|
-
VALUE self;
|
106
|
+
matrix_to_a(VALUE self)
|
118
107
|
{
|
119
108
|
PangoMatrix* matrix = _SELF(self);
|
120
109
|
return rb_ary_new3(6, INT2NUM(matrix->xx), INT2NUM(matrix->xy), INT2NUM(matrix->yx),
|