pango 0.90.7-x86-mingw32 → 0.90.8-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,8 +15,7 @@
15
15
 
16
16
  /**********************************/
17
17
  static PangoRectangle*
18
- pango_rectangle_copy(ref)
19
- const PangoRectangle* ref;
18
+ pango_rectangle_copy(const PangoRectangle *ref)
20
19
  {
21
20
  PangoRectangle* new_ref;
22
21
  g_return_val_if_fail (ref != NULL, NULL);
@@ -39,8 +38,7 @@ pango_rectangle_get_type(void)
39
38
  /**********************************/
40
39
 
41
40
  static VALUE
42
- pango_rectangle_initialize(self, x, y, width, height)
43
- VALUE self, x, y, width, height;
41
+ pango_rectangle_initialize(VALUE self, VALUE x, VALUE y, VALUE width, VALUE height)
44
42
  {
45
43
  PangoRectangle new;
46
44
 
@@ -55,66 +53,57 @@ pango_rectangle_initialize(self, x, y, width, height)
55
53
 
56
54
 
57
55
  static VALUE
58
- pango_rectangle_x(self)
59
- VALUE self;
56
+ pango_rectangle_x(VALUE self)
60
57
  {
61
58
  return INT2NUM(_SELF(self)->x);
62
59
  }
63
60
 
64
61
  static VALUE
65
- pango_rectangle_y(self)
66
- VALUE self;
62
+ pango_rectangle_y(VALUE self)
67
63
  {
68
64
  return INT2NUM(_SELF(self)->y);
69
65
  }
70
66
 
71
67
  static VALUE
72
- pango_rectangle_w(self)
73
- VALUE self;
68
+ pango_rectangle_w(VALUE self)
74
69
  {
75
70
  return INT2NUM(_SELF(self)->width);
76
71
  }
77
72
 
78
73
  static VALUE
79
- pango_rectangle_h(self)
80
- VALUE self;
74
+ pango_rectangle_h(VALUE self)
81
75
  {
82
76
  return INT2NUM(_SELF(self)->height);
83
77
  }
84
78
 
85
79
  static VALUE
86
- pango_rectangle_set_x(self, x)
87
- VALUE self, x;
80
+ pango_rectangle_set_x(VALUE self, VALUE x)
88
81
  {
89
82
  _SELF(self)->x = NUM2INT(x);
90
83
  return self;
91
84
  }
92
85
 
93
86
  static VALUE
94
- pango_rectangle_set_y(self, y)
95
- VALUE self, y;
87
+ pango_rectangle_set_y(VALUE self, VALUE y)
96
88
  {
97
89
  _SELF(self)->y = NUM2INT(y);
98
90
  return self;
99
91
  }
100
92
  static VALUE
101
- pango_rectangle_set_w(self, width)
102
- VALUE self, width;
93
+ pango_rectangle_set_w(VALUE self, VALUE width)
103
94
  {
104
95
  _SELF(self)->width = NUM2INT(width);
105
96
  return self;
106
97
  }
107
98
 
108
99
  static VALUE
109
- pango_rectangle_set_h(self, height)
110
- VALUE self, height;
100
+ pango_rectangle_set_h(VALUE self, VALUE height)
111
101
  {
112
102
  _SELF(self)->height = NUM2INT(height);
113
103
  return self;
114
104
  }
115
105
  static VALUE
116
- pango_rectangle_to_a(self)
117
- VALUE self;
106
+ pango_rectangle_to_a(VALUE self)
118
107
  {
119
108
  PangoRectangle* a = _SELF(self);
120
109
  return rb_ary_new3(4, INT2FIX(a->x), INT2FIX(a->y),
@@ -122,32 +111,28 @@ pango_rectangle_to_a(self)
122
111
  }
123
112
 
124
113
  static VALUE
125
- pango_rectangle_ascent(self)
126
- VALUE self;
114
+ pango_rectangle_ascent(VALUE self)
127
115
  {
128
116
  PangoRectangle* r =_SELF(self);
129
117
  return INT2NUM(PANGO_ASCENT(*r));
130
118
  }
131
119
 
132
120
  static VALUE
133
- pango_rectangle_descent(self)
134
- VALUE self;
121
+ pango_rectangle_descent(VALUE self)
135
122
  {
136
123
  PangoRectangle* r =_SELF(self);
137
124
  return INT2NUM(PANGO_DESCENT(*r));
138
125
  }
139
126
 
140
127
  static VALUE
141
- pango_rectangle_lbearing(self)
142
- VALUE self;
128
+ pango_rectangle_lbearing(VALUE self)
143
129
  {
144
130
  PangoRectangle* r =_SELF(self);
145
131
  return INT2NUM(PANGO_LBEARING(*r));
146
132
  }
147
133
 
148
134
  static VALUE
149
- pango_rectangle_rbearing(self)
150
- VALUE self;
135
+ pango_rectangle_rbearing(VALUE self)
151
136
  {
152
137
  PangoRectangle* r =_SELF(self);
153
138
  return INT2NUM(PANGO_RBEARING(*r));
@@ -15,8 +15,7 @@
15
15
  #define _SELF(self) (PANGO_RENDERER(RVAL2GOBJ(self)))
16
16
 
17
17
  static VALUE
18
- renderer_draw_layout(self, layout, x, y)
19
- VALUE self, layout, x, y;
18
+ renderer_draw_layout(VALUE self, VALUE layout, VALUE x, VALUE y)
20
19
  {
21
20
  pango_renderer_draw_layout(_SELF(self),
22
21
  PANGO_LAYOUT(RVAL2GOBJ(layout)),
@@ -25,8 +24,7 @@ renderer_draw_layout(self, layout, x, y)
25
24
  }
26
25
 
27
26
  static VALUE
28
- renderer_draw_layout_line(self, line, x, y)
29
- VALUE self, line, x, y;
27
+ renderer_draw_layout_line(VALUE self, VALUE line, VALUE x, VALUE y)
30
28
  {
31
29
  pango_renderer_draw_layout_line(_SELF(self),
32
30
  (PangoLayoutLine*)RVAL2BOXED(line, PANGO_TYPE_LAYOUT_LINE),
@@ -35,8 +33,7 @@ renderer_draw_layout_line(self, line, x, y)
35
33
  }
36
34
 
37
35
  static VALUE
38
- renderer_draw_glyphs(self, font, glyphs, x, y)
39
- VALUE self, font, glyphs, x, y;
36
+ renderer_draw_glyphs(VALUE self, VALUE font, VALUE glyphs, VALUE x, VALUE y)
40
37
  {
41
38
  pango_renderer_draw_glyphs(_SELF(self),
42
39
  PANGO_FONT(RVAL2GOBJ(self)),
@@ -46,8 +43,7 @@ renderer_draw_glyphs(self, font, glyphs, x, y)
46
43
  }
47
44
 
48
45
  static VALUE
49
- renderer_draw_rectangle(self, part, x, y, width, height)
50
- VALUE self, part, x, y, width, height;
46
+ renderer_draw_rectangle(VALUE self, VALUE part, VALUE x, VALUE y, VALUE width, VALUE height)
51
47
  {
52
48
  #if HAVE_PANGO_RENDER_PART_GET_TYPE
53
49
  pango_renderer_draw_rectangle(_SELF(self), RVAL2GENUM(part, PANGO_TYPE_RENDER_PART),
@@ -60,8 +56,7 @@ renderer_draw_rectangle(self, part, x, y, width, height)
60
56
  }
61
57
 
62
58
  static VALUE
63
- renderer_draw_error_underline(self, x, y, width, height)
64
- VALUE self, x, y, width, height;
59
+ renderer_draw_error_underline(VALUE self, VALUE x, VALUE y, VALUE width, VALUE height)
65
60
  {
66
61
  pango_renderer_draw_error_underline(_SELF(self),
67
62
  NUM2INT(x), NUM2INT(y), NUM2INT(width), NUM2INT(height));
@@ -69,8 +64,7 @@ renderer_draw_error_underline(self, x, y, width, height)
69
64
  }
70
65
 
71
66
  static VALUE
72
- renderer_draw_trapezoid(self, part, y1, x11, x21, y2, x12, x22)
73
- VALUE self, part, y1, x11, x21, y2, x12, x22;
67
+ renderer_draw_trapezoid(VALUE self, VALUE part, VALUE y1, VALUE x11, VALUE x21, VALUE y2, VALUE x12, VALUE x22)
74
68
  {
75
69
  #if HAVE_PANGO_RENDER_PART_GET_TYPE
76
70
  pango_renderer_draw_trapezoid(_SELF(self),
@@ -86,8 +80,7 @@ renderer_draw_trapezoid(self, part, y1, x11, x21, y2, x12, x22)
86
80
  }
87
81
 
88
82
  static VALUE
89
- renderer_draw_glyph(self, font, glyph, x, y)
90
- VALUE self, font, glyph, x, y;
83
+ renderer_draw_glyph(VALUE self, VALUE font, VALUE glyph, VALUE x, VALUE y)
91
84
  {
92
85
  pango_renderer_draw_glyph(_SELF(self), PANGO_FONT(RVAL2GOBJ(self)),
93
86
  NUM2INT(glyph), NUM2INT(x), NUM2INT(y));
@@ -95,16 +88,14 @@ renderer_draw_glyph(self, font, glyph, x, y)
95
88
  }
96
89
 
97
90
  static VALUE
98
- renderer_deactivate(self)
99
- VALUE self;
91
+ renderer_deactivate(VALUE self)
100
92
  {
101
93
  pango_renderer_deactivate(_SELF(self));
102
94
  return self;
103
95
  }
104
96
 
105
97
  static VALUE
106
- renderer_activate(self)
107
- VALUE self;
98
+ renderer_activate(VALUE self)
108
99
  {
109
100
  pango_renderer_activate(_SELF(self));
110
101
  if (rb_block_given_p()) {
@@ -114,8 +105,7 @@ renderer_activate(self)
114
105
  }
115
106
 
116
107
  static VALUE
117
- renderer_part_changed(self, part)
118
- VALUE self, part;
108
+ renderer_part_changed(VALUE self, VALUE part)
119
109
  {
120
110
  #if HAVE_PANGO_RENDER_PART_GET_TYPE
121
111
  pango_renderer_part_changed(_SELF(self), RVAL2GENUM(part, PANGO_TYPE_RENDER_PART));
@@ -126,8 +116,7 @@ renderer_part_changed(self, part)
126
116
  }
127
117
 
128
118
  static VALUE
129
- renderer_set_color(self, part, color)
130
- VALUE self, part, color;
119
+ renderer_set_color(VALUE self, VALUE part, VALUE color)
131
120
  {
132
121
  #if HAVE_PANGO_RENDER_PART_GET_TYPE
133
122
  pango_renderer_set_color(_SELF(self), RVAL2GENUM(part, PANGO_TYPE_RENDER_PART),
@@ -140,8 +129,7 @@ renderer_set_color(self, part, color)
140
129
  }
141
130
 
142
131
  static VALUE
143
- renderer_get_color(self, part)
144
- VALUE self, part;
132
+ renderer_get_color(VALUE self, VALUE part)
145
133
  {
146
134
  #if HAVE_PANGO_RENDER_PART_GET_TYPE
147
135
  PangoColor* color = pango_renderer_get_color(_SELF(self),
@@ -153,8 +141,7 @@ renderer_get_color(self, part)
153
141
  }
154
142
 
155
143
  static VALUE
156
- renderer_set_matrix(self, matrix)
157
- VALUE self, matrix;
144
+ renderer_set_matrix(VALUE self, VALUE matrix)
158
145
  {
159
146
  pango_renderer_set_matrix(_SELF(self),
160
147
  (PangoMatrix*)(NIL_P(matrix) ? NULL : RVAL2BOXED(matrix, PANGO_TYPE_MATRIX)));
@@ -162,8 +149,7 @@ renderer_set_matrix(self, matrix)
162
149
  }
163
150
 
164
151
  static VALUE
165
- renderer_get_matrix(self)
166
- VALUE self;
152
+ renderer_get_matrix(VALUE self)
167
153
  {
168
154
  const PangoMatrix* matrix = pango_renderer_get_matrix(_SELF(self));
169
155
  return BOXED2RVAL((PangoMatrix*)matrix, PANGO_TYPE_MATRIX);
@@ -15,15 +15,13 @@
15
15
  #define _SELF(r) (RVAL2GENUM(r, PANGO_TYPE_SCRIPT))
16
16
 
17
17
  static VALUE
18
- rbpango_s_script_for_unichar(self, ch)
19
- VALUE self, ch;
18
+ rbpango_s_script_for_unichar(VALUE self, VALUE ch)
20
19
  {
21
20
  return GENUM2RVAL(pango_script_for_unichar(NUM2UINT(ch)), PANGO_TYPE_SCRIPT);
22
21
  }
23
22
 
24
23
  static VALUE
25
- rbpango_script_get_sample_language(self)
26
- VALUE self;
24
+ rbpango_script_get_sample_language(VALUE self)
27
25
  {
28
26
  PangoLanguage* lang = pango_script_get_sample_language(_SELF(self));
29
27
  return BOXED2RVAL(lang, PANGO_TYPE_LANGUAGE);
@@ -15,8 +15,7 @@
15
15
 
16
16
  /**********************************/
17
17
  static PangoScriptIter*
18
- rbpango_script_iter_copy(ref)
19
- PangoScriptIter* ref;
18
+ rbpango_script_iter_copy(PangoScriptIter *ref)
20
19
  {
21
20
  /*
22
21
  PangoScriptIter* new_ref = pango_script_iter_new("", 0);
@@ -44,8 +43,7 @@ pango_script_iter_get_type(void)
44
43
  #define _SELF(r) ((PangoScriptIter*)RVAL2BOXED(r, PANGO_TYPE_SCRIPT_ITER))
45
44
 
46
45
  static VALUE
47
- rbpango_scriptiter_initialize(self, text)
48
- VALUE self, text;
46
+ rbpango_scriptiter_initialize(VALUE self, VALUE text)
49
47
  {
50
48
  PangoScriptIter* iter;
51
49
 
@@ -56,8 +54,7 @@ rbpango_scriptiter_initialize(self, text)
56
54
  }
57
55
 
58
56
  static VALUE
59
- rbpango_scriptiter_get_range(self)
60
- VALUE self;
57
+ rbpango_scriptiter_get_range(VALUE self)
61
58
  {
62
59
  G_CONST_RETURN char* start;
63
60
  G_CONST_RETURN char* end;
@@ -70,8 +67,7 @@ rbpango_scriptiter_get_range(self)
70
67
  }
71
68
 
72
69
  static VALUE
73
- rbpango_scriptiter_next(self)
74
- VALUE self;
70
+ rbpango_scriptiter_next(VALUE self)
75
71
  {
76
72
  return CBOOL2RVAL(pango_script_iter_next(_SELF(self)));
77
73
  }
@@ -14,10 +14,7 @@
14
14
  #define _SELF(self) ((PangoTabArray*)RVAL2BOXED(self, PANGO_TYPE_TAB_ARRAY))
15
15
 
16
16
  static VALUE
17
- rtab_initialize(argc, argv, self)
18
- int argc;
19
- VALUE *argv;
20
- VALUE self;
17
+ rtab_initialize(int argc, VALUE *argv, VALUE self)
21
18
  {
22
19
  VALUE size, positions_in_pixels, attr_ary;
23
20
  PangoTabArray *array;
@@ -48,23 +45,20 @@ PangoTabArray* pango_tab_array_new_with_positions
48
45
  ...);
49
46
  */
50
47
  static VALUE
51
- rtab_get_size(self)
52
- VALUE self;
48
+ rtab_get_size(VALUE self)
53
49
  {
54
50
  return INT2NUM(pango_tab_array_get_size(_SELF(self)));
55
51
  }
56
52
 
57
53
  static VALUE
58
- rtab_resize(self, size)
59
- VALUE self, size;
54
+ rtab_resize(VALUE self, VALUE size)
60
55
  {
61
56
  pango_tab_array_resize(_SELF(self), NUM2INT(size));
62
57
  return self;
63
58
  }
64
59
 
65
60
  static VALUE
66
- rtab_set_tab(self, tab_index, align, location)
67
- VALUE self, tab_index, align, location;
61
+ rtab_set_tab(VALUE self, VALUE tab_index, VALUE align, VALUE location)
68
62
  {
69
63
  pango_tab_array_set_tab(_SELF(self), NUM2INT(tab_index), RVAL2GENUM(align, PANGO_TYPE_TAB_ALIGN),
70
64
  NUM2INT(location));
@@ -72,8 +66,7 @@ rtab_set_tab(self, tab_index, align, location)
72
66
  }
73
67
 
74
68
  static VALUE
75
- rtab_get_tab(self, tab_index)
76
- VALUE self, tab_index;
69
+ rtab_get_tab(VALUE self, VALUE tab_index)
77
70
  {
78
71
  PangoTabAlign align;
79
72
  gint location;
@@ -83,8 +76,7 @@ rtab_get_tab(self, tab_index)
83
76
  }
84
77
 
85
78
  static VALUE
86
- rtab_get_tabs(self)
87
- VALUE self;
79
+ rtab_get_tabs(VALUE self)
88
80
  {
89
81
  PangoTabAlign* aligns;
90
82
  gint* locations;
@@ -102,8 +94,7 @@ rtab_get_tabs(self)
102
94
  }
103
95
 
104
96
  static VALUE
105
- rtab_get_positions_in_pixels(self)
106
- VALUE self;
97
+ rtab_get_positions_in_pixels(VALUE self)
107
98
  {
108
99
  return CBOOL2RVAL(pango_tab_array_get_positions_in_pixels(_SELF(self)));
109
100
  }
data/lib/1.8/pango.so CHANGED
Binary file
data/lib/1.9/pango.so CHANGED
Binary file
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pango
3
3
  version: !ruby/object:Gem::Version
4
- hash: 377
4
+ hash: 359
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 90
9
- - 7
10
- version: 0.90.7
9
+ - 8
10
+ version: 0.90.8
11
11
  platform: x86-mingw32
12
12
  authors:
13
13
  - The Ruby-GNOME2 Proejct Team
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-02 00:00:00 +09:00
18
+ date: 2011-03-04 00:00:00 +09:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -42,12 +42,12 @@ dependencies:
42
42
  requirements:
43
43
  - - ">="
44
44
  - !ruby/object:Gem::Version
45
- hash: 377
45
+ hash: 359
46
46
  segments:
47
47
  - 0
48
48
  - 90
49
- - 7
50
- version: 0.90.7
49
+ - 8
50
+ version: 0.90.8
51
51
  type: :runtime
52
52
  version_requirements: *id002
53
53
  description: Ruby/Pango is a Ruby binding of pango-1.x.