pango 1.0.3-x86-mingw32 → 1.1.0-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/pango/extconf.rb +3 -0
- data/ext/pango/rbpango.c +312 -12
- data/ext/pango/rbpango.h +33 -22
- data/ext/pango/rbpangoanalysis.c +98 -58
- data/ext/pango/rbpangoattribute.c +94 -85
- data/ext/pango/rbpangoattriterator.c +39 -28
- data/ext/pango/rbpangoattrlist.c +42 -32
- data/ext/pango/rbpangocairo.c +38 -172
- data/ext/pango/rbpangocairocontext.c +151 -0
- data/ext/pango/rbpangocolor.c +49 -38
- data/ext/pango/rbpangocontext.c +109 -102
- data/ext/pango/rbpangoconversions.h +111 -0
- data/ext/pango/rbpangocoverage.c +45 -37
- data/ext/pango/rbpangoengine.c +22 -12
- data/ext/pango/rbpangofont.c +52 -43
- data/ext/pango/rbpangofontdescription.c +102 -91
- data/ext/pango/rbpangofontface.c +32 -21
- data/ext/pango/rbpangofontfamily.c +31 -20
- data/ext/pango/rbpangofontmap.c +44 -36
- data/ext/pango/rbpangofontmetrics.c +41 -30
- data/ext/pango/rbpangofontset.c +32 -21
- data/ext/pango/rbpangofontsetsimple.c +34 -24
- data/ext/pango/rbpangoglyphinfo.c +48 -35
- data/ext/pango/rbpangoglyphitem.c +43 -33
- data/ext/pango/rbpangoglyphstring.c +59 -59
- data/ext/pango/rbpangogravity.c +34 -23
- data/ext/pango/rbpangoitem.c +43 -34
- data/ext/pango/rbpangolanguage.c +44 -34
- data/ext/pango/rbpangolayout.c +167 -160
- data/ext/pango/rbpangolayoutiter.c +70 -59
- data/ext/pango/rbpangolayoutline.c +106 -71
- data/ext/pango/rbpangologattr.c +42 -31
- data/ext/pango/rbpangomatrix.c +47 -35
- data/ext/pango/rbpangoprivate.h +53 -0
- data/ext/pango/rbpangorectangle.c +58 -49
- data/ext/pango/rbpangorenderer.c +81 -70
- data/ext/pango/rbpangoscript.c +37 -27
- data/ext/pango/rbpangoscriptiter.c +32 -22
- data/ext/pango/rbpangotabarray.c +48 -37
- data/lib/1.8/pango.so +0 -0
- data/lib/1.9/pango.so +0 -0
- data/vendor/local/bin/libpango-1.0-0.dll +0 -0
- data/vendor/local/bin/libpangocairo-1.0-0.dll +0 -0
- data/vendor/local/bin/libpangoft2-1.0-0.dll +0 -0
- data/vendor/local/bin/libpangowin32-1.0-0.dll +0 -0
- data/vendor/local/bin/pango-querymodules.exe +0 -0
- data/vendor/local/bin/pango-view.exe +0 -0
- data/vendor/local/etc/pango/pango.modules +1 -1
- data/vendor/local/include/pango-1.0/pango/pango-attributes.h +1 -1
- data/vendor/local/include/pango-1.0/pango/pango-context.h +3 -3
- data/vendor/local/include/pango-1.0/pango/pango-features.h +3 -3
- data/vendor/local/include/pango-1.0/pango/pango-font.h +3 -3
- data/vendor/local/include/pango-1.0/pango/pango-language.h +3 -3
- data/vendor/local/include/pango-1.0/pango/pango-layout.h +6 -1
- data/vendor/local/include/pango-1.0/pango/pango-renderer.h +1 -1
- data/vendor/local/include/pango-1.0/pango/pango-script.h +6 -6
- data/vendor/local/include/pango-1.0/pango/pango-utils.h +6 -6
- data/vendor/local/lib/libpango-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangocairo-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangoft2-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangowin32-1.0.dll.a +0 -0
- data/vendor/local/lib/pango-1.0.def +2 -0
- data/vendor/local/lib/pango-1.0.lib +0 -0
- data/vendor/local/lib/pangocairo-1.0.lib +0 -0
- data/vendor/local/lib/pangoft2-1.0.lib +0 -0
- data/vendor/local/lib/pangowin32-1.0.def +1 -1
- data/vendor/local/lib/pangowin32-1.0.lib +0 -0
- data/vendor/local/lib/pkgconfig/pango.pc +1 -1
- data/vendor/local/lib/pkgconfig/pangocairo.pc +1 -1
- data/vendor/local/lib/pkgconfig/pangoft2.pc +1 -1
- data/vendor/local/lib/pkgconfig/pangowin32.pc +1 -1
- data/vendor/local/manifest/{pango-dev_1.28.3-1_win32.mft → pango-dev_1.29.4-1_win32.mft} +5 -5
- data/vendor/local/manifest/{pango_1.28.3-1_win32.mft → pango_1.29.4-1_win32.mft} +2 -2
- data/vendor/local/share/doc/{pango-1.28.3 → pango-1.29.4}/COPYING +0 -0
- data/vendor/local/share/doc/{pango-dev-1.28.3 → pango-dev-1.29.4}/COPYING +0 -0
- data/vendor/local/share/gtk-doc/html/pango/PangoEngineLang.html +9 -10
- data/vendor/local/share/gtk-doc/html/pango/PangoEngineShape.html +25 -27
- data/vendor/local/share/gtk-doc/html/pango/PangoFcDecoder.html +19 -28
- data/vendor/local/share/gtk-doc/html/pango/PangoFcFont.html +42 -60
- data/vendor/local/share/gtk-doc/html/pango/PangoFcFontMap.html +97 -147
- data/vendor/local/share/gtk-doc/html/pango/PangoMarkupFormat.html +6 -6
- data/vendor/local/share/gtk-doc/html/pango/index-1.10.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/index-1.12.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/index-1.14.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/index-1.16.html +5 -5
- data/vendor/local/share/gtk-doc/html/pango/index-1.18.html +3 -5
- data/vendor/local/share/gtk-doc/html/pango/index-1.2.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/index-1.20.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/index-1.22.html +5 -5
- data/vendor/local/share/gtk-doc/html/pango/index-1.24.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/index-1.26.html +4 -4
- data/vendor/local/share/gtk-doc/html/pango/index-1.28.html +8 -11
- data/vendor/local/share/gtk-doc/html/pango/index-1.30.html +38 -0
- data/vendor/local/share/gtk-doc/html/pango/index-1.4.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/index-1.6.html +4 -4
- data/vendor/local/share/gtk-doc/html/pango/index-1.8.html +4 -4
- data/vendor/local/share/gtk-doc/html/pango/index-all.html +38 -40
- data/vendor/local/share/gtk-doc/html/pango/index-deprecated.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/index.html +6 -5
- data/vendor/local/share/gtk-doc/html/pango/index.sgml +71 -34
- data/vendor/local/share/gtk-doc/html/pango/lowlevel.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/pango-ATSUI-Fonts.html +4 -66
- data/vendor/local/share/gtk-doc/html/pango/pango-Bidirectional-Text.html +52 -50
- data/vendor/local/share/gtk-doc/html/pango/pango-Cairo-Rendering.html +217 -278
- data/vendor/local/share/gtk-doc/html/pango/pango-Coverage-Maps.html +40 -41
- data/vendor/local/share/gtk-doc/html/pango/pango-Engines.html +37 -49
- data/vendor/local/share/gtk-doc/html/pango/pango-Fonts.html +481 -628
- data/vendor/local/share/gtk-doc/html/pango/pango-FreeType-Fonts-and-Rendering.html +76 -118
- data/vendor/local/share/gtk-doc/html/pango/pango-Glyph-Storage.html +302 -452
- data/vendor/local/share/gtk-doc/html/pango/pango-Layout-Objects.html +492 -517
- data/vendor/local/share/gtk-doc/html/pango/pango-Miscellaneous-Utilities.html +134 -164
- data/vendor/local/share/gtk-doc/html/pango/pango-Modules.html +34 -45
- data/vendor/local/share/gtk-doc/html/pango/pango-OpenType-Font-Handling.html +244 -359
- data/vendor/local/share/gtk-doc/html/pango/pango-Scripts-and-Languages.html +117 -122
- data/vendor/local/share/gtk-doc/html/pango/pango-Tab-Stops.html +112 -120
- data/vendor/local/share/gtk-doc/html/pango/pango-Text-Attributes.html +394 -523
- data/vendor/local/share/gtk-doc/html/pango/pango-Text-Processing.html +269 -364
- data/vendor/local/share/gtk-doc/html/pango/pango-Version-Checking.html +26 -40
- data/vendor/local/share/gtk-doc/html/pango/pango-Vertical-Text.html +72 -75
- data/vendor/local/share/gtk-doc/html/pango/pango-Win32-Fonts-and-Rendering.html +97 -145
- data/vendor/local/share/gtk-doc/html/pango/pango-X-Fonts-and-Rendering.html +114 -188
- data/vendor/local/share/gtk-doc/html/pango/pango-Xft-Fonts-and-Rendering.html +114 -176
- data/vendor/local/share/gtk-doc/html/pango/pango-hierarchy.html +42 -8
- data/vendor/local/share/gtk-doc/html/pango/pango-pango-renderer.html +106 -150
- data/vendor/local/share/gtk-doc/html/pango/pango-querymodules.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/pango.devhelp2 +35 -35
- data/vendor/local/share/gtk-doc/html/pango/pango.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/rendering.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/style.css +2 -1
- data/vendor/local/share/gtk-doc/html/pango/tools.html +3 -3
- data/vendor/local/share/man/man1/pango-querymodules.1 +12 -3
- data/vendor/local/share/man/man1/pango-view.1 +2 -2
- data/vendor/local/src/dieterv/packaging/pango_1.29.4-1_win32.log +806 -0
- data/vendor/local/src/{tml/packaging/pango_1.28.3-1_win32.sh → dieterv/packaging/pango_1.29.4-1_win32.sh} +7 -7
- metadata +19 -19
- data/ChangeLog +0 -721
- data/ext/pango/rbpangoinits.c +0 -72
- data/ext/pango/rbpangomain.c +0 -202
- data/vendor/local/share/gtk-doc/html/pango/pango.devhelp +0 -799
- data/vendor/local/src/tml/packaging/pango_1.28.3-1_win32.log +0 -950
data/ext/pango/rbpangologattr.c
CHANGED
@@ -1,17 +1,28 @@
|
|
1
1
|
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
-
|
2
|
+
/*
|
3
|
+
* Copyright (C) 2011 Ruby-GNOME2 Project Team
|
4
|
+
* Copyright (C) 2003 Masao Mutoh
|
5
|
+
*
|
6
|
+
* This library is free software; you can redistribute it and/or
|
7
|
+
* modify it under the terms of the GNU Lesser General Public
|
8
|
+
* License as published by the Free Software Foundation; either
|
9
|
+
* version 2.1 of the License, or (at your option) any later version.
|
10
|
+
*
|
11
|
+
* This library is distributed in the hope that it will be useful,
|
12
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14
|
+
* Lesser General Public License for more details.
|
15
|
+
*
|
16
|
+
* You should have received a copy of the GNU Lesser General Public
|
17
|
+
* License along with this library; if not, write to the Free Software
|
18
|
+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19
|
+
* MA 02110-1301 USA
|
20
|
+
*/
|
3
21
|
|
4
|
-
|
22
|
+
#include "rbpangoprivate.h"
|
5
23
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
Copyright (C) 2003 Masao Mutoh
|
10
|
-
************************************************/
|
11
|
-
|
12
|
-
#include "rbpango.h"
|
13
|
-
|
14
|
-
#define _SELF(s) ((PangoLogAttr*)RVAL2BOXED(s, PANGO_TYPE_LOG_ATTR))
|
24
|
+
#define RG_TARGET_NAMESPACE cLogAttr
|
25
|
+
#define _SELF(s) (RVAL2PANGOLOGATTR(s))
|
15
26
|
|
16
27
|
/**********************************/
|
17
28
|
static PangoLogAttr*
|
@@ -23,12 +34,12 @@ log_copy(const PangoLogAttr* val)
|
|
23
34
|
*new_val = *val;
|
24
35
|
return new_val;
|
25
36
|
}
|
26
|
-
|
37
|
+
|
27
38
|
GType
|
28
39
|
pango_log_attr_get_type(void)
|
29
40
|
{
|
30
41
|
static GType our_type = 0;
|
31
|
-
|
42
|
+
|
32
43
|
if (our_type == 0)
|
33
44
|
our_type = g_boxed_type_register_static ("PangoLogAttr",
|
34
45
|
(GBoxedCopyFunc)log_copy,
|
@@ -51,7 +62,7 @@ log_set_ ## name (VALUE self, VALUE val)\
|
|
51
62
|
}
|
52
63
|
|
53
64
|
static VALUE
|
54
|
-
|
65
|
+
rg_initialize(VALUE self)
|
55
66
|
{
|
56
67
|
PangoLogAttr log;
|
57
68
|
G_INITIALIZE(self, &log);
|
@@ -78,27 +89,27 @@ ATTR_BOOL(backspace_deletes_character);
|
|
78
89
|
#endif
|
79
90
|
|
80
91
|
void
|
81
|
-
Init_pango_logattr()
|
92
|
+
Init_pango_logattr(VALUE mPango)
|
82
93
|
{
|
83
|
-
VALUE
|
84
|
-
|
85
|
-
|
94
|
+
VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(PANGO_TYPE_LOG_ATTR, "LogAttr", mPango);
|
95
|
+
|
96
|
+
RG_DEF_METHOD(initialize, 0);
|
86
97
|
|
87
|
-
DEFINE_ACCESSOR(
|
88
|
-
DEFINE_ACCESSOR(
|
89
|
-
DEFINE_ACCESSOR(
|
90
|
-
DEFINE_ACCESSOR(
|
91
|
-
DEFINE_ACCESSOR(
|
92
|
-
DEFINE_ACCESSOR(
|
93
|
-
DEFINE_ACCESSOR(
|
94
|
-
DEFINE_ACCESSOR(
|
95
|
-
DEFINE_ACCESSOR(
|
96
|
-
DEFINE_ACCESSOR(
|
98
|
+
DEFINE_ACCESSOR(RG_TARGET_NAMESPACE, line_break);
|
99
|
+
DEFINE_ACCESSOR(RG_TARGET_NAMESPACE, mandatory_break);
|
100
|
+
DEFINE_ACCESSOR(RG_TARGET_NAMESPACE, char_break);
|
101
|
+
DEFINE_ACCESSOR(RG_TARGET_NAMESPACE, white);
|
102
|
+
DEFINE_ACCESSOR(RG_TARGET_NAMESPACE, cursor_position);
|
103
|
+
DEFINE_ACCESSOR(RG_TARGET_NAMESPACE, word_start);
|
104
|
+
DEFINE_ACCESSOR(RG_TARGET_NAMESPACE, word_end);
|
105
|
+
DEFINE_ACCESSOR(RG_TARGET_NAMESPACE, sentence_boundary);
|
106
|
+
DEFINE_ACCESSOR(RG_TARGET_NAMESPACE, sentence_start);
|
107
|
+
DEFINE_ACCESSOR(RG_TARGET_NAMESPACE, sentence_end);
|
97
108
|
|
98
109
|
#if PANGO_CHECK_VERSION(1,4,0)
|
99
|
-
rb_define_method(
|
100
|
-
rb_define_method(
|
110
|
+
rb_define_method(RG_TARGET_NAMESPACE, "backspace_deletes_character?", log_get_backspace_deletes_character, 0);
|
111
|
+
rb_define_method(RG_TARGET_NAMESPACE, "set_backspace_deletes_character", log_set_backspace_deletes_character, 1);
|
101
112
|
#endif
|
102
113
|
|
103
|
-
G_DEF_SETTERS(
|
114
|
+
G_DEF_SETTERS(RG_TARGET_NAMESPACE);
|
104
115
|
}
|
data/ext/pango/rbpangomatrix.c
CHANGED
@@ -1,18 +1,30 @@
|
|
1
1
|
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
2
|
+
/*
|
3
|
+
* Copyright (C) 2011 Ruby-GNOME2 Project Team
|
4
|
+
* Copyright (C) 2005 Masao Mutoh
|
5
|
+
*
|
6
|
+
* This library is free software; you can redistribute it and/or
|
7
|
+
* modify it under the terms of the GNU Lesser General Public
|
8
|
+
* License as published by the Free Software Foundation; either
|
9
|
+
* version 2.1 of the License, or (at your option) any later version.
|
10
|
+
*
|
11
|
+
* This library is distributed in the hope that it will be useful,
|
12
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14
|
+
* Lesser General Public License for more details.
|
15
|
+
*
|
16
|
+
* You should have received a copy of the GNU Lesser General Public
|
17
|
+
* License along with this library; if not, write to the Free Software
|
18
|
+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19
|
+
* MA 02110-1301 USA
|
20
|
+
*/
|
21
|
+
|
22
|
+
#include "rbpangoprivate.h"
|
13
23
|
|
14
24
|
#if PANGO_CHECK_VERSION(1,6,0)
|
15
|
-
|
25
|
+
|
26
|
+
#define RG_TARGET_NAMESPACE cMatrix
|
27
|
+
#define _SELF(self) (RVAL2PANGOMATRIX(self))
|
16
28
|
|
17
29
|
#define ATTR_FLOAT(name)\
|
18
30
|
static VALUE \
|
@@ -28,11 +40,11 @@ matrix_set_ ## name (VALUE self, VALUE val)\
|
|
28
40
|
}
|
29
41
|
|
30
42
|
#define DEFINE_ACCESSOR(name) \
|
31
|
-
rb_define_method(
|
32
|
-
rb_define_method(
|
43
|
+
rb_define_method(RG_TARGET_NAMESPACE, G_STRINGIFY(name), matrix_get_ ## name, 0);\
|
44
|
+
rb_define_method(RG_TARGET_NAMESPACE, G_STRINGIFY(set_ ## name), matrix_set_## name, 1);
|
33
45
|
|
34
46
|
static VALUE
|
35
|
-
|
47
|
+
rg_initialize(int argc, VALUE *argv, VALUE self)
|
36
48
|
{
|
37
49
|
PangoMatrix matrix = PANGO_MATRIX_INIT;
|
38
50
|
VALUE xx, xy, yx, yy, x0, y0;
|
@@ -52,21 +64,21 @@ matrix_initialize(int argc, VALUE *argv, VALUE self)
|
|
52
64
|
}
|
53
65
|
|
54
66
|
static VALUE
|
55
|
-
|
67
|
+
rg_translate_bang(VALUE self, VALUE tx, VALUE ty)
|
56
68
|
{
|
57
69
|
pango_matrix_translate(_SELF(self), NUM2DBL(tx), NUM2DBL(ty));
|
58
70
|
return self;
|
59
71
|
}
|
60
72
|
|
61
73
|
static VALUE
|
62
|
-
|
74
|
+
rg_scale_bang(VALUE self, VALUE scale_x, VALUE scale_y)
|
63
75
|
{
|
64
76
|
pango_matrix_scale(_SELF(self), NUM2DBL(scale_x), NUM2DBL(scale_y));
|
65
77
|
return self;
|
66
78
|
}
|
67
79
|
|
68
80
|
static VALUE
|
69
|
-
|
81
|
+
rg_rotate_bang(VALUE self, VALUE degrees)
|
70
82
|
{
|
71
83
|
pango_matrix_rotate(_SELF(self), NUM2DBL(degrees));
|
72
84
|
return self;
|
@@ -74,14 +86,14 @@ matrix_rotate(VALUE self, VALUE degrees)
|
|
74
86
|
|
75
87
|
#if PANGO_CHECK_VERSION(1,16,0)
|
76
88
|
static VALUE
|
77
|
-
|
89
|
+
rg_gravity(VALUE self)
|
78
90
|
{
|
79
|
-
return
|
91
|
+
return PANGOGRAVITY2RVAL(pango_gravity_get_for_matrix(_SELF(self)));
|
80
92
|
}
|
81
93
|
#endif
|
82
94
|
|
83
95
|
static VALUE
|
84
|
-
|
96
|
+
rg_concat_bang(VALUE self, VALUE new_matrix)
|
85
97
|
{
|
86
98
|
pango_matrix_concat(_SELF(self), _SELF(new_matrix));
|
87
99
|
return self;
|
@@ -89,7 +101,7 @@ matrix_concat(VALUE self, VALUE new_matrix)
|
|
89
101
|
|
90
102
|
#if PANGO_CHECK_VERSION(1,12,0)
|
91
103
|
static VALUE
|
92
|
-
|
104
|
+
rg_font_scale_factor(VALUE self)
|
93
105
|
{
|
94
106
|
return rb_float_new(pango_matrix_get_font_scale_factor(_SELF(self)));
|
95
107
|
}
|
@@ -103,7 +115,7 @@ ATTR_FLOAT(x0);
|
|
103
115
|
ATTR_FLOAT(y0);
|
104
116
|
|
105
117
|
static VALUE
|
106
|
-
|
118
|
+
rg_to_a(VALUE self)
|
107
119
|
{
|
108
120
|
PangoMatrix* matrix = _SELF(self);
|
109
121
|
return rb_ary_new3(6, INT2NUM(matrix->xx), INT2NUM(matrix->xy), INT2NUM(matrix->yx),
|
@@ -113,23 +125,23 @@ matrix_to_a(VALUE self)
|
|
113
125
|
#endif
|
114
126
|
|
115
127
|
void
|
116
|
-
Init_pango_matrix()
|
128
|
+
Init_pango_matrix(VALUE mPango)
|
117
129
|
{
|
118
130
|
#if PANGO_CHECK_VERSION(1,6,0)
|
119
|
-
VALUE
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
131
|
+
VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(PANGO_TYPE_MATRIX, "Matrix", mPango);
|
132
|
+
|
133
|
+
RG_DEF_METHOD(initialize, -1);
|
134
|
+
RG_DEF_METHOD_BANG(translate, 2);
|
135
|
+
RG_DEF_METHOD_BANG(scale, 2);
|
136
|
+
RG_DEF_METHOD_BANG(rotate, 1);
|
137
|
+
RG_DEF_METHOD_BANG(concat, 1);
|
126
138
|
#if PANGO_CHECK_VERSION(1,12,0)
|
127
|
-
|
139
|
+
RG_DEF_METHOD(font_scale_factor, 0);
|
128
140
|
#endif
|
129
141
|
#if PANGO_CHECK_VERSION(1,16,0)
|
130
|
-
|
142
|
+
RG_DEF_METHOD(gravity, 0);
|
131
143
|
#endif
|
132
|
-
|
144
|
+
RG_DEF_METHOD(to_a, 0);
|
133
145
|
|
134
146
|
DEFINE_ACCESSOR(xx);
|
135
147
|
DEFINE_ACCESSOR(xy);
|
@@ -138,7 +150,7 @@ Init_pango_matrix()
|
|
138
150
|
DEFINE_ACCESSOR(x0);
|
139
151
|
DEFINE_ACCESSOR(y0);
|
140
152
|
|
141
|
-
G_DEF_SETTERS(
|
153
|
+
G_DEF_SETTERS(RG_TARGET_NAMESPACE);
|
142
154
|
|
143
155
|
#endif
|
144
156
|
}
|
@@ -0,0 +1,53 @@
|
|
1
|
+
#ifndef RB_PANGO_PRIVATE_H
|
2
|
+
#define RB_PANGO_PRIVATE_H
|
3
|
+
|
4
|
+
#include "rbpango.h"
|
5
|
+
|
6
|
+
#ifndef HAVE_RB_ERRINFO
|
7
|
+
# define rb_errinfo() (ruby_errinfo)
|
8
|
+
#endif
|
9
|
+
|
10
|
+
#if PANGO_CHECK_VERSION(1,10,0) && defined(HAVE_RB_CAIRO_H)
|
11
|
+
# define CAIRO_AVAILABLE 1
|
12
|
+
#endif
|
13
|
+
|
14
|
+
G_BEGIN_DECLS
|
15
|
+
|
16
|
+
G_GNUC_INTERNAL void Init_pango_analysis(VALUE mPango);
|
17
|
+
G_GNUC_INTERNAL void Init_pango_attribute(VALUE mPango);
|
18
|
+
G_GNUC_INTERNAL void Init_pango_attriterator(VALUE mPango);
|
19
|
+
G_GNUC_INTERNAL void Init_pango_attrlist(VALUE mPango);
|
20
|
+
G_GNUC_INTERNAL void Init_pango_cairo(VALUE mPango);
|
21
|
+
G_GNUC_INTERNAL void Init_pango_cairo_context(VALUE mPango);
|
22
|
+
G_GNUC_INTERNAL void Init_pango_color(VALUE mPango);
|
23
|
+
G_GNUC_INTERNAL void Init_pango_context(VALUE mPango);
|
24
|
+
G_GNUC_INTERNAL void Init_pango_coverage(VALUE mPango);
|
25
|
+
G_GNUC_INTERNAL void Init_pango_engine(VALUE mPango);
|
26
|
+
G_GNUC_INTERNAL void Init_pango_font(VALUE mPango);
|
27
|
+
G_GNUC_INTERNAL void Init_pango_font_description(VALUE mPango);
|
28
|
+
G_GNUC_INTERNAL void Init_pango_font_face(VALUE mPango);
|
29
|
+
G_GNUC_INTERNAL void Init_pango_font_family(VALUE mPango);
|
30
|
+
G_GNUC_INTERNAL void Init_pango_font_map(VALUE mPango);
|
31
|
+
G_GNUC_INTERNAL void Init_pango_font_metrics(VALUE mPango);
|
32
|
+
G_GNUC_INTERNAL void Init_pango_fontset(VALUE mPango);
|
33
|
+
G_GNUC_INTERNAL void Init_pango_fontset_simple(VALUE mPango);
|
34
|
+
G_GNUC_INTERNAL void Init_pango_glyph_info(VALUE mPango);
|
35
|
+
G_GNUC_INTERNAL void Init_pango_glyph_item(VALUE mPango);
|
36
|
+
G_GNUC_INTERNAL void Init_pango_glyph_string(VALUE mPango);
|
37
|
+
G_GNUC_INTERNAL void Init_pango_gravity(VALUE mPango);
|
38
|
+
G_GNUC_INTERNAL void Init_pango_item(VALUE mPango);
|
39
|
+
G_GNUC_INTERNAL void Init_pango_language(VALUE mPango);
|
40
|
+
G_GNUC_INTERNAL void Init_pango_layout(VALUE mPango);
|
41
|
+
G_GNUC_INTERNAL void Init_pango_layout_iter(VALUE mPango);
|
42
|
+
G_GNUC_INTERNAL void Init_pango_layout_line(VALUE mPango);
|
43
|
+
G_GNUC_INTERNAL void Init_pango_logattr(VALUE mPango);
|
44
|
+
G_GNUC_INTERNAL void Init_pango_matrix(VALUE mPango);
|
45
|
+
G_GNUC_INTERNAL void Init_pango_rectangle(VALUE mPango);
|
46
|
+
G_GNUC_INTERNAL void Init_pangorenderer(VALUE mPango);
|
47
|
+
G_GNUC_INTERNAL void Init_pango_script(VALUE mPango);
|
48
|
+
G_GNUC_INTERNAL void Init_pango_script_iter(VALUE mPango);
|
49
|
+
G_GNUC_INTERNAL void Init_pango_array(VALUE mPango);
|
50
|
+
|
51
|
+
G_END_DECLS
|
52
|
+
|
53
|
+
#endif /* RB_PANGO_PRIVATE_H */
|
@@ -1,17 +1,28 @@
|
|
1
1
|
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
2
|
+
/*
|
3
|
+
* Copyright (C) 2011 Ruby-GNOME2 Project Team
|
4
|
+
* Copyright (C) 2002,2003 Masao Mutoh
|
5
|
+
*
|
6
|
+
* This library is free software; you can redistribute it and/or
|
7
|
+
* modify it under the terms of the GNU Lesser General Public
|
8
|
+
* License as published by the Free Software Foundation; either
|
9
|
+
* version 2.1 of the License, or (at your option) any later version.
|
10
|
+
*
|
11
|
+
* This library is distributed in the hope that it will be useful,
|
12
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14
|
+
* Lesser General Public License for more details.
|
15
|
+
*
|
16
|
+
* You should have received a copy of the GNU Lesser General Public
|
17
|
+
* License along with this library; if not, write to the Free Software
|
18
|
+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19
|
+
* MA 02110-1301 USA
|
20
|
+
*/
|
21
|
+
|
22
|
+
#include "rbpangoprivate.h"
|
23
|
+
|
24
|
+
#define RG_TARGET_NAMESPACE cRectangle
|
25
|
+
#define _SELF(s) (RVAL2PANGORECTANGLE(s))
|
15
26
|
|
16
27
|
/**********************************/
|
17
28
|
static PangoRectangle*
|
@@ -38,7 +49,7 @@ pango_rectangle_get_type(void)
|
|
38
49
|
/**********************************/
|
39
50
|
|
40
51
|
static VALUE
|
41
|
-
|
52
|
+
rg_initialize(VALUE self, VALUE x, VALUE y, VALUE width, VALUE height)
|
42
53
|
{
|
43
54
|
PangoRectangle new;
|
44
55
|
|
@@ -51,59 +62,58 @@ pango_rectangle_initialize(VALUE self, VALUE x, VALUE y, VALUE width, VALUE heig
|
|
51
62
|
return Qnil;
|
52
63
|
}
|
53
64
|
|
54
|
-
|
55
65
|
static VALUE
|
56
|
-
|
66
|
+
rg_x(VALUE self)
|
57
67
|
{
|
58
68
|
return INT2NUM(_SELF(self)->x);
|
59
69
|
}
|
60
70
|
|
61
71
|
static VALUE
|
62
|
-
|
72
|
+
rg_y(VALUE self)
|
63
73
|
{
|
64
74
|
return INT2NUM(_SELF(self)->y);
|
65
75
|
}
|
66
76
|
|
67
77
|
static VALUE
|
68
|
-
|
78
|
+
rg_width(VALUE self)
|
69
79
|
{
|
70
80
|
return INT2NUM(_SELF(self)->width);
|
71
81
|
}
|
72
82
|
|
73
83
|
static VALUE
|
74
|
-
|
84
|
+
rg_height(VALUE self)
|
75
85
|
{
|
76
86
|
return INT2NUM(_SELF(self)->height);
|
77
87
|
}
|
78
88
|
|
79
89
|
static VALUE
|
80
|
-
|
90
|
+
rg_set_x(VALUE self, VALUE x)
|
81
91
|
{
|
82
92
|
_SELF(self)->x = NUM2INT(x);
|
83
93
|
return self;
|
84
94
|
}
|
85
95
|
|
86
96
|
static VALUE
|
87
|
-
|
97
|
+
rg_set_y(VALUE self, VALUE y)
|
88
98
|
{
|
89
99
|
_SELF(self)->y = NUM2INT(y);
|
90
100
|
return self;
|
91
101
|
}
|
92
102
|
static VALUE
|
93
|
-
|
103
|
+
rg_set_width(VALUE self, VALUE width)
|
94
104
|
{
|
95
105
|
_SELF(self)->width = NUM2INT(width);
|
96
106
|
return self;
|
97
107
|
}
|
98
108
|
|
99
109
|
static VALUE
|
100
|
-
|
110
|
+
rg_set_height(VALUE self, VALUE height)
|
101
111
|
{
|
102
112
|
_SELF(self)->height = NUM2INT(height);
|
103
113
|
return self;
|
104
114
|
}
|
105
115
|
static VALUE
|
106
|
-
|
116
|
+
rg_to_a(VALUE self)
|
107
117
|
{
|
108
118
|
PangoRectangle* a = _SELF(self);
|
109
119
|
return rb_ary_new3(4, INT2FIX(a->x), INT2FIX(a->y),
|
@@ -111,53 +121,52 @@ pango_rectangle_to_a(VALUE self)
|
|
111
121
|
}
|
112
122
|
|
113
123
|
static VALUE
|
114
|
-
|
124
|
+
rg_ascent(VALUE self)
|
115
125
|
{
|
116
126
|
PangoRectangle* r =_SELF(self);
|
117
127
|
return INT2NUM(PANGO_ASCENT(*r));
|
118
128
|
}
|
119
129
|
|
120
130
|
static VALUE
|
121
|
-
|
131
|
+
rg_descent(VALUE self)
|
122
132
|
{
|
123
133
|
PangoRectangle* r =_SELF(self);
|
124
134
|
return INT2NUM(PANGO_DESCENT(*r));
|
125
135
|
}
|
126
136
|
|
127
137
|
static VALUE
|
128
|
-
|
138
|
+
rg_lbearing(VALUE self)
|
129
139
|
{
|
130
140
|
PangoRectangle* r =_SELF(self);
|
131
141
|
return INT2NUM(PANGO_LBEARING(*r));
|
132
142
|
}
|
133
143
|
|
134
144
|
static VALUE
|
135
|
-
|
145
|
+
rg_rbearing(VALUE self)
|
136
146
|
{
|
137
147
|
PangoRectangle* r =_SELF(self);
|
138
148
|
return INT2NUM(PANGO_RBEARING(*r));
|
139
149
|
}
|
140
150
|
|
141
|
-
|
142
151
|
void
|
143
|
-
Init_pango_rectangle()
|
144
|
-
{
|
145
|
-
VALUE
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
G_DEF_SETTERS(
|
152
|
+
Init_pango_rectangle(VALUE mPango)
|
153
|
+
{
|
154
|
+
VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(PANGO_TYPE_RECTANGLE, "Rectangle", mPango);
|
155
|
+
RG_DEF_METHOD(initialize, 4);
|
156
|
+
RG_DEF_METHOD(x, 0);
|
157
|
+
RG_DEF_METHOD(y, 0);
|
158
|
+
RG_DEF_METHOD(width, 0);
|
159
|
+
RG_DEF_METHOD(height, 0);
|
160
|
+
RG_DEF_METHOD(set_x, 1);
|
161
|
+
RG_DEF_METHOD(set_y, 1);
|
162
|
+
RG_DEF_METHOD(set_width, 1);
|
163
|
+
RG_DEF_METHOD(set_height, 1);
|
164
|
+
RG_DEF_METHOD(to_a, 0);
|
165
|
+
|
166
|
+
RG_DEF_METHOD(ascent, 0);
|
167
|
+
RG_DEF_METHOD(descent, 0);
|
168
|
+
RG_DEF_METHOD(lbearing, 0);
|
169
|
+
RG_DEF_METHOD(rbearing, 0);
|
170
|
+
|
171
|
+
G_DEF_SETTERS(RG_TARGET_NAMESPACE);
|
163
172
|
}
|