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.
@@ -16,33 +16,27 @@
16
16
  static ID id_call;
17
17
 
18
18
  static VALUE
19
- fontset_get_font(self, wc)
20
- VALUE self, wc;
19
+ fontset_get_font(VALUE self, VALUE wc)
21
20
  {
22
21
  return GOBJ2RVAL(pango_fontset_get_font(_SELF(self), NUM2UINT(wc)));
23
22
  }
24
23
 
25
24
  static VALUE
26
- fontset_get_metrics(self)
27
- VALUE self;
25
+ fontset_get_metrics(VALUE self)
28
26
  {
29
27
  return BOXED2RVAL(pango_fontset_get_metrics(_SELF(self)), PANGO_TYPE_FONT_METRICS);
30
28
  }
31
29
 
32
30
  #if PANGO_CHECK_VERSION(1,4,0)
33
31
  static gboolean
34
- fontset_each(fontset, font, func)
35
- PangoFontset* fontset;
36
- PangoFont* font;
37
- gpointer func;
32
+ fontset_each(PangoFontset *fontset, PangoFont *font, gpointer func)
38
33
  {
39
34
  return RVAL2CBOOL(rb_funcall((VALUE)func, id_call,
40
35
  2, GOBJ2RVAL(fontset), GOBJ2RVAL(font)));
41
36
  }
42
37
 
43
38
  static VALUE
