pango 3.1.1-x86-mingw32 → 3.1.2-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (307) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +27 -5
  3. data/ext/pango/depend +2 -2
  4. data/ext/pango/extconf.rb +32 -28
  5. data/ext/pango/pango.def +0 -16
  6. data/ext/pango/rb-pango-attr-list.c +64 -0
  7. data/ext/pango/rb-pango-attribute.c +147 -0
  8. data/ext/pango/rb-pango-context.c +79 -0
  9. data/ext/pango/{rbpangoconversions.h → rb-pango-conversions.h} +4 -6
  10. data/ext/pango/rb-pango-private.h +27 -0
  11. data/ext/pango/rb-pango.c +32 -0
  12. data/ext/pango/rb-pango.h +29 -0
  13. data/extconf.rb +25 -9
  14. data/lib/2.2/pango.so +0 -0
  15. data/lib/2.3/pango.so +0 -0
  16. data/lib/2.4/pango.so +0 -0
  17. data/lib/pango.rb +24 -68
  18. data/lib/pango/cairo-loader.rb +63 -0
  19. data/lib/pango/color.rb +31 -0
  20. data/lib/pango/deprecated.rb +37 -0
  21. data/lib/pango/font-description.rb +29 -0
  22. data/lib/pango/language.rb +29 -0
  23. data/lib/pango/layout.rb +41 -0
  24. data/lib/pango/loader.rb +87 -0
  25. data/lib/pango/markup.rb +31 -0
  26. data/lib/pango/matrix.rb +64 -0
  27. data/lib/pango/rectangle.rb +28 -0
  28. data/lib/pango/version.rb +30 -0
  29. data/test/pango-test-utils.rb +7 -7
  30. data/test/run-test.rb +34 -8
  31. data/test/test-attr-list.rb +28 -0
  32. data/test/test-color.rb +1 -3
  33. data/test/test-context.rb +4 -4
  34. data/test/test-enum.rb +37 -0
  35. data/test/test-font-description.rb +31 -0
  36. data/test/test-language.rb +2 -1
  37. data/test/test-layout.rb +12 -0
  38. data/test/test-markup.rb +30 -0
  39. data/test/test-matrix.rb +131 -5
  40. data/test/test-rectangle.rb +16 -3
  41. data/vendor/local/bin/derb.exe +0 -0
  42. data/vendor/local/bin/genbrk.exe +0 -0
  43. data/vendor/local/bin/genccode.exe +0 -0
  44. data/vendor/local/bin/gencfu.exe +0 -0
  45. data/vendor/local/bin/gencmn.exe +0 -0
  46. data/vendor/local/bin/gencnval.exe +0 -0
  47. data/vendor/local/bin/gendict.exe +0 -0
  48. data/vendor/local/bin/gennorm2.exe +0 -0
  49. data/vendor/local/bin/genrb.exe +0 -0
  50. data/vendor/local/bin/gensprep.exe +0 -0
  51. data/vendor/local/bin/hb-ot-shape-closure.exe +0 -0
  52. data/vendor/local/bin/hb-shape.exe +0 -0
  53. data/vendor/local/bin/hb-view.exe +0 -0
  54. data/vendor/local/bin/icuinfo.exe +0 -0
  55. data/vendor/local/bin/icupkg.exe +0 -0
  56. data/vendor/local/bin/libgraphene-1.0-0.dll +0 -0
  57. data/vendor/local/bin/libharfbuzz-0.dll +0 -0
  58. data/vendor/local/bin/libpango-1.0-0.dll +0 -0
  59. data/vendor/local/bin/libpangocairo-1.0-0.dll +0 -0
  60. data/vendor/local/bin/libpangoft2-1.0-0.dll +0 -0
  61. data/vendor/local/bin/libpangowin32-1.0-0.dll +0 -0
  62. data/vendor/local/bin/makeconv.exe +0 -0
  63. data/vendor/local/bin/pango-view.exe +0 -0
  64. data/vendor/local/bin/pkgdata.exe +0 -0
  65. data/vendor/local/bin/uconv.exe +0 -0
  66. data/vendor/local/include/graphene-1.0/graphene-box.h +148 -0
  67. data/vendor/local/include/graphene-1.0/graphene-euler.h +140 -0
  68. data/vendor/local/include/graphene-1.0/graphene-frustum.h +93 -0
  69. data/vendor/local/include/graphene-1.0/graphene-gobject.h +119 -0
  70. data/vendor/local/include/graphene-1.0/graphene-macros.h +105 -0
  71. data/vendor/local/include/graphene-1.0/graphene-matrix.h +288 -0
  72. data/vendor/local/include/graphene-1.0/graphene-plane.h +99 -0
  73. data/vendor/local/include/graphene-1.0/graphene-point.h +120 -0
  74. data/vendor/local/include/graphene-1.0/graphene-point3d.h +140 -0
  75. data/vendor/local/include/graphene-1.0/graphene-quad.h +80 -0
  76. data/vendor/local/include/graphene-1.0/graphene-quaternion.h +136 -0
  77. data/vendor/local/include/graphene-1.0/graphene-ray.h +98 -0
  78. data/vendor/local/include/graphene-1.0/graphene-rect.h +180 -0
  79. data/vendor/local/include/graphene-1.0/graphene-simd4f.h +1870 -0
  80. data/vendor/local/include/graphene-1.0/graphene-simd4x4f.h +1045 -0
  81. data/vendor/local/include/graphene-1.0/graphene-size.h +105 -0
  82. data/vendor/local/include/graphene-1.0/graphene-sphere.h +97 -0
  83. data/vendor/local/include/graphene-1.0/graphene-triangle.h +105 -0
  84. data/vendor/local/include/graphene-1.0/graphene-types.h +88 -0
  85. data/vendor/local/include/graphene-1.0/graphene-vec2.h +130 -0
  86. data/vendor/local/include/graphene-1.0/graphene-vec3.h +155 -0
  87. data/vendor/local/include/graphene-1.0/graphene-vec4.h +156 -0
  88. data/vendor/local/include/graphene-1.0/graphene-version-macros.h +185 -0
  89. data/vendor/local/include/graphene-1.0/graphene-version.h +70 -0
  90. data/vendor/local/include/graphene-1.0/graphene.h +61 -0
  91. data/vendor/local/include/harfbuzz/hb-common.h +36 -0
  92. data/vendor/local/include/harfbuzz/hb-font.h +18 -1
  93. data/vendor/local/include/harfbuzz/hb-ot-var.h +105 -0
  94. data/vendor/local/include/harfbuzz/hb-ot.h +1 -0
  95. data/vendor/local/include/harfbuzz/hb-shape.h +0 -16
  96. data/vendor/local/include/harfbuzz/hb-version.h +2 -2
  97. data/vendor/local/include/pango-1.0/pango/pango-engine.h +6 -6
  98. data/vendor/local/include/pango-1.0/pango/pango-features.h +2 -2
  99. data/vendor/local/include/pango-1.0/pango/pango-layout.h +1 -1
  100. data/vendor/local/lib/girepository-1.0/Graphene-1.0.typelib +0 -0
  101. data/vendor/local/lib/girepository-1.0/Pango-1.0.typelib +0 -0
  102. data/vendor/local/lib/graphene-1.0/include/graphene-config.h +89 -0
  103. data/vendor/local/lib/icudt.dll +0 -0
  104. data/vendor/local/lib/icudt58.dll +0 -0
  105. data/vendor/local/lib/icuin.dll +0 -0
  106. data/vendor/local/lib/icuin58.dll +0 -0
  107. data/vendor/local/lib/icuio.dll +0 -0
  108. data/vendor/local/lib/icuio58.dll +0 -0
  109. data/vendor/local/lib/icutest.dll +0 -0
  110. data/vendor/local/lib/icutest58.dll +0 -0
  111. data/vendor/local/lib/icutu.dll +0 -0
  112. data/vendor/local/lib/icutu58.dll +0 -0
  113. data/vendor/local/lib/icuuc.dll +0 -0
  114. data/vendor/local/lib/icuuc58.dll +0 -0
  115. data/vendor/local/lib/libgraphene-1.0.dll.a +0 -0
  116. data/vendor/local/lib/libgraphene-1.0.la +41 -0
  117. data/vendor/local/lib/libharfbuzz-icu.a +0 -0
  118. data/vendor/local/lib/libharfbuzz-icu.la +1 -1
  119. data/vendor/local/lib/libharfbuzz.dll.a +0 -0
  120. data/vendor/local/lib/libharfbuzz.la +1 -1
  121. data/vendor/local/lib/libicudt.dll.a +0 -0
  122. data/vendor/local/lib/libicudt58.dll +0 -0
  123. data/vendor/local/lib/libicuin.dll.a +0 -0
  124. data/vendor/local/lib/libicuio.dll.a +0 -0
  125. data/vendor/local/lib/libicutest.dll.a +0 -0
  126. data/vendor/local/lib/libicutu.dll.a +0 -0
  127. data/vendor/local/lib/libicuuc.dll.a +0 -0
  128. data/vendor/local/lib/libpango-1.0.dll.a +0 -0
  129. data/vendor/local/lib/libpango-1.0.la +1 -1
  130. data/vendor/local/lib/libpangocairo-1.0.dll.a +0 -0
  131. data/vendor/local/lib/libpangocairo-1.0.la +1 -1
  132. data/vendor/local/lib/libpangoft2-1.0.dll.a +0 -0
  133. data/vendor/local/lib/libpangoft2-1.0.la +1 -1
  134. data/vendor/local/lib/libpangowin32-1.0.dll.a +0 -0
  135. data/vendor/local/lib/libpangowin32-1.0.la +1 -1
  136. data/vendor/local/lib/pkgconfig/graphene-1.0.pc +15 -0
  137. data/vendor/local/lib/pkgconfig/graphene-gobject-1.0.pc +15 -0
  138. data/vendor/local/lib/pkgconfig/harfbuzz-icu.pc +1 -1
  139. data/vendor/local/lib/pkgconfig/harfbuzz.pc +1 -1
  140. data/vendor/local/lib/pkgconfig/pango.pc +1 -1
  141. data/vendor/local/lib/pkgconfig/pangocairo.pc +1 -1
  142. data/vendor/local/lib/pkgconfig/pangoft2.pc +1 -1
  143. data/vendor/local/lib/pkgconfig/pangowin32.pc +1 -1
  144. data/vendor/local/share/gir-1.0/Graphene-1.0.gir +8180 -0
  145. data/vendor/local/share/gir-1.0/Pango-1.0.gir +12 -16
  146. data/vendor/local/share/gtk-doc/html/graphene/annotation-glossary.html +57 -0
  147. data/vendor/local/share/gtk-doc/html/graphene/api-index.html +1985 -0
  148. data/vendor/local/share/gtk-doc/html/graphene/ch01.html +97 -0
  149. data/vendor/local/share/gtk-doc/html/graphene/deprecated-api-index.html +34 -0
  150. data/vendor/local/share/gtk-doc/html/graphene/graphene-Box.html +1252 -0
  151. data/vendor/local/share/gtk-doc/html/graphene/graphene-Euler.html +886 -0
  152. data/vendor/local/share/gtk-doc/html/graphene/graphene-Frustum.html +527 -0
  153. data/vendor/local/share/gtk-doc/html/graphene/graphene-GObject-integration.html +147 -0
  154. data/vendor/local/share/gtk-doc/html/graphene/graphene-Matrix.html +2959 -0
  155. data/vendor/local/share/gtk-doc/html/graphene/graphene-Plane.html +641 -0
  156. data/vendor/local/share/gtk-doc/html/graphene/graphene-Point.html +689 -0
  157. data/vendor/local/share/gtk-doc/html/graphene/graphene-Point3D.html +916 -0
  158. data/vendor/local/share/gtk-doc/html/graphene/graphene-Quad.html +418 -0
  159. data/vendor/local/share/gtk-doc/html/graphene/graphene-Quaternion.html +1056 -0
  160. data/vendor/local/share/gtk-doc/html/graphene/graphene-Ray.html +596 -0
  161. data/vendor/local/share/gtk-doc/html/graphene/graphene-Rectangle.html +1483 -0
  162. data/vendor/local/share/gtk-doc/html/graphene/graphene-SIMD-matrix.html +1475 -0
  163. data/vendor/local/share/gtk-doc/html/graphene/graphene-SIMD-vector.html +3046 -0
  164. data/vendor/local/share/gtk-doc/html/graphene/graphene-Size.html +489 -0
  165. data/vendor/local/share/gtk-doc/html/graphene/graphene-Sphere.html +641 -0
  166. data/vendor/local/share/gtk-doc/html/graphene/graphene-Triangle.html +705 -0
  167. data/vendor/local/share/gtk-doc/html/graphene/graphene-Vectors.html +3715 -0
  168. data/vendor/local/share/gtk-doc/html/graphene/graphene-Versioning-information.html +104 -0
  169. data/vendor/local/share/gtk-doc/html/graphene/graphene.devhelp2 +534 -0
  170. data/vendor/local/share/gtk-doc/html/graphene/home.png +0 -0
  171. data/vendor/local/share/gtk-doc/html/graphene/index.html +107 -0
  172. data/vendor/local/share/gtk-doc/html/graphene/ix03.html +1313 -0
  173. data/vendor/local/share/gtk-doc/html/graphene/ix04.html +582 -0
  174. data/vendor/local/share/gtk-doc/html/graphene/ix05.html +151 -0
  175. data/vendor/local/share/gtk-doc/html/graphene/ix06.html +34 -0
  176. data/vendor/local/share/gtk-doc/html/graphene/left-insensitive.png +0 -0
  177. data/vendor/local/share/gtk-doc/html/graphene/left.png +0 -0
  178. data/vendor/local/share/gtk-doc/html/{pango/api-index-1-40.html → graphene/object-tree.html} +14 -11
  179. data/vendor/local/share/gtk-doc/html/graphene/rectangle-intersection.png +0 -0
  180. data/vendor/local/share/gtk-doc/html/graphene/rectangle-union.png +0 -0
  181. data/vendor/local/share/gtk-doc/html/graphene/rectangle.png +0 -0
  182. data/vendor/local/share/gtk-doc/html/graphene/right-insensitive.png +0 -0
  183. data/vendor/local/share/gtk-doc/html/graphene/right.png +0 -0
  184. data/vendor/local/share/gtk-doc/html/graphene/style.css +479 -0
  185. data/vendor/local/share/gtk-doc/html/graphene/triangle-barycentric.png +0 -0
  186. data/vendor/local/share/gtk-doc/html/graphene/up-insensitive.png +0 -0
  187. data/vendor/local/share/gtk-doc/html/graphene/up.png +0 -0
  188. data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-1-2-3.html +2 -2
  189. data/vendor/local/share/gtk-doc/html/harfbuzz/{api-index-1-4-0.html → api-index-1-3-3.html} +2 -2
  190. data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-full.html +104 -0
  191. data/vendor/local/share/gtk-doc/html/harfbuzz/deprecated-api-index.html +9 -2
  192. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-Shaping.html +1 -1
  193. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-font.html +156 -40
  194. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-gobject.html +73 -0
  195. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-graphite2.html +1 -0
  196. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-layout.html +49 -0
  197. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-math.html +174 -177
  198. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-shape-plan.html +40 -0
  199. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-version.html +2 -2
  200. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz.devhelp2 +28 -10
  201. data/vendor/local/share/gtk-doc/html/harfbuzz/index.html +1 -1
  202. data/vendor/local/share/gtk-doc/html/harfbuzz/pt02.html +2 -2
  203. data/vendor/local/share/gtk-doc/html/pango/PangoEngineLang.html +2 -2
  204. data/vendor/local/share/gtk-doc/html/pango/PangoEngineShape.html +2 -2
  205. data/vendor/local/share/gtk-doc/html/pango/PangoFcDecoder.html +1 -1
  206. data/vendor/local/share/gtk-doc/html/pango/PangoFcFont.html +1 -1
  207. data/vendor/local/share/gtk-doc/html/pango/PangoFcFontMap.html +3 -3
  208. data/vendor/local/share/gtk-doc/html/pango/PangoMarkupFormat.html +1 -1
  209. data/vendor/local/share/gtk-doc/html/pango/PangoRenderer.html +2 -2
  210. data/vendor/local/share/gtk-doc/html/pango/annotation-glossary.html +1 -1
  211. data/vendor/local/share/gtk-doc/html/pango/api-index-full.html +1 -1
  212. data/vendor/local/share/gtk-doc/html/pango/index.html +2 -23
  213. data/vendor/local/share/gtk-doc/html/pango/lowlevel.html +1 -1
  214. data/vendor/local/share/gtk-doc/html/pango/pango-Bidirectional-Text.html +1 -1
  215. data/vendor/local/share/gtk-doc/html/pango/pango-Cairo-Rendering.html +69 -69
  216. data/vendor/local/share/gtk-doc/html/pango/pango-CoreText-Fonts.html +1 -1
  217. data/vendor/local/share/gtk-doc/html/pango/pango-Coverage-Maps.html +1 -1
  218. data/vendor/local/share/gtk-doc/html/pango/pango-Engines.html +5 -1
  219. data/vendor/local/share/gtk-doc/html/pango/pango-Fonts.html +5 -4
  220. data/vendor/local/share/gtk-doc/html/pango/pango-FreeType-Fonts-and-Rendering.html +8 -4
  221. data/vendor/local/share/gtk-doc/html/pango/pango-Glyph-Storage.html +3 -3
  222. data/vendor/local/share/gtk-doc/html/pango/pango-Layout-Objects.html +4 -4
  223. data/vendor/local/share/gtk-doc/html/pango/pango-Miscellaneous-Utilities.html +1 -1
  224. data/vendor/local/share/gtk-doc/html/pango/pango-Modules.html +3 -1
  225. data/vendor/local/share/gtk-doc/html/pango/pango-OpenType-Font-Handling.html +1 -1
  226. data/vendor/local/share/gtk-doc/html/pango/pango-Scripts-and-Languages.html +3 -3
  227. data/vendor/local/share/gtk-doc/html/pango/pango-Tab-Stops.html +1 -1
  228. data/vendor/local/share/gtk-doc/html/pango/pango-Text-Attributes.html +1 -1
  229. data/vendor/local/share/gtk-doc/html/pango/pango-Text-Processing.html +3 -3
  230. data/vendor/local/share/gtk-doc/html/pango/pango-Version-Checking.html +3 -3
  231. data/vendor/local/share/gtk-doc/html/pango/pango-Vertical-Text.html +1 -1
  232. data/vendor/local/share/gtk-doc/html/pango/pango-Win32-Fonts-and-Rendering.html +3 -3
  233. data/vendor/local/share/gtk-doc/html/pango/pango-Xft-Fonts-and-Rendering.html +1 -1
  234. data/vendor/local/share/gtk-doc/html/pango/pango-hierarchy.html +1 -1
  235. data/vendor/local/share/gtk-doc/html/pango/pango.html +1 -1
  236. data/vendor/local/share/gtk-doc/html/pango/rendering.html +1 -1
  237. data/vendor/local/share/man/man1/pango-view.1 +2 -2
  238. metadata +119 -78
  239. data/README +0 -32
  240. data/ext/pango/rbpango.c +0 -356
  241. data/ext/pango/rbpango.h +0 -95
  242. data/ext/pango/rbpangoanalysis.c +0 -218
  243. data/ext/pango/rbpangoattribute.c +0 -506
  244. data/ext/pango/rbpangoattriterator.c +0 -141
  245. data/ext/pango/rbpangoattrlist.c +0 -101
  246. data/ext/pango/rbpangocairo.c +0 -122
  247. data/ext/pango/rbpangocairocontext.c +0 -131
  248. data/ext/pango/rbpangocolor.c +0 -120
  249. data/ext/pango/rbpangocontext.c +0 -344
  250. data/ext/pango/rbpangocoverage.c +0 -106
  251. data/ext/pango/rbpangoengine.c +0 -73
  252. data/ext/pango/rbpangofont.c +0 -110
  253. data/ext/pango/rbpangofontdescription.c +0 -282
  254. data/ext/pango/rbpangofontface.c +0 -73
  255. data/ext/pango/rbpangofontfamily.c +0 -79
  256. data/ext/pango/rbpangofontmap.c +0 -102
  257. data/ext/pango/rbpangofontmetrics.c +0 -85
  258. data/ext/pango/rbpangofontset.c +0 -69
  259. data/ext/pango/rbpangofontsetsimple.c +0 -60
  260. data/ext/pango/rbpangoglyphinfo.c +0 -123
  261. data/ext/pango/rbpangoglyphitem.c +0 -125
  262. data/ext/pango/rbpangoglyphstring.c +0 -151
  263. data/ext/pango/rbpangogravity.c +0 -54
  264. data/ext/pango/rbpangoitem.c +0 -95
  265. data/ext/pango/rbpangolanguage.c +0 -94
  266. data/ext/pango/rbpangolayout.c +0 -583
  267. data/ext/pango/rbpangolayoutiter.c +0 -189
  268. data/ext/pango/rbpangolayoutline.c +0 -243
  269. data/ext/pango/rbpangologattr.c +0 -109
  270. data/ext/pango/rbpangomatrix.c +0 -143
  271. data/ext/pango/rbpangoprivate.h +0 -49
  272. data/ext/pango/rbpangorectangle.c +0 -170
  273. data/ext/pango/rbpangorenderer.c +0 -193
  274. data/ext/pango/rbpangoscript.c +0 -84
  275. data/ext/pango/rbpangoscriptiter.c +0 -92
  276. data/ext/pango/rbpangotabarray.c +0 -128
  277. data/sample/attribute.rb +0 -82
  278. data/sample/break.rb +0 -28
  279. data/sample/gdk_layout.rb +0 -27
  280. data/sample/glyphstring.rb +0 -61
  281. data/sample/item.rb +0 -37
  282. data/sample/label.rb +0 -23
  283. data/sample/layout.rb +0 -102
  284. data/sample/pango_cairo.rb +0 -66
  285. data/sample/parse.rb +0 -33
  286. data/sample/sample.txt +0 -10
  287. data/sample/script.rb +0 -23
  288. data/vendor/local/share/gtk-doc/html/pango/api-index-1-10.html +0 -134
  289. data/vendor/local/share/gtk-doc/html/pango/api-index-1-12.html +0 -48
  290. data/vendor/local/share/gtk-doc/html/pango/api-index-1-14.html +0 -63
  291. data/vendor/local/share/gtk-doc/html/pango/api-index-1-16.html +0 -227
  292. data/vendor/local/share/gtk-doc/html/pango/api-index-1-18.html +0 -151
  293. data/vendor/local/share/gtk-doc/html/pango/api-index-1-2.html +0 -121
  294. data/vendor/local/share/gtk-doc/html/pango/api-index-1-20.html +0 -86
  295. data/vendor/local/share/gtk-doc/html/pango/api-index-1-22.html +0 -123
  296. data/vendor/local/share/gtk-doc/html/pango/api-index-1-24.html +0 -96
  297. data/vendor/local/share/gtk-doc/html/pango/api-index-1-26.html +0 -45
  298. data/vendor/local/share/gtk-doc/html/pango/api-index-1-30.html +0 -38
  299. data/vendor/local/share/gtk-doc/html/pango/api-index-1-31-0.html +0 -38
  300. data/vendor/local/share/gtk-doc/html/pango/api-index-1-32-4.html +0 -52
  301. data/vendor/local/share/gtk-doc/html/pango/api-index-1-32.html +0 -41
  302. data/vendor/local/share/gtk-doc/html/pango/api-index-1-34.html +0 -38
  303. data/vendor/local/share/gtk-doc/html/pango/api-index-1-38.html +0 -79
  304. data/vendor/local/share/gtk-doc/html/pango/api-index-1-4.html +0 -200
  305. data/vendor/local/share/gtk-doc/html/pango/api-index-1-6.html +0 -164
  306. data/vendor/local/share/gtk-doc/html/pango/api-index-1-8.html +0 -170
  307. data/vendor/local/share/gtk-doc/html/pango/api-index-deprecated.html +0 -441