44
- fontset_foreach(self)
45
- VALUE self;
39
+ fontset_foreach(VALUE self)
46
40
  {
47
41
  VALUE func = rb_block_proc();
48
42
  G_RELATIVE(self, func);
@@ -17,24 +17,21 @@
17
17
  #define RVAL2LANG(v) ((PangoLanguage*)RVAL2BOXED(v, PANGO_TYPE_LANGUAGE))
18
18
 
19
19
  static VALUE
20
- fontset_simple_initialize(self, lang)
21
- VALUE self, lang;
20
+ fontset_simple_initialize(VALUE self, VALUE lang)
22
21
  {
23
22
  G_INITIALIZE(self, pango_fontset_simple_new(RVAL2LANG(lang)));
24
23
  return Qnil;
25
24
  }
26
25
 
27
26
  static VALUE
28
- fontset_simple_append(self, font)
29
- VALUE self, font;
27
+ fontset_simple_append(VALUE self, VALUE font)
30
28
  {
31
29
  pango_fontset_simple_append(_SELF(self), PANGO_FONT(RVAL2GOBJ(font)));
32
30
  return self;
33
31
  }
34
32
 
35
33
  static VALUE
36
- fontset_simple_size(self)
37
- VALUE self;
34
+ fontset_simple_size(VALUE self)
38
35
  {
39
36
  return INT2NUM(pango_fontset_simple_size(_SELF(self)));
40
37
  }
@@ -39,31 +39,27 @@ pango_glyph_info_get_type(void)
39
39
  /**********************************/
40
40
 
41
41
  static VALUE
42
- gi_initialize(self)
43
- VALUE self;
42
+ gi_initialize(VALUE self)
44
43
  {
45
44
  G_INITIALIZE(self, g_new0(PangoGlyphInfo, 1));
46
45
  return Qnil;
47
46
  }
48
47
 
49
48
  static VALUE
50
- gi_glyph(self)
51
- VALUE self;
49
+ gi_glyph(VALUE self)
52
50
  {
53
51
  return UINT2NUM(_SELF(self)->glyph);
54
52
  }
55
53
 
56
54
  static VALUE
57
- gi_set_glyph(self, val)
58
- VALUE self, val;
55
+ gi_set_glyph(VALUE self, VALUE val)
59
56
  {
60
57
  _SELF(self)->glyph = NUM2UINT(val);
61
58
  return self;
62
59
  }
63
60
 
64
61
  static VALUE
65
- gi_geometry(self)
66
- VALUE self;
62
+ gi_geometry(VALUE self)
67
63
  {
68
64
  PangoGlyphGeometry geo = _SELF(self)->geometry;
69
65
 
@@ -72,8 +68,7 @@ gi_geometry(self)
72
68
  }
73
69
 
74
70
  static VALUE
75
- gi_set_geometry(self, width, x_offset, y_offset)
76
- VALUE self;
71
+ gi_set_geometry(VALUE self, VALUE width, VALUE x_offset, VALUE y_offset)
77
72
  {
78
73
  PangoGlyphGeometry geo = _SELF(self)->geometry;
79
74
 
@@ -88,15 +83,13 @@ gi_set_geometry(self, width, x_offset, y_offset)
88
83
  This method may be changed in the future following Pango implementation.
89
84
  */
90
85
  static VALUE
91
- gi_attr_is_cluster_start(self)
92
- VALUE self;
86
+ gi_attr_is_cluster_start(VALUE self)
93
87
  {
94
88
  return CBOOL2RVAL(_SELF(self)->attr.is_cluster_start);
95
89
  }
96
90
 
97
91
  static VALUE
98
- gi_attr_set_is_cluster_start(self, val)
99
- VALUE self, val;
92
+ gi_attr_set_is_cluster_start(VALUE self, VALUE val)
100
93
  {
101
94
  _SELF(self)->attr.is_cluster_start = RVAL2CBOOL(val);
102
95
  return self;
@@ -17,8 +17,7 @@
17
17
  /**********************************/
18
18
  #ifndef HAVE_PANGO_GLYPH_ITEM_GET_TYPE
19
19
  static PangoGlyphItem*
20
- glyph_item_copy(ref)
21
- const PangoGlyphItem* ref;
20
+ glyph_item_copy(const PangoGlyphItem *ref)
22
21
  {
23
22
  PangoGlyphItem* new_ref;
24
23
  g_return_val_if_fail (ref != NULL, NULL);
@@ -54,32 +53,28 @@ pango_glyph_item_get_type(void)
54
53
  /**********************************/
55
54
 
56
55
  static VALUE
57
- glyph_item_get_item(self)
58
- VALUE self;
56
+ glyph_item_get_item(VALUE self)
59
57
  {
60
58
  PangoItem* item = _SELF(self)->item;
61
59
  return BOXED2RVAL(item, PANGO_TYPE_ITEM);
62
60
  }
63
61
 
64
62
  static VALUE
65
- glyph_item_get_glyphs(self)
66
- VALUE self;
63
+ glyph_item_get_glyphs(VALUE self)
67
64
  {
68
65
  PangoGlyphString* glyphs = _SELF(self)->glyphs;
69
66
  return BOXED2RVAL(glyphs, PANGO_TYPE_GLYPH_STRING);
70
67
  }
71
68
 
72
69
  static VALUE
73
- glyph_item_split(self, text, split_index)
74
- VALUE self, text, split_index;
70
+ glyph_item_split(VALUE self, VALUE text, VALUE split_index)
75
71
  {
76
72
  return BOXED2RVAL(pango_glyph_item_split(_SELF(self), RVAL2CSTR(text),
77
73
  NUM2INT(split_index)), PANGO_TYPE_GLYPH_ITEM);
78
74
  }
79
75
 
80
76
  static VALUE
81
- glyph_item_apply_attrs(self, text, attrs)
82
- VALUE self, text, attrs;
77
+ glyph_item_apply_attrs(VALUE self, VALUE text, VALUE attrs)
83
78
  {
84
79
  GSList* list = pango_glyph_item_apply_attrs(_SELF(self), RVAL2CSTR(text),
85
80
  (PangoAttrList*)RVAL2BOXED(attrs, PANGO_TYPE_ATTR_LIST));
@@ -98,8 +93,7 @@ glyph_item_apply_attrs(self, text, attrs)
98
93
 
99
94
  #if PANGO_CHECK_VERSION(1,6,0)
100
95
  static VALUE
101
- glyph_item_letter_space(self, text, log_attrs, letter_spacing)
102
- VALUE self, text, log_attrs, letter_spacing;
96
+ glyph_item_letter_space(VALUE self, VALUE text, VALUE log_attrs, VALUE letter_spacing)
103
97
  {
104
98
  pango_glyph_item_letter_space(_SELF(self), RVAL2CSTR(text),
105
99
  (PangoLogAttr*)RVAL2BOXED(log_attrs, PANGO_TYPE_LOG_ATTR),
@@ -14,26 +14,21 @@
14
14
  #define _SELF(self) ((PangoGlyphString*)(RVAL2BOXED(self, PANGO_TYPE_GLYPH_STRING)))
15
15
 
16
16
  static VALUE
17
- rglyph_initialize(self)
18
- VALUE self;
17
+ rglyph_initialize(VALUE self)
19
18
  {
20
19
  G_INITIALIZE(self, pango_glyph_string_new());
21
20
  return Qnil;
22
21
  }
23
22
 
24
23
  static VALUE
25
- rglyph_set_size(self, len)
26
- VALUE self, len;
24
+ rglyph_set_size(VALUE self, VALUE len)
27
25
  {
28
26
  pango_glyph_string_set_size(_SELF(self), NUM2INT(len));
29
27
  return self;
30
28
  }
31
29
 
32
30
  static VALUE
33
- rglyph_extents(argc, argv, self)
34
- int argc;
35
- VALUE *argv;
36
- VALUE self;
31
+ rglyph_extents(int argc, VALUE *argv, VALUE self)
37
32
  {
38
33
  VALUE font, start_index, end_index;
39
34
  PangoRectangle ink_rect;
@@ -58,16 +53,14 @@ rglyph_extents(argc, argv, self)
58
53
 
59
54
  #if PANGO_CHECK_VERSION(1,14,0)
60
55
  static VALUE
61
- rglyph_get_width(self)
62
- VALUE self;
56
+ rglyph_get_width(VALUE self)
63
57
  {
64
58
  return INT2NUM(pango_glyph_string_get_width(_SELF(self)));
65
59
  }
66
60
  #endif
67
61
 
68
62
  static VALUE
69
- rglyph_index_to_x(self, text, analysis, index, trailing)
70
- VALUE self, text, analysis, index, trailing;
63
+ rglyph_index_to_x(VALUE self, VALUE text, VALUE analysis, VALUE index, VALUE trailing)
71
64
  {
72
65
  int x_pos;
73
66
  StringValue(text);
@@ -82,8 +75,7 @@ rglyph_index_to_x(self, text, analysis, index, trailing)
82
75
  }
83
76
 
84
77
  static VALUE
85
- rglyph_x_to_index(self, text, analysis, x_pos)
86
- VALUE self, text, analysis, x_pos;
78
+ rglyph_x_to_index(VALUE self, VALUE text, VALUE analysis, VALUE x_pos)
87
79
  {
88
80
  int index;
89
81
  int trailing;
@@ -98,8 +90,7 @@ rglyph_x_to_index(self, text, analysis, x_pos)
98
90
  }
99
91
 
100
92
  static VALUE
101
- rglyph_get_logical_widgths(self, text, embedding_level)
102
- VALUE self, text, embedding_level;
93
+ rglyph_get_logical_widgths(VALUE self, VALUE text, VALUE embedding_level)
103
94
  {
104
95
  int* logical_widths = NULL;
105
96
  int len, array_len, i;
@@ -126,8 +117,7 @@ rglyph_get_logical_widgths(self, text, embedding_level)
126
117
  }
127
118
 
128
119
  static VALUE
129
- rglyph_get_glyphs(self)
130
- VALUE self;
120
+ rglyph_get_glyphs(VALUE self)
131
121
  {
132
122
  int i;
133
123
  PangoGlyphInfo** glyphs = &_SELF(self)->glyphs;
@@ -15,14 +15,12 @@
15
15
 
16
16
  #define ATTR_INT(name)\
17
17
  static VALUE \
18
- item_int_ ## name (self)\
19
- VALUE self;\
18
+ item_int_ ## name (VALUE self)\
20
19
  {\
21
20
  return INT2NUM(_SELF(self)->name);\
22
21
  }\
23
22
  static VALUE \
24
- item_int_set_ ## name (self, val)\
25
- VALUE self, val;\
23
+ item_int_set_ ## name (VALUE self, VALUE val)\
26
24
  {\
27
25
  _SELF(self)->name = NUM2INT(val); \
28
26
  return self;\
@@ -49,16 +47,14 @@ pango_item_get_type(void)
49
47
  /**********************************/
50
48
 
51
49
  static VALUE
52
- item_initialize(self)
53
- VALUE self;
50
+ item_initialize(VALUE self)
54
51
  {
55
52
  G_INITIALIZE(self, pango_item_new());
56
53
  return Qnil;
57
54
  }
58
55
 
59
56
  static VALUE
60
- item_split(self, split_index, split_offset)
61
- VALUE self, split_index, split_offset;
57
+ item_split(VALUE self, VALUE split_index, VALUE split_offset)
62
58
  {
63
59
  return BOXED2RVAL(pango_item_split(_SELF(self),
64
60
  NUM2INT(split_index),
@@ -75,16 +71,14 @@ ATTR_INT(num_chars);
75
71
 
76
72
 
77
73
  static VALUE
78
- item_get_analysis(self)
79
- VALUE self;
74
+ item_get_analysis(VALUE self)
80
75
  {
81
76
  PangoAnalysis ana = _SELF(self)->analysis;
82
77
  return BOXED2RVAL(&ana, PANGO_TYPE_ANALYSIS);
83
78
  }
84
79
 
85
80
  static VALUE
86
- item_set_analysis(self, val)
87
- VALUE self, val;
81
+ item_set_analysis(VALUE self, VALUE val)
88
82
  {
89
83
  PangoAnalysis* ana = (PangoAnalysis*)RVAL2BOXED(val, PANGO_TYPE_ANALYSIS);
90
84
  _SELF(self)->analysis = *ana;
@@ -22,25 +22,20 @@ language_s_default(VALUE self)
22
22
  }
23
23
 
24
24
  static VALUE
25
- language_initialize(self, language)
26
- VALUE self, language;
25
+ language_initialize(VALUE self, VALUE language)
27
26
  {
28
27
  G_INITIALIZE(self, pango_language_from_string(RVAL2CSTR(language)));
29
28
  return Qnil;
30
29
  }
31
30
 
32
31
  static VALUE
33
- language_s_to_string(self, language)
34
- VALUE self, language;
32
+ language_s_to_string(VALUE self, VALUE language)
35
33
  {
36
34
  return CSTR2RVAL(pango_language_to_string(RVAL2CSTR(language)));
37
35
  }
38
36
 
39
37
  static VALUE
40
- language_matches(argc, argv, self)
41
- int argc;
42
- VALUE *argv;
43
- VALUE self;
38
+ language_matches(int argc, VALUE *argv, VALUE self)
44
39
  {
45
40
  VALUE range_list;
46
41
 
@@ -51,8 +46,7 @@ language_matches(argc, argv, self)
51
46
  }
52
47
 
53
48
  static VALUE
54
- language_to_str(self)
55
- VALUE self;
49
+ language_to_str(VALUE self)
56
50
  {
57
51
  return CSTR2RVAL(pango_language_to_string(_SELF(self)));
58
52
  }
@@ -60,8 +54,7 @@ language_to_str(self)
60
54
  #if PANGO_CHECK_VERSION(1,4,0)
61
55
  /* Moved from Pango::Script */
62
56
  static VALUE
63
- language_includes_script(self, script)
64
- VALUE self, script;
57
+ language_includes_script(VALUE self, VALUE script)
65
58
  {
66
59
  return CBOOL2RVAL(pango_language_includes_script(_SELF(self),
67
60
  RVAL2GENUM(script, PANGO_TYPE_SCRIPT)));
@@ -15,8 +15,7 @@
15
15
  #define RVAL2CONTEXT(v) (PANGO_CONTEXT(RVAL2GOBJ(v)))
16
16
 
17
17
  static VALUE
18
- layout_initialize(self, context)
19
- VALUE self, context;
18
+ layout_initialize(VALUE self, VALUE context)
20
19
  {
21
20
  G_INITIALIZE(self, pango_layout_new(RVAL2CONTEXT(context)));
22
21
  return Qnil;
@@ -29,40 +28,33 @@ layout_copy(VALUE self)
29
28
  }
30
29
 
31
30
  static VALUE
32
- layout_get_context(self)
33
- VALUE self;
31
+ layout_get_context(VALUE self)
34
32
  {
35
33
  return GOBJ2RVAL(pango_layout_get_context(_SELF(self)));
36
34
  }
37
35
 
38
36
  static VALUE
39
- layout_context_changed(self)
40
- VALUE self;
37
+ layout_context_changed(VALUE self)
41
38
  {
42
39
  pango_layout_context_changed(_SELF(self));
43
40
  return Qnil;
44
41
  }
45
42
 
46
43
  static VALUE
47
- layout_set_text(self, text)
48
- VALUE self, text;
44
+ layout_set_text(VALUE self, VALUE text)
49
45
  {
50
46
  pango_layout_set_text(_SELF(self), RVAL2CSTR(text), RSTRING_LEN(text));
51
47
  return self;
52
48
  }
53
49
 
54
50
  static VALUE
55
- layout_get_text(self)
56
- VALUE self;
51
+ layout_get_text(VALUE self)
57
52
  {
58
53
  return CSTR2RVAL(pango_layout_get_text(_SELF(self)));
59
54
  }
60
55
 
61
56
  static VALUE
62
- layout_set_markup(argc, argv, self)
63
- int argc;
64
- VALUE *argv;
65
- VALUE self;
57
+ layout_set_markup(int argc, VALUE *argv, VALUE self)
66
58
  {
67
59
  VALUE markup, accel_marker;
68
60
  gunichar accel_char = 0;
@@ -83,16 +75,14 @@ layout_set_markup(argc, argv, self)
83
75
  }
84
76
 
85
77
  static VALUE
86
- layout_set_markup_eq(self, markup)
87
- VALUE self, markup;
78
+ layout_set_markup_eq(VALUE self, VALUE markup)
88
79
  {
89
80
  pango_layout_set_markup(_SELF(self), RVAL2CSTR(markup), RSTRING_LEN(markup));
90
81
  return markup;
91
82
  }
92
83
 
93
84
  static VALUE
94
- layout_set_attributes(self, attrs)
95
- VALUE self, attrs;
85
+ layout_set_attributes(VALUE self, VALUE attrs)
96
86
  {
97
87
  pango_layout_set_attributes(_SELF(self),
98
88
  (PangoAttrList*)(RVAL2BOXED(attrs, PANGO_TYPE_ATTR_LIST)));
@@ -100,8 +90,7 @@ layout_set_attributes(self, attrs)
100
90
  }
101
91
 
102
92
  static VALUE
103
- layout_get_attributes(self)
104
- VALUE self;
93
+ layout_get_attributes(VALUE self)
105
94
  {
106
95
  return BOXED2RVAL(pango_layout_get_attributes(_SELF(self)), PANGO_TYPE_ATTR_LIST);
107
96
  }
@@ -129,8 +118,7 @@ layout_set_font_description(VALUE self, VALUE rb_desc)
129
118
 
130
119
  #ifdef HAVE_PANGO_LAYOUT_GET_FONT_DESCRIPTION
131
120
  static VALUE
132
- layout_get_font_description(self)
133
- VALUE self;
121
+ layout_get_font_description(VALUE self)
134
122
  {
135
123
  const PangoFontDescription* desc = pango_layout_get_font_description(_SELF(self));
136
124
  return BOXED2RVAL((gpointer)desc, PANGO_TYPE_FONT_DESCRIPTION);
@@ -138,130 +126,113 @@ layout_get_font_description(self)
138
126
  #endif
139
127
 
140
128
  static VALUE
141
- layout_set_width(self, width)
142
- VALUE self, width;
129
+ layout_set_width(VALUE self, VALUE width)
143
130
  {
144
131
  pango_layout_set_width(_SELF(self), NUM2INT(width));
145
132
  return self;
146
133
  }
147
134
 
148
135
  static VALUE
149
- layout_get_width(self)
150
- VALUE self;
136
+ layout_get_width(VALUE self)
151
137
  {
152
138
  return INT2NUM(pango_layout_get_width(_SELF(self)));
153
139
  }
154
140
 
155
141
  static VALUE
156
- layout_set_wrap(self, wrap)
157
- VALUE self, wrap;
142
+ layout_set_wrap(VALUE self, VALUE wrap)
158
143
  {
159
144
  pango_layout_set_wrap(_SELF(self), RVAL2GENUM(wrap, PANGO_TYPE_WRAP_MODE));
160
145
  return self;
161
146
  }
162
147
 
163
148
  static VALUE
164
- layout_get_wrap(self)
165
- VALUE self;
149
+ layout_get_wrap(VALUE self)
166
150
  {
167
151
  return GENUM2RVAL(pango_layout_get_wrap(_SELF(self)), PANGO_TYPE_WRAP_MODE);
168
152
  }
169
153
 
170
154
  #ifdef HAVE_PANGO_LAYOUT_SET_ELLIPSIZE
171
155
  static VALUE
172
- layout_set_ellipsize(self, ellipsize)
173
- VALUE self, ellipsize;
156
+ layout_set_ellipsize(VALUE self, VALUE ellipsize)
174
157
  {
175
158
  pango_layout_set_ellipsize(_SELF(self), RVAL2GENUM(ellipsize,
176
159
  PANGO_TYPE_ELLIPSIZE_MODE));
177
160
  return self;
178
161
  }
179
162
  static VALUE
180
- layout_get_ellipsize(self)
181
- VALUE self;
163
+ layout_get_ellipsize(VALUE self)
182
164
  {
183
165
  return GENUM2RVAL(pango_layout_get_ellipsize(_SELF(self)), PANGO_TYPE_ELLIPSIZE_MODE);
184
166
  }
185
167
  #endif
186
168
 
187
169
  static VALUE
188
- layout_set_indent(self, indent)
189
- VALUE self, indent;
170
+ layout_set_indent(VALUE self, VALUE indent)
190
171
  {
191
172
  pango_layout_set_indent(_SELF(self), NUM2INT(indent));
192
173
  return self;
193
174
  }
194
175
 
195
176
  static VALUE
196
- layout_get_indent(self)
197
- VALUE self;
177
+ layout_get_indent(VALUE self)
198
178
  {
199
179
  return INT2NUM(pango_layout_get_indent(_SELF(self)));
200
180
  }
201
181
 
202
182
  static VALUE
203
- layout_get_spacing(self)
204
- VALUE self;
183
+ layout_get_spacing(VALUE self)
205
184
  {
206
185
  return INT2NUM(pango_layout_get_spacing(_SELF(self)));
207
186
  }
208
187
 
209
188
  static VALUE
210
- layout_set_spacing(self, spacing)
211
- VALUE self, spacing;
189
+ layout_set_spacing(VALUE self, VALUE spacing)
212
190
  {
213
191
  pango_layout_set_spacing(_SELF(self), NUM2INT(spacing));
214
192
  return self;
215
193
  }
216
194
 
217
195
  static VALUE
218
- layout_set_justify(self, justify)
219
- VALUE self, justify;
196
+ layout_set_justify(VALUE self, VALUE justify)
220
197
  {
221
198
  pango_layout_set_justify(_SELF(self), RVAL2CBOOL(justify));
222
199
  return self;
223
200
  }
224
201
  static VALUE
225
- layout_get_justify(self)
226
- VALUE self;
202
+ layout_get_justify(VALUE self)
227
203
  {
228
204
  return CBOOL2RVAL(pango_layout_get_justify(_SELF(self)));
229
205
  }
230
206
 
231
207
  #if PANGO_CHECK_VERSION(1,4,0)
232
208
  static VALUE
233
- layout_set_auto_dir(self, auto_dir)
234
- VALUE self, auto_dir;
209
+ layout_set_auto_dir(VALUE self, VALUE auto_dir)
235
210
  {
236
211
  pango_layout_set_auto_dir(_SELF(self), RVAL2CBOOL(auto_dir));
237
212
  return self;
238
213
  }
239
214
  static VALUE
240
- layout_get_auto_dir(self)
241
- VALUE self;
215
+ layout_get_auto_dir(VALUE self)
242
216
  {
243
217
  return CBOOL2RVAL(pango_layout_get_auto_dir(_SELF(self)));
244
218
  }
245
219
  #endif
246
220
 
247
221
  static VALUE
248
- layout_set_alignment(self, align)
249
- VALUE self, align;
222
+ layout_set_alignment(VALUE self, VALUE align)
250
223
  {
251
224
  pango_layout_set_alignment(_SELF(self), RVAL2GENUM(align, PANGO_TYPE_ALIGNMENT));
252
225
  return self;
253
226
  }
254
227
 
255
228
  static VALUE
256
- layout_get_alignment(self)
257
- VALUE self;
229
+ layout_get_alignment(VALUE self)
258
230
  {
259
231
  return GENUM2RVAL(pango_layout_get_alignment(_SELF(self)), PANGO_TYPE_ALIGNMENT);
260
232
  }
261
233
 
262
234
  static VALUE
263
- layout_set_tabs(self, tabs)
264
- VALUE self,tabs;
235
+ layout_set_tabs(VALUE self, VALUE tabs)
265
236
  {
266
237
  pango_layout_set_tabs(_SELF(self),
267
238
  (PangoTabArray*)RVAL2BOXED(self, PANGO_TYPE_TAB_ARRAY));
@@ -269,8 +240,7 @@ layout_set_tabs(self, tabs)
269
240
  }
270
241
 
271
242
  static VALUE
272
- layout_get_tabs(self)
273
- VALUE self;
243
+ layout_get_tabs(VALUE self)
274
244
  {
275
245
  VALUE ret = Qnil;
276
246
  PangoTabArray* tabs = pango_layout_get_tabs(_SELF(self));
@@ -283,23 +253,20 @@ layout_get_tabs(self)
283
253
  }
284
254
 
285
255
  static VALUE
286
- layout_set_single_paragraph_mode(self, setting)
287
- VALUE self, setting;
256
+ layout_set_single_paragraph_mode(VALUE self, VALUE setting)
288
257
  {
289
258
  pango_layout_set_single_paragraph_mode(_SELF(self), RVAL2CBOOL(setting));
290
259
  return self;
291
260
  }
292
261
 
293
262
  static VALUE
294
- layout_get_single_paragraph_mode(self)
295
- VALUE self;
263
+ layout_get_single_paragraph_mode(VALUE self)
296
264
  {
297
265
  return CBOOL2RVAL(pango_layout_get_single_paragraph_mode(_SELF(self)));
298
266
  }
299
267
 
300
268
  static VALUE
301
- layout_get_log_attrs(self)
302
- VALUE self;
269
+ layout_get_log_attrs(VALUE self)
303
270
  {
304
271
  PangoLogAttr* attrs;
305
272
  gint i, n_attrs;
@@ -318,8 +285,7 @@ layout_get_log_attrs(self)
318
285
  }
319
286
 
320
287
  static VALUE
321
- layout_xy_to_index(self, x, y)
322
- VALUE self, x, y;
288
+ layout_xy_to_index(VALUE self, VALUE x, VALUE y)
323
289
  {
324
290
  int index, trailing;
325
291
  gboolean ret = pango_layout_xy_to_index(_SELF(self),
@@ -330,8 +296,7 @@ layout_xy_to_index(self, x, y)
330
296
  }
331
297
 
332
298
  static VALUE
333
- layout_index_to_pos(self, index)
334
- VALUE self, index;
299
+ layout_index_to_pos(VALUE self, VALUE index)
335
300
  {
336
301
  PangoRectangle pos;
337
302
  pango_layout_index_to_pos(_SELF(self), NUM2INT(index), &pos);
@@ -339,8 +304,7 @@ layout_index_to_pos(self, index)
339
304
  }
340
305
 
341
306
  static VALUE
342
- layout_get_cursor_pos(self, index)
343
- VALUE self, index;
307
+ layout_get_cursor_pos(VALUE self, VALUE index)
344
308
  {
345
309
  PangoRectangle strong_pos, weak_pos;
346
310
  pango_layout_get_cursor_pos(_SELF(self), NUM2INT(index), &strong_pos, &weak_pos);
@@ -349,8 +313,7 @@ layout_get_cursor_pos(self, index)
349
313
  }
350
314
 
351
315
  static VALUE
352
- layout_move_cursor_visually(self, strong, old_index, old_trailing, direction)
353
- VALUE self, strong, old_index, old_trailing, direction;
316
+ layout_move_cursor_visually(VALUE self, VALUE strong, VALUE old_index, VALUE old_trailing, VALUE direction)
354
317
  {
355
318
  int new_index, new_trailing;
356
319
  pango_layout_move_cursor_visually(_SELF(self), RVAL2CBOOL(strong),
@@ -361,10 +324,7 @@ layout_move_cursor_visually(self, strong, old_index, old_trailing, direction)
361
324
  }
362
325
 
363
326
  static VALUE
364
- layout_get_extents(argc, argv, self)
365
- int argc;
366
- VALUE* argv;
367
- VALUE self;
327
+ layout_get_extents(int argc, VALUE *argv, VALUE self)
368
328
  {
369
329
  VALUE ink_rect, logical_rect;
370
330
  PangoRectangle rink, rlog;
@@ -403,8 +363,7 @@ layout_get_extents(argc, argv, self)
403
363
  }
404
364
 
405
365
  static VALUE
406
- layout_extents(self)
407
- VALUE self;
366
+ layout_extents(VALUE self)
408
367
  {
409
368
  PangoRectangle rink = {0, 0, 0, 0};
410
369
  PangoRectangle rlog = {0, 0, 0, 0};
@@ -415,10 +374,7 @@ layout_extents(self)
415
374
  }
416
375
 
417
376
  static VALUE
418
- layout_get_pixel_extents(argc, argv, self)
419
- int argc;
420
- VALUE* argv;
421
- VALUE self;
377
+ layout_get_pixel_extents(int argc, VALUE *argv, VALUE self)
422
378
  {
423
379
  VALUE ink_rect, logical_rect;
424
380
  PangoRectangle rink, rlog;
@@ -457,8 +413,7 @@ layout_get_pixel_extents(argc, argv, self)
457
413
  }
458
414
 
459
415
  static VALUE
460
- layout_pixel_extents(self)
461
- VALUE self;
416
+ layout_pixel_extents(VALUE self)
462
417
  {
463
418
  PangoRectangle rink = {0, 0, 0, 0};
464
419
  PangoRectangle rlog = {0, 0, 0, 0};
@@ -469,8 +424,7 @@ layout_pixel_extents(self)
469
424
  }
470
425
 
471
426
  static VALUE
472
- layout_get_size(self)
473
- VALUE self;
427
+ layout_get_size(VALUE self)
474
428
  {
475
429
  int width, height;
476
430
  pango_layout_get_size(_SELF(self), &width, &height);
@@ -478,8 +432,7 @@ layout_get_size(self)
478
432
  }
479
433
 
480
434
  static VALUE
481
- layout_get_pixel_size(self)
482
- VALUE self;
435
+ layout_get_pixel_size(VALUE self)
483
436
  {
484
437
  int width, height;
485
438
  pango_layout_get_pixel_size(_SELF(self), &width, &height);
@@ -487,30 +440,26 @@ layout_get_pixel_size(self)
487
440
  }
488
441
 
489
442
  static VALUE
490
- layout_get_line_count(self)
491
- VALUE self;
443
+ layout_get_line_count(VALUE self)
492
444
  {
493
445
  return INT2NUM(pango_layout_get_line_count(_SELF(self)));
494
446
  }
495
447
 
496
448
  static VALUE
497
- layout_get_line(self, line)
498
- VALUE self, line;
449
+ layout_get_line(VALUE self, VALUE line)
499
450
  {
500
451
  return BOXED2RVAL(pango_layout_get_line(_SELF(self), NUM2INT(line)), PANGO_TYPE_LAYOUT_LINE);
501
452
  }
502
453
 
503
454
  static VALUE
504
- layout_get_lines(self)
505
- VALUE self;
455
+ layout_get_lines(VALUE self)
506
456
  {
507
457
  return GSLIST2ARY2(pango_layout_get_lines(_SELF(self)), PANGO_TYPE_LAYOUT_LINE);
508
458
  }
509
459
 
510
460
 
511
461
  static VALUE
512
- layout_get_iter(self)
513
- VALUE self;
462
+ layout_get_iter(VALUE self)
514
463
  {
515
464
  return BOXED2RVAL(pango_layout_get_iter(_SELF(self)),
516
465
  PANGO_TYPE_LAYOUT_ITER);