@@ -0,0 +1,689 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
+ <title>Point: Graphene Reference Manual</title>
6
+ <meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7
+ <link rel="home" href="index.html" title="Graphene Reference Manual">
8
+ <link rel="up" href="ch01.html" title="Graphene">
9
+ <link rel="prev" href="ch01.html" title="Graphene">
10
+ <link rel="next" href="graphene-Point3D.html" title="Point3D">
11
+ <meta name="generator" content="GTK-Doc V1.25 (XML mode)">
12
+ <link rel="stylesheet" href="style.css" type="text/css">
13
+ </head>
14
+ <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
+ <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
16
+ <td width="100%" align="left" class="shortcuts">
17
+ <a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
18
+ <a href="#graphene-Point.description" class="shortcut">Description</a></span>
19
+ </td>
20
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
21
+ <td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
22
+ <td><a accesskey="p" href="ch01.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
23
+ <td><a accesskey="n" href="graphene-Point3D.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
24
+ </tr></table>
25
+ <div class="refentry">
26
+ <a name="graphene-Point"></a><div class="titlepage"></div>
27
+ <div class="refnamediv"><table width="100%"><tr>
28
+ <td valign="top">
29
+ <h2><span class="refentrytitle"><a name="graphene-Point.top_of_page"></a>Point</span></h2>
30
+ <p>Point — A point with 2 coordinates</p>
31
+ </td>
32
+ <td class="gallery_image" valign="top" align="right"></td>
33
+ </tr></table></div>
34
+ <div class="refsect1">
35
+ <a name="graphene-Point.functions"></a><h2>Functions</h2>
36
+ <div class="informaltable"><table class="informaltable" width="100%" border="0">
37
+ <colgroup>
38
+ <col width="150px" class="functions_return">
39
+ <col class="functions_name">
40
+ </colgroup>
41
+ <tbody>
42
+ <tr>
43
+ <td class="define_keyword">#define</td>
44
+ <td class="function_name">
45
+ <a class="link" href="graphene-Point.html#GRAPHENE-POINT-INIT:CAPS" title="GRAPHENE_POINT_INIT()">GRAPHENE_POINT_INIT</a><span class="c_punctuation">()</span>
46
+ </td>
47
+ </tr>
48
+ <tr>
49
+ <td class="function_type">
50
+ <a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="returnvalue">graphene_point_t</span></a> *
51
+ </td>
52
+ <td class="function_name">
53
+ <a class="link" href="graphene-Point.html#graphene-point-alloc" title="graphene_point_alloc ()">graphene_point_alloc</a> <span class="c_punctuation">()</span>
54
+ </td>
55
+ </tr>
56
+ <tr>
57
+ <td class="function_type">
58
+ <span class="returnvalue">void</span>
59
+ </td>
60
+ <td class="function_name">
61
+ <a class="link" href="graphene-Point.html#graphene-point-free" title="graphene_point_free ()">graphene_point_free</a> <span class="c_punctuation">()</span>
62
+ </td>
63
+ </tr>
64
+ <tr>
65
+ <td class="function_type">
66
+ <a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="returnvalue">graphene_point_t</span></a> *
67
+ </td>
68
+ <td class="function_name">
69
+ <a class="link" href="graphene-Point.html#graphene-point-init" title="graphene_point_init ()">graphene_point_init</a> <span class="c_punctuation">()</span>
70
+ </td>
71
+ </tr>
72
+ <tr>
73
+ <td class="function_type">
74
+ <a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="returnvalue">graphene_point_t</span></a> *
75
+ </td>
76
+ <td class="function_name">
77
+ <a class="link" href="graphene-Point.html#graphene-point-init-from-point" title="graphene_point_init_from_point ()">graphene_point_init_from_point</a> <span class="c_punctuation">()</span>
78
+ </td>
79
+ </tr>
80
+ <tr>
81
+ <td class="function_type">
82
+ <a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="returnvalue">graphene_point_t</span></a> *
83
+ </td>
84
+ <td class="function_name">
85
+ <a class="link" href="graphene-Point.html#graphene-point-init-from-vec2" title="graphene_point_init_from_vec2 ()">graphene_point_init_from_vec2</a> <span class="c_punctuation">()</span>
86
+ </td>
87
+ </tr>
88
+ <tr>
89
+ <td class="function_type">
90
+ <span class="returnvalue">bool</span>
91
+ </td>
92
+ <td class="function_name">
93
+ <a class="link" href="graphene-Point.html#graphene-point-equal" title="graphene_point_equal ()">graphene_point_equal</a> <span class="c_punctuation">()</span>
94
+ </td>
95
+ </tr>
96
+ <tr>
97
+ <td class="function_type">
98
+ <span class="returnvalue">float</span>
99
+ </td>
100
+ <td class="function_name">
101
+ <a class="link" href="graphene-Point.html#graphene-point-distance" title="graphene_point_distance ()">graphene_point_distance</a> <span class="c_punctuation">()</span>
102
+ </td>
103
+ </tr>
104
+ <tr>
105
+ <td class="function_type">
106
+ <span class="returnvalue">bool</span>
107
+ </td>
108
+ <td class="function_name">
109
+ <a class="link" href="graphene-Point.html#graphene-point-near" title="graphene_point_near ()">graphene_point_near</a> <span class="c_punctuation">()</span>
110
+ </td>
111
+ </tr>
112
+ <tr>
113
+ <td class="function_type">
114
+ <span class="returnvalue">void</span>
115
+ </td>
116
+ <td class="function_name">
117
+ <a class="link" href="graphene-Point.html#graphene-point-interpolate" title="graphene_point_interpolate ()">graphene_point_interpolate</a> <span class="c_punctuation">()</span>
118
+ </td>
119
+ </tr>
120
+ <tr>
121
+ <td class="function_type">
122
+ <span class="returnvalue">void</span>
123
+ </td>
124
+ <td class="function_name">
125
+ <a class="link" href="graphene-Point.html#graphene-point-to-vec2" title="graphene_point_to_vec2 ()">graphene_point_to_vec2</a> <span class="c_punctuation">()</span>
126
+ </td>
127
+ </tr>
128
+ <tr>
129
+ <td class="function_type">const <a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="returnvalue">graphene_point_t</span></a> *
130
+ </td>
131
+ <td class="function_name">
132
+ <a class="link" href="graphene-Point.html#graphene-point-zero" title="graphene_point_zero ()">graphene_point_zero</a> <span class="c_punctuation">()</span>
133
+ </td>
134
+ </tr>
135
+ </tbody>
136
+ </table></div>
137
+ </div>
138
+ <div class="refsect1">
139
+ <a name="graphene-Point.other"></a><h2>Types and Values</h2>
140
+ <div class="informaltable"><table class="informaltable" width="100%" border="0">
141
+ <colgroup>
142
+ <col width="150px" class="name">
143
+ <col class="description">
144
+ </colgroup>
145
+ <tbody>
146
+ <tr>
147
+ <td class="define_keyword">#define</td>
148
+ <td class="function_name"><a class="link" href="graphene-Point.html#GRAPHENE-POINT-INIT-ZERO:CAPS" title="GRAPHENE_POINT_INIT_ZERO">GRAPHENE_POINT_INIT_ZERO</a></td>
149
+ </tr>
150
+ <tr>
151
+ <td class="datatype_keyword"> </td>
152
+ <td class="function_name"><a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t">graphene_point_t</a></td>
153
+ </tr>
154
+ </tbody>
155
+ </table></div>
156
+ </div>
157
+ <div class="refsect1">
158
+ <a name="graphene-Point.includes"></a><h2>Includes</h2>
159
+ <pre class="synopsis">#include &lt;graphene.h&gt;
160
+ </pre>
161
+ </div>
162
+ <div class="refsect1">
163
+ <a name="graphene-Point.description"></a><h2>Description</h2>
164
+ <p><a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="type">graphene_point_t</span></a> is a data structure capable of describing a point with
165
+ two coordinates:</p>
166
+ <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
167
+ <li class="listitem"><p><em class="parameter"><code>graphene_point_t.x</code></em>
168
+ </p></li>
169
+ <li class="listitem"><p><em class="parameter"><code>graphene_point_t.y</code></em>
170
+ </p></li>
171
+ </ul></div>
172
+ </div>
173
+ <div class="refsect1">
174
+ <a name="graphene-Point.functions_details"></a><h2>Functions</h2>
175
+ <div class="refsect2">
176
+ <a name="GRAPHENE-POINT-INIT:CAPS"></a><h3>GRAPHENE_POINT_INIT()</h3>
177
+ <pre class="programlisting">#define GRAPHENE_POINT_INIT(_x,_y) (graphene_point_t) { .x = (_x), .y = (_y) }
178
+ </pre>
179
+ <p>Initializes a <a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="type">graphene_point_t</span></a> with the given coordinates
180
+ when declaring it, e.g:</p>
181
+ <div class="informalexample">
182
+ <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
183
+ <tbody>
184
+ <tr>
185
+ <td class="listing_lines" align="right"><pre>1</pre></td>
186
+ <td class="listing_code"><pre class="programlisting"><span class="usertype">graphene_point_t</span><span class="normal"> p </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="graphene-Point.html#GRAPHENE-POINT-INIT:CAPS">GRAPHENE_POINT_INIT</a></span><span class="normal"> </span><span class="symbol">(</span><span class="number">10</span><span class="symbol">.</span><span class="normal">f</span><span class="symbol">,</span><span class="normal"> </span><span class="number">10</span><span class="symbol">.</span><span class="normal">f</span><span class="symbol">);</span></pre></td>
187
+ </tr>
188
+ </tbody>
189
+ </table>
190
+ </div>
191
+
192
+ <p></p>
193
+ <div class="refsect3">
194
+ <a name="GRAPHENE-POINT-INIT.parameters"></a><h4>Parameters</h4>
195
+ <div class="informaltable"><table class="informaltable" width="100%" border="0">
196
+ <colgroup>
197
+ <col width="150px" class="parameters_name">
198
+ <col class="parameters_description">
199
+ <col width="200px" class="parameters_annotations">
200
+ </colgroup>
201
+ <tbody>
202
+ <tr>
203
+ <td class="parameter_name"><p>_x</p></td>
204
+ <td class="parameter_description"><p>the X coordinate</p></td>
205
+ <td class="parameter_annotations"> </td>
206
+ </tr>
207
+ <tr>
208
+ <td class="parameter_name"><p>_y</p></td>
209
+ <td class="parameter_description"><p>the Y coordinate</p></td>
210
+ <td class="parameter_annotations"> </td>
211
+ </tr>
212
+ </tbody>
213
+ </table></div>
214
+ </div>
215
+ <p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
216
+ </div>
217
+ <hr>
218
+ <div class="refsect2">
219
+ <a name="graphene-point-alloc"></a><h3>graphene_point_alloc ()</h3>
220
+ <pre class="programlisting"><a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="returnvalue">graphene_point_t</span></a> *
221
+ graphene_point_alloc (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
222
+ <p>Allocates a new <a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="type">graphene_point_t</span></a> structure.</p>
223
+ <p>The coordinates of the returned point are (0, 0).</p>
224
+ <p>It's possible to chain this function with <a class="link" href="graphene-Point.html#graphene-point-init" title="graphene_point_init ()"><code class="function">graphene_point_init()</code></a>
225
+ or <a class="link" href="graphene-Point.html#graphene-point-init-from-point" title="graphene_point_init_from_point ()"><code class="function">graphene_point_init_from_point()</code></a>, e.g.:</p>
226
+ <div class="informalexample">
227
+ <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
228
+ <tbody>
229
+ <tr>
230
+ <td class="listing_lines" align="right"><pre>1
231
+ 2
232
+ 3
233
+ 4
234
+ 5
235
+ 6
236
+ 7
237
+ 8
238
+ 9
239
+ 10
240
+ 11</pre></td>
241
+ <td class="listing_code"><pre class="programlisting"><span class="normal"><a href="graphene-Point.html#graphene-point-t">graphene_point_t</a> </span><span class="symbol">*</span>
242
+ <span class="function">point_new</span><span class="normal"> </span><span class="symbol">(</span><span class="type">float</span><span class="normal"> x</span><span class="symbol">,</span><span class="normal"> </span><span class="type">float</span><span class="normal"> y</span><span class="symbol">)</span>
243
+ <span class="cbracket">{</span>
244
+ <span class="normal"> </span><span class="keyword">return</span><span class="normal"> </span><span class="function"><a href="graphene-Point.html#graphene-point-init">graphene_point_init</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="graphene-Point.html#graphene-point-alloc">graphene_point_alloc</a></span><span class="normal"> </span><span class="symbol">(),</span><span class="normal"> x</span><span class="symbol">,</span><span class="normal"> y</span><span class="symbol">);</span>
245
+ <span class="cbracket">}</span>
246
+
247
+ <span class="normal"><a href="graphene-Point.html#graphene-point-t">graphene_point_t</a> </span><span class="symbol">*</span>
248
+ <span class="function">point_copy</span><span class="normal"> </span><span class="symbol">(</span><span class="keyword">const</span><span class="normal"> </span><span class="usertype">graphene_point_t</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">p</span><span class="symbol">)</span>
249
+ <span class="cbracket">{</span>
250
+ <span class="normal"> </span><span class="keyword">return</span><span class="normal"> </span><span class="function"><a href="graphene-Point.html#graphene-point-init-from-point">graphene_point_init_from_point</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="graphene-Point.html#graphene-point-alloc">graphene_point_alloc</a></span><span class="normal"> </span><span class="symbol">(),</span><span class="normal"> p</span><span class="symbol">);</span>
251
+ <span class="cbracket">}</span></pre></td>
252
+ </tr>
253
+ </tbody>
254
+ </table>
255
+ </div>
256
+
257
+ <p></p>
258
+ <p><span class="annotation">[<acronym title="This symbol is a constructor, not a static method."><span class="acronym">constructor</span></acronym>]</span></p>
259
+ <div class="refsect3">
260
+ <a name="graphene-point-alloc.returns"></a><h4>Returns</h4>
261
+ <p> the newly allocated <a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="type">graphene_point_t</span></a>.
262
+ Use <a class="link" href="graphene-Point.html#graphene-point-free" title="graphene_point_free ()"><code class="function">graphene_point_free()</code></a> to free the resources allocated by
263
+ this function. </p>
264
+ <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
265
+ </div>
266
+ <p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
267
+ </div>
268
+ <hr>
269
+ <div class="refsect2">
270
+ <a name="graphene-point-free"></a><h3>graphene_point_free ()</h3>
271
+ <pre class="programlisting"><span class="returnvalue">void</span>
272
+ graphene_point_free (<em class="parameter"><code><a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="type">graphene_point_t</span></a> *p</code></em>);</pre>
273
+ <p>Frees the resources allocated by <a class="link" href="graphene-Point.html#graphene-point-alloc" title="graphene_point_alloc ()"><code class="function">graphene_point_alloc()</code></a>.</p>
274
+ <div class="refsect3">
275
+ <a name="graphene-point-free.parameters"></a><h4>Parameters</h4>
276
+ <div class="informaltable"><table class="informaltable" width="100%" border="0">
277
+ <colgroup>
278
+ <col width="150px" class="parameters_name">
279
+ <col class="parameters_description">
280
+ <col width="200px" class="parameters_annotations">
281
+ </colgroup>
282
+ <tbody><tr>
283
+ <td class="parameter_name"><p>p</p></td>
284
+ <td class="parameter_description"><p>a <a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="type">graphene_point_t</span></a></p></td>
285
+ <td class="parameter_annotations"> </td>
286
+ </tr></tbody>
287
+ </table></div>
288
+ </div>
289
+ <p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
290
+ </div>
291
+ <hr>
292
+ <div class="refsect2">
293
+ <a name="graphene-point-init"></a><h3>graphene_point_init ()</h3>
294
+ <pre class="programlisting"><a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="returnvalue">graphene_point_t</span></a> *
295
+ graphene_point_init (<em class="parameter"><code><a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="type">graphene_point_t</span></a> *p</code></em>,
296
+ <em class="parameter"><code><span class="type">float</span> x</code></em>,
297
+ <em class="parameter"><code><span class="type">float</span> y</code></em>);</pre>
298
+ <p>Initializes <em class="parameter"><code>p</code></em>
299
+ to the given <em class="parameter"><code>x</code></em>
300
+ and <em class="parameter"><code>y</code></em>
301
+ coordinates.</p>
302
+ <p>It's safe to call this function multiple times.</p>
303
+ <div class="refsect3">
304
+ <a name="graphene-point-init.parameters"></a><h4>Parameters</h4>
305
+ <div class="informaltable"><table class="informaltable" width="100%" border="0">
306
+ <colgroup>
307
+ <col width="150px" class="parameters_name">
308
+ <col class="parameters_description">
309
+ <col width="200px" class="parameters_annotations">
310
+ </colgroup>
311
+ <tbody>
312
+ <tr>
313
+ <td class="parameter_name"><p>p</p></td>
314
+ <td class="parameter_description"><p>a <a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="type">graphene_point_t</span></a></p></td>
315
+ <td class="parameter_annotations"> </td>
316
+ </tr>
317
+ <tr>
318
+ <td class="parameter_name"><p>x</p></td>
319
+ <td class="parameter_description"><p>the X coordinate</p></td>
320
+ <td class="parameter_annotations"> </td>
321
+ </tr>
322
+ <tr>
323
+ <td class="parameter_name"><p>y</p></td>
324
+ <td class="parameter_description"><p>the Y coordinate</p></td>
325
+ <td class="parameter_annotations"> </td>
326
+ </tr>
327
+ </tbody>
328
+ </table></div>
329
+ </div>
330
+ <div class="refsect3">
331
+ <a name="graphene-point-init.returns"></a><h4>Returns</h4>
332
+ <p> the initialized point. </p>
333
+ <p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
334
+ </div>
335
+ <p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
336
+ </div>
337
+ <hr>
338
+ <div class="refsect2">
339
+ <a name="graphene-point-init-from-point"></a><h3>graphene_point_init_from_point ()</h3>
340
+ <pre class="programlisting"><a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="returnvalue">graphene_point_t</span></a> *
341
+ graphene_point_init_from_point (<em class="parameter"><code><a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="type">graphene_point_t</span></a> *p</code></em>,
342
+ <em class="parameter"><code>const <a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="type">graphene_point_t</span></a> *src</code></em>);</pre>
343
+ <p>Initializes <em class="parameter"><code>p</code></em>
344
+ with the same coordinates of <em class="parameter"><code>src</code></em>
345
+ .</p>
346
+ <div class="refsect3">
347
+ <a name="graphene-point-init-from-point.parameters"></a><h4>Parameters</h4>
348
+ <div class="informaltable"><table class="informaltable" width="100%" border="0">
349
+ <colgroup>
350
+ <col width="150px" class="parameters_name">
351
+ <col class="parameters_description">
352
+ <col width="200px" class="parameters_annotations">
353
+ </colgroup>
354
+ <tbody>
355
+ <tr>
356
+ <td class="parameter_name"><p>p</p></td>
357
+ <td class="parameter_description"><p>a <a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="type">graphene_point_t</span></a></p></td>
358
+ <td class="parameter_annotations"> </td>
359
+ </tr>
360
+ <tr>
361
+ <td class="parameter_name"><p>src</p></td>
362
+ <td class="parameter_description"><p>the <a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="type">graphene_point_t</span></a> to use</p></td>
363
+ <td class="parameter_annotations"> </td>
364
+ </tr>
365
+ </tbody>
366
+ </table></div>
367
+ </div>
368
+ <div class="refsect3">
369
+ <a name="graphene-point-init-from-point.returns"></a><h4>Returns</h4>
370
+ <p> the initialized point. </p>
371
+ <p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
372
+ </div>
373
+ <p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
374
+ </div>
375
+ <hr>
376
+ <div class="refsect2">
377
+ <a name="graphene-point-init-from-vec2"></a><h3>graphene_point_init_from_vec2 ()</h3>
378
+ <pre class="programlisting"><a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="returnvalue">graphene_point_t</span></a> *
379
+ graphene_point_init_from_vec2 (<em class="parameter"><code><a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="type">graphene_point_t</span></a> *p</code></em>,
380
+ <em class="parameter"><code>const <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *src</code></em>);</pre>
381
+ <p>Initializes <em class="parameter"><code>p</code></em>
382
+ with the coordinates inside the given <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a>.</p>
383
+ <div class="refsect3">
384
+ <a name="graphene-point-init-from-vec2.parameters"></a><h4>Parameters</h4>
385
+ <div class="informaltable"><table class="informaltable" width="100%" border="0">
386
+ <colgroup>
387
+ <col width="150px" class="parameters_name">
388
+ <col class="parameters_description">
389
+ <col width="200px" class="parameters_annotations">
390
+ </colgroup>
391
+ <tbody>
392
+ <tr>
393
+ <td class="parameter_name"><p>p</p></td>
394
+ <td class="parameter_description"><p>the <a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="type">graphene_point_t</span></a> to initialize</p></td>
395
+ <td class="parameter_annotations"> </td>
396
+ </tr>
397
+ <tr>
398
+ <td class="parameter_name"><p>src</p></td>
399
+ <td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a></p></td>
400
+ <td class="parameter_annotations"> </td>
401
+ </tr>
402
+ </tbody>
403
+ </table></div>
404
+ </div>
405
+ <div class="refsect3">
406
+ <a name="graphene-point-init-from-vec2.returns"></a><h4>Returns</h4>
407
+ <p> the initialized point. </p>
408
+ <p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
409
+ </div>
410
+ <p class="since">Since: <a class="link" href="ix05.html#api-index-1.4">1.4</a></p>
411
+ </div>
412
+ <hr>
413
+ <div class="refsect2">
414
+ <a name="graphene-point-equal"></a><h3>graphene_point_equal ()</h3>
415
+ <pre class="programlisting"><span class="returnvalue">bool</span>
416
+ graphene_point_equal (<em class="parameter"><code>const <a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="type">graphene_point_t</span></a> *a</code></em>,
417
+ <em class="parameter"><code>const <a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="type">graphene_point_t</span></a> *b</code></em>);</pre>
418
+ <p>Checks if the two points <em class="parameter"><code>a</code></em>
419
+ and <em class="parameter"><code>b</code></em>
420
+ point to the same
421
+ coordinates.</p>
422
+ <p>This function accounts for floating point fluctuations; if
423
+ you want to control the fuzziness of the match, you can use
424
+ <a class="link" href="graphene-Point.html#graphene-point-near" title="graphene_point_near ()"><code class="function">graphene_point_near()</code></a> instead.</p>
425
+ <div class="refsect3">
426
+ <a name="graphene-point-equal.parameters"></a><h4>Parameters</h4>
427
+ <div class="informaltable"><table class="informaltable" width="100%" border="0">
428
+ <colgroup>
429
+ <col width="150px" class="parameters_name">
430
+ <col class="parameters_description">
431
+ <col width="200px" class="parameters_annotations">
432
+ </colgroup>
433
+ <tbody>
434
+ <tr>
435
+ <td class="parameter_name"><p>a</p></td>
436
+ <td class="parameter_description"><p>a <a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="type">graphene_point_t</span></a></p></td>
437
+ <td class="parameter_annotations"> </td>
438
+ </tr>
439
+ <tr>
440
+ <td class="parameter_name"><p>b</p></td>
441
+ <td class="parameter_description"><p>a <a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="type">graphene_point_t</span></a></p></td>
442
+ <td class="parameter_annotations"> </td>
443
+ </tr>
444
+ </tbody>
445
+ </table></div>
446
+ </div>
447
+ <div class="refsect3">
448
+ <a name="graphene-point-equal.returns"></a><h4>Returns</h4>
449
+ <p> <code class="literal">true</code> if the points have the same coordinates</p>
450
+ </div>
451
+ <p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
452
+ </div>
453
+ <hr>
454
+ <div class="refsect2">
455
+ <a name="graphene-point-distance"></a><h3>graphene_point_distance ()</h3>
456
+ <pre class="programlisting"><span class="returnvalue">float</span>
457
+ graphene_point_distance (<em class="parameter"><code>const <a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="type">graphene_point_t</span></a> *a</code></em>,
458
+ <em class="parameter"><code>const <a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="type">graphene_point_t</span></a> *b</code></em>,
459
+ <em class="parameter"><code><span class="type">float</span> *d_x</code></em>,
460
+ <em class="parameter"><code><span class="type">float</span> *d_y</code></em>);</pre>
461
+ <p>Computes the distance between <em class="parameter"><code>a</code></em>
462
+ and <em class="parameter"><code>b</code></em>
463
+ .</p>
464
+ <div class="refsect3">
465
+ <a name="graphene-point-distance.parameters"></a><h4>Parameters</h4>
466
+ <div class="informaltable"><table class="informaltable" width="100%" border="0">
467
+ <colgroup>
468
+ <col width="150px" class="parameters_name">
469
+ <col class="parameters_description">
470
+ <col width="200px" class="parameters_annotations">
471
+ </colgroup>
472
+ <tbody>
473
+ <tr>
474
+ <td class="parameter_name"><p>a</p></td>
475
+ <td class="parameter_description"><p>a <a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="type">graphene_point_t</span></a></p></td>
476
+ <td class="parameter_annotations"> </td>
477
+ </tr>
478
+ <tr>
479
+ <td class="parameter_name"><p>b</p></td>
480
+ <td class="parameter_description"><p>a <a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="type">graphene_point_t</span></a></p></td>
481
+ <td class="parameter_annotations"> </td>
482
+ </tr>
483
+ <tr>
484
+ <td class="parameter_name"><p>d_x</p></td>
485
+ <td class="parameter_description"><p> distance component on the X axis. </p></td>
486
+ <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL may be passed instead of a pointer to a location."><span class="acronym">optional</span></acronym>]</span></td>
487
+ </tr>
488
+ <tr>
489
+ <td class="parameter_name"><p>d_y</p></td>
490
+ <td class="parameter_description"><p> distance component on the Y axis. </p></td>
491
+ <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL may be passed instead of a pointer to a location."><span class="acronym">optional</span></acronym>]</span></td>
492
+ </tr>
493
+ </tbody>
494
+ </table></div>
495
+ </div>
496
+ <div class="refsect3">
497
+ <a name="graphene-point-distance.returns"></a><h4>Returns</h4>
498
+ <p> the distance between the two points</p>
499
+ </div>
500
+ <p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
501
+ </div>
502
+ <hr>
503
+ <div class="refsect2">
504
+ <a name="graphene-point-near"></a><h3>graphene_point_near ()</h3>
505
+ <pre class="programlisting"><span class="returnvalue">bool</span>
506
+ graphene_point_near (<em class="parameter"><code>const <a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="type">graphene_point_t</span></a> *a</code></em>,
507
+ <em class="parameter"><code>const <a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="type">graphene_point_t</span></a> *b</code></em>,
508
+ <em class="parameter"><code><span class="type">float</span> epsilon</code></em>);</pre>
509
+ <p>Checks whether the two points <em class="parameter"><code>a</code></em>
510
+ and <em class="parameter"><code>b</code></em>
511
+ are within
512
+ the threshold of <em class="parameter"><code>epsilon</code></em>
513
+ .</p>
514
+ <div class="refsect3">
515
+ <a name="graphene-point-near.parameters"></a><h4>Parameters</h4>
516
+ <div class="informaltable"><table class="informaltable" width="100%" border="0">
517
+ <colgroup>
518
+ <col width="150px" class="parameters_name">
519
+ <col class="parameters_description">
520
+ <col width="200px" class="parameters_annotations">
521
+ </colgroup>
522
+ <tbody>
523
+ <tr>
524
+ <td class="parameter_name"><p>a</p></td>
525
+ <td class="parameter_description"><p>a <a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="type">graphene_point_t</span></a></p></td>
526
+ <td class="parameter_annotations"> </td>
527
+ </tr>
528
+ <tr>
529
+ <td class="parameter_name"><p>b</p></td>
530
+ <td class="parameter_description"><p>a <a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="type">graphene_point_t</span></a></p></td>
531
+ <td class="parameter_annotations"> </td>
532
+ </tr>
533
+ <tr>
534
+ <td class="parameter_name"><p>epsilon</p></td>
535
+ <td class="parameter_description"><p>threshold between the two points</p></td>
536
+ <td class="parameter_annotations"> </td>
537
+ </tr>
538
+ </tbody>
539
+ </table></div>
540
+ </div>
541
+ <div class="refsect3">
542
+ <a name="graphene-point-near.returns"></a><h4>Returns</h4>
543
+ <p> <code class="literal">true</code> if the distance is within <em class="parameter"><code>epsilon</code></em>
544
+ </p>
545
+ </div>
546
+ <p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
547
+ </div>
548
+ <hr>
549
+ <div class="refsect2">
550
+ <a name="graphene-point-interpolate"></a><h3>graphene_point_interpolate ()</h3>
551
+ <pre class="programlisting"><span class="returnvalue">void</span>
552
+ graphene_point_interpolate (<em class="parameter"><code>const <a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="type">graphene_point_t</span></a> *a</code></em>,
553
+ <em class="parameter"><code>const <a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="type">graphene_point_t</span></a> *b</code></em>,
554
+ <em class="parameter"><code><span class="type">double</span> factor</code></em>,
555
+ <em class="parameter"><code><a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="type">graphene_point_t</span></a> *res</code></em>);</pre>
556
+ <p>Linearly interpolates the coordinates of <em class="parameter"><code>a</code></em>
557
+ and <em class="parameter"><code>b</code></em>
558
+ using the
559
+ given <em class="parameter"><code>factor</code></em>
560
+ .</p>
561
+ <div class="refsect3">
562
+ <a name="graphene-point-interpolate.parameters"></a><h4>Parameters</h4>
563
+ <div class="informaltable"><table class="informaltable" width="100%" border="0">
564
+ <colgroup>
565
+ <col width="150px" class="parameters_name">
566
+ <col class="parameters_description">
567
+ <col width="200px" class="parameters_annotations">
568
+ </colgroup>
569
+ <tbody>
570
+ <tr>
571
+ <td class="parameter_name"><p>a</p></td>
572
+ <td class="parameter_description"><p>a <a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="type">graphene_point_t</span></a></p></td>
573
+ <td class="parameter_annotations"> </td>
574
+ </tr>
575
+ <tr>
576
+ <td class="parameter_name"><p>b</p></td>
577
+ <td class="parameter_description"><p>a <a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="type">graphene_point_t</span></a></p></td>
578
+ <td class="parameter_annotations"> </td>
579
+ </tr>
580
+ <tr>
581
+ <td class="parameter_name"><p>factor</p></td>
582
+ <td class="parameter_description"><p>the linear interpolation factor</p></td>
583
+ <td class="parameter_annotations"> </td>
584
+ </tr>
585
+ <tr>
586
+ <td class="parameter_name"><p>res</p></td>
587
+ <td class="parameter_description"><p> return location for the interpolated
588
+ point. </p></td>
589
+ <td class="parameter_annotations"><span class="annotation">[<acronym title="Out parameter, where caller must allocate storage."><span class="acronym">out caller-allocates</span></acronym>]</span></td>
590
+ </tr>
591
+ </tbody>
592
+ </table></div>
593
+ </div>
594
+ <p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
595
+ </div>
596
+ <hr>
597
+ <div class="refsect2">
598
+ <a name="graphene-point-to-vec2"></a><h3>graphene_point_to_vec2 ()</h3>
599
+ <pre class="programlisting"><span class="returnvalue">void</span>
600
+ graphene_point_to_vec2 (<em class="parameter"><code>const <a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="type">graphene_point_t</span></a> *p</code></em>,
601
+ <em class="parameter"><code><a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *v</code></em>);</pre>
602
+ <p>Stores the coordinates of the given <a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="type">graphene_point_t</span></a> into a
603
+ <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a>.</p>
604
+ <div class="refsect3">
605
+ <a name="graphene-point-to-vec2.parameters"></a><h4>Parameters</h4>
606
+ <div class="informaltable"><table class="informaltable" width="100%" border="0">
607
+ <colgroup>
608
+ <col width="150px" class="parameters_name">
609
+ <col class="parameters_description">
610
+ <col width="200px" class="parameters_annotations">
611
+ </colgroup>
612
+ <tbody>
613
+ <tr>
614
+ <td class="parameter_name"><p>p</p></td>
615
+ <td class="parameter_description"><p>a <a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="type">graphene_point_t</span></a></p></td>
616
+ <td class="parameter_annotations"> </td>
617
+ </tr>
618
+ <tr>
619
+ <td class="parameter_name"><p>v</p></td>
620
+ <td class="parameter_description"><p> return location for the vertex. </p></td>
621
+ <td class="parameter_annotations"><span class="annotation">[<acronym title="Out parameter, where caller must allocate storage."><span class="acronym">out caller-allocates</span></acronym>]</span></td>
622
+ </tr>
623
+ </tbody>
624
+ </table></div>
625
+ </div>
626
+ <p class="since">Since: <a class="link" href="ix05.html#api-index-1.4">1.4</a></p>
627
+ </div>
628
+ <hr>
629
+ <div class="refsect2">
630
+ <a name="graphene-point-zero"></a><h3>graphene_point_zero ()</h3>
631
+ <pre class="programlisting">const <a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="returnvalue">graphene_point_t</span></a> *
632
+ graphene_point_zero (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
633
+ <p>Returns a point fixed at (0, 0).</p>
634
+ <div class="refsect3">
635
+ <a name="graphene-point-zero.returns"></a><h4>Returns</h4>
636
+ <p> a fixed point. </p>
637
+ <p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
638
+ </div>
639
+ <p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
640
+ </div>
641
+ </div>
642
+ <div class="refsect1">
643
+ <a name="graphene-Point.other_details"></a><h2>Types and Values</h2>
644
+ <div class="refsect2">
645
+ <a name="GRAPHENE-POINT-INIT-ZERO:CAPS"></a><h3>GRAPHENE_POINT_INIT_ZERO</h3>
646
+ <pre class="programlisting">#define GRAPHENE_POINT_INIT_ZERO GRAPHENE_POINT_INIT (0.f, 0.f)
647
+ </pre>
648
+ <p>Initializes a <a class="link" href="graphene-Point.html#graphene-point-t" title="graphene_point_t"><span class="type">graphene_point_t</span></a> to (0, 0) when declaring it.</p>
649
+ <p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
650
+ </div>
651
+ <hr>
652
+ <div class="refsect2">
653
+ <a name="graphene-point-t"></a><h3>graphene_point_t</h3>
654
+ <pre class="programlisting">typedef struct {
655
+ float x;
656
+ float y;
657
+ } graphene_point_t;
658
+ </pre>
659
+ <p>A point with two coordinates.</p>
660
+ <div class="refsect3">
661
+ <a name="graphene-point-t.members"></a><h4>Members</h4>
662
+ <div class="informaltable"><table class="informaltable" width="100%" border="0">
663
+ <colgroup>
664
+ <col width="300px" class="struct_members_name">
665
+ <col class="struct_members_description">
666
+ <col width="200px" class="struct_members_annotations">
667
+ </colgroup>
668
+ <tbody>
669
+ <tr>
670
+ <td class="struct_member_name"><p><span class="type">float</span> <em class="structfield"><code><a name="graphene-point-t.x"></a>x</code></em>;</p></td>
671
+ <td class="struct_member_description"><p>the X coordinate of the point</p></td>
672
+ <td class="struct_member_annotations"> </td>
673
+ </tr>
674
+ <tr>
675
+ <td class="struct_member_name"><p><span class="type">float</span> <em class="structfield"><code><a name="graphene-point-t.y"></a>y</code></em>;</p></td>
676
+ <td class="struct_member_description"><p>the Y coordinate of the point</p></td>
677
+ <td class="struct_member_annotations"> </td>
678
+ </tr>
679
+ </tbody>
680
+ </table></div>
681
+ </div>
682
+ <p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
683
+ </div>
684
+ </div>
685
+ </div>
686
+ <div class="footer">
687
+ <hr>Generated by GTK-Doc V1.25</div>
688
+ </body>
689
+ </html>