gobject-introspection 2.2.0-x86-mingw32 → 2.2.1-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (176) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +7 -7
  3. data/ext/gobject-introspection/rb-gi-argument.c +28 -3
  4. data/ext/gobject-introspection/rb-gi-constructor-info.c +6 -1
  5. data/ext/gobject-introspection/rb-gi-function-info.c +29 -4
  6. data/ext/gobject-introspection/rb-gi-loader.c +19 -3
  7. data/ext/gobject-introspection/rb-gi-struct-info.c +28 -16
  8. data/lib/2.0/gobject_introspection.so +0 -0
  9. data/lib/gobject-introspection/callable-info.rb +16 -7
  10. data/lib/gobject-introspection/loader.rb +47 -19
  11. data/test/test-object-info.rb +1 -1
  12. data/test/test-signal-info.rb +2 -2
  13. data/test/test-struct-info.rb +1 -1
  14. data/vendor/local/bin/g-ir-compiler.exe +0 -0
  15. data/vendor/local/bin/g-ir-generate.exe +0 -0
  16. data/vendor/local/bin/libgirepository-1.0-1.dll +0 -0
  17. data/vendor/local/include/gobject-introspection-1.0/giarginfo.h +30 -0
  18. data/vendor/local/include/gobject-introspection-1.0/gibaseinfo.h +31 -0
  19. data/vendor/local/include/gobject-introspection-1.0/gicallableinfo.h +36 -0
  20. data/vendor/local/include/gobject-introspection-1.0/giconstantinfo.h +12 -0
  21. data/vendor/local/include/gobject-introspection-1.0/gienuminfo.h +26 -0
  22. data/vendor/local/include/gobject-introspection-1.0/gifieldinfo.h +19 -0
  23. data/vendor/local/include/gobject-introspection-1.0/gifunctioninfo.h +23 -0
  24. data/vendor/local/include/gobject-introspection-1.0/giinterfaceinfo.h +38 -0
  25. data/vendor/local/include/gobject-introspection-1.0/giobjectinfo.h +72 -2
  26. data/vendor/local/include/gobject-introspection-1.0/gipropertyinfo.h +12 -0
  27. data/vendor/local/include/gobject-introspection-1.0/giregisteredtypeinfo.h +11 -0
  28. data/vendor/local/include/gobject-introspection-1.0/girepository.h +68 -8
  29. data/vendor/local/include/gobject-introspection-1.0/girffi.h +25 -1
  30. data/vendor/local/include/gobject-introspection-1.0/gisignalinfo.h +12 -0
  31. data/vendor/local/include/gobject-introspection-1.0/gistructinfo.h +24 -0
  32. data/vendor/local/include/gobject-introspection-1.0/gitypeinfo.h +31 -0
  33. data/vendor/local/include/gobject-introspection-1.0/gitypelib.h +25 -0
  34. data/vendor/local/include/gobject-introspection-1.0/gitypes.h +84 -13
  35. data/vendor/local/include/gobject-introspection-1.0/giunioninfo.h +27 -0
  36. data/vendor/local/include/gobject-introspection-1.0/giversionmacros.h +128 -0
  37. data/vendor/local/include/gobject-introspection-1.0/givfuncinfo.h +17 -0
  38. data/vendor/local/lib/girepository-1.0/GIRepository-2.0.typelib +0 -0
  39. data/vendor/local/lib/girepository-1.0/GLib-2.0.typelib +0 -0
  40. data/vendor/local/lib/girepository-1.0/GObject-2.0.typelib +0 -0
  41. data/vendor/local/lib/girepository-1.0/Gio-2.0.typelib +0 -0
  42. data/vendor/local/lib/girepository-1.0/libxml2-2.0.typelib +0 -0
  43. data/vendor/local/lib/girepository-1.0/win32-1.0.typelib +0 -0
  44. data/vendor/local/lib/gobject-introspection/giscanner/__init__.pyc +0 -0
  45. data/vendor/local/lib/gobject-introspection/giscanner/__init__.pyo +0 -0
  46. data/vendor/local/lib/gobject-introspection/giscanner/annotationmain.py +5 -4
  47. data/vendor/local/lib/gobject-introspection/giscanner/annotationmain.pyc +0 -0
  48. data/vendor/local/lib/gobject-introspection/giscanner/annotationmain.pyo +0 -0
  49. data/vendor/local/lib/gobject-introspection/giscanner/annotationparser.py +1865 -913
  50. data/vendor/local/lib/gobject-introspection/giscanner/annotationparser.pyc +0 -0
  51. data/vendor/local/lib/gobject-introspection/giscanner/annotationparser.pyo +0 -0
  52. data/vendor/local/lib/gobject-introspection/giscanner/ast.py +49 -16
  53. data/vendor/local/lib/gobject-introspection/giscanner/ast.pyc +0 -0
  54. data/vendor/local/lib/gobject-introspection/giscanner/ast.pyo +0 -0
  55. data/vendor/local/lib/gobject-introspection/giscanner/cachestore.py +10 -4
  56. data/vendor/local/lib/gobject-introspection/giscanner/cachestore.pyc +0 -0
  57. data/vendor/local/lib/gobject-introspection/giscanner/cachestore.pyo +0 -0
  58. data/vendor/local/lib/gobject-introspection/giscanner/ccompiler.py +202 -0
  59. data/vendor/local/lib/gobject-introspection/giscanner/ccompiler.pyc +0 -0
  60. data/vendor/local/lib/gobject-introspection/giscanner/ccompiler.pyo +0 -0
  61. data/vendor/local/lib/gobject-introspection/giscanner/codegen.py +32 -1
  62. data/vendor/local/lib/gobject-introspection/giscanner/codegen.pyc +0 -0
  63. data/vendor/local/lib/gobject-introspection/giscanner/codegen.pyo +0 -0
  64. data/vendor/local/lib/gobject-introspection/giscanner/collections/__init__.py +1 -0
  65. data/vendor/local/lib/gobject-introspection/giscanner/collections/__init__.pyc +0 -0
  66. data/vendor/local/lib/gobject-introspection/giscanner/collections/__init__.pyo +0 -0
  67. data/vendor/local/lib/gobject-introspection/giscanner/collections/counter.py +305 -0
  68. data/vendor/local/lib/gobject-introspection/giscanner/collections/counter.pyc +0 -0
  69. data/vendor/local/lib/gobject-introspection/giscanner/collections/counter.pyo +0 -0
  70. data/vendor/local/lib/gobject-introspection/giscanner/collections/ordereddict.pyc +0 -0
  71. data/vendor/local/lib/gobject-introspection/giscanner/collections/ordereddict.pyo +0 -0
  72. data/vendor/local/lib/gobject-introspection/giscanner/docmain.pyc +0 -0
  73. data/vendor/local/lib/gobject-introspection/giscanner/docmain.pyo +0 -0
  74. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/callback.tmpl +4 -0
  75. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/field.tmpl +1 -0
  76. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/function.tmpl +8 -9
  77. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/interface.tmpl +2 -0
  78. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/callback.tmpl +27 -0
  79. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/class.tmpl +17 -5
  80. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/enum.tmpl +8 -0
  81. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/field.tmpl +9 -0
  82. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/function.tmpl +12 -13
  83. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/interface.tmpl +17 -0
  84. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/property.tmpl +3 -4
  85. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/signal.tmpl +10 -9
  86. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/vfunc.tmpl +7 -7
  87. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/callback.tmpl +27 -0
  88. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/class.tmpl +5 -4
  89. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/field.tmpl +1 -0
  90. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/function.tmpl +8 -14
  91. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/interface.tmpl +16 -0
  92. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/property.tmpl +2 -3
  93. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/signal.tmpl +6 -7
  94. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/vfunc.tmpl +7 -13
  95. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/base.tmpl +10 -19
  96. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/class.tmpl +24 -3
  97. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/namespace.tmpl +4 -7
  98. data/vendor/local/lib/gobject-introspection/giscanner/docwriter.py +375 -61
  99. data/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyc +0 -0
  100. data/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyo +0 -0
  101. data/vendor/local/lib/gobject-introspection/giscanner/dumper.py +43 -75
  102. data/vendor/local/lib/gobject-introspection/giscanner/dumper.pyc +0 -0
  103. data/vendor/local/lib/gobject-introspection/giscanner/dumper.pyo +0 -0
  104. data/vendor/local/lib/gobject-introspection/giscanner/gdumpparser.py +1 -20
  105. data/vendor/local/lib/gobject-introspection/giscanner/gdumpparser.pyc +0 -0
  106. data/vendor/local/lib/gobject-introspection/giscanner/gdumpparser.pyo +0 -0
  107. data/vendor/local/lib/gobject-introspection/giscanner/girparser.py +33 -15
  108. data/vendor/local/lib/gobject-introspection/giscanner/girparser.pyc +0 -0
  109. data/vendor/local/lib/gobject-introspection/giscanner/girparser.pyo +0 -0
  110. data/vendor/local/lib/gobject-introspection/giscanner/girwriter.py +51 -22
  111. data/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyc +0 -0
  112. data/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyo +0 -0
  113. data/vendor/local/lib/gobject-introspection/giscanner/introspectablepass.pyc +0 -0
  114. data/vendor/local/lib/gobject-introspection/giscanner/introspectablepass.pyo +0 -0
  115. data/vendor/local/lib/gobject-introspection/giscanner/libtoolimporter.pyc +0 -0
  116. data/vendor/local/lib/gobject-introspection/giscanner/libtoolimporter.pyo +0 -0
  117. data/vendor/local/lib/gobject-introspection/giscanner/maintransformer.py +285 -254
  118. data/vendor/local/lib/gobject-introspection/giscanner/maintransformer.pyc +0 -0
  119. data/vendor/local/lib/gobject-introspection/giscanner/maintransformer.pyo +0 -0
  120. data/vendor/local/lib/gobject-introspection/giscanner/message.py +41 -25
  121. data/vendor/local/lib/gobject-introspection/giscanner/message.pyc +0 -0
  122. data/vendor/local/lib/gobject-introspection/giscanner/message.pyo +0 -0
  123. data/vendor/local/lib/gobject-introspection/giscanner/scannermain.py +67 -15
  124. data/vendor/local/lib/gobject-introspection/giscanner/scannermain.pyc +0 -0
  125. data/vendor/local/lib/gobject-introspection/giscanner/scannermain.pyo +0 -0
  126. data/vendor/local/lib/gobject-introspection/giscanner/sectionparser.pyc +0 -0
  127. data/vendor/local/lib/gobject-introspection/giscanner/sectionparser.pyo +0 -0
  128. data/vendor/local/lib/gobject-introspection/giscanner/shlibs.py +10 -6
  129. data/vendor/local/lib/gobject-introspection/giscanner/shlibs.pyc +0 -0
  130. data/vendor/local/lib/gobject-introspection/giscanner/shlibs.pyo +0 -0
  131. data/vendor/local/lib/gobject-introspection/giscanner/sourcescanner.py +14 -8
  132. data/vendor/local/lib/gobject-introspection/giscanner/sourcescanner.pyc +0 -0
  133. data/vendor/local/lib/gobject-introspection/giscanner/sourcescanner.pyo +0 -0
  134. data/vendor/local/lib/gobject-introspection/giscanner/testcodegen.py +16 -2
  135. data/vendor/local/lib/gobject-introspection/giscanner/testcodegen.pyc +0 -0
  136. data/vendor/local/lib/gobject-introspection/giscanner/testcodegen.pyo +0 -0
  137. data/vendor/local/lib/gobject-introspection/giscanner/transformer.py +150 -169
  138. data/vendor/local/lib/gobject-introspection/giscanner/transformer.pyc +0 -0
  139. data/vendor/local/lib/gobject-introspection/giscanner/transformer.pyo +0 -0
  140. data/vendor/local/lib/gobject-introspection/giscanner/utils.py +64 -3
  141. data/vendor/local/lib/gobject-introspection/giscanner/utils.pyc +0 -0
  142. data/vendor/local/lib/gobject-introspection/giscanner/utils.pyo +0 -0
  143. data/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.py +5 -44
  144. data/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyc +0 -0
  145. data/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyo +0 -0
  146. data/vendor/local/lib/libgirepository-1.0.a +0 -0
  147. data/vendor/local/lib/libgirepository-1.0.dll.a +0 -0
  148. data/vendor/local/lib/libgirepository-1.0.la +1 -1
  149. data/vendor/local/lib/pkgconfig/gobject-introspection-1.0.pc +4 -4
  150. data/vendor/local/lib/pkgconfig/gobject-introspection-no-export-1.0.pc +5 -5
  151. data/vendor/local/share/gir-1.0/GIRepository-2.0.gir +352 -143
  152. data/vendor/local/share/gir-1.0/GLib-2.0.gir +6402 -3872
  153. data/vendor/local/share/gir-1.0/GModule-2.0.gir +42 -24
  154. data/vendor/local/share/gir-1.0/GObject-2.0.gir +1543 -887
  155. data/vendor/local/share/gir-1.0/Gio-2.0.gir +10859 -3705
  156. data/vendor/local/share/gobject-introspection-1.0/tests/annotation.c +10 -14
  157. data/vendor/local/share/gobject-introspection-1.0/tests/annotation.h +112 -9
  158. data/vendor/local/share/gobject-introspection-1.0/tests/drawable.c +2 -0
  159. data/vendor/local/share/gobject-introspection-1.0/tests/drawable.h +11 -0
  160. data/vendor/local/share/gobject-introspection-1.0/tests/everything.c +106 -0
  161. data/vendor/local/share/gobject-introspection-1.0/tests/everything.h +107 -0
  162. data/vendor/local/share/gobject-introspection-1.0/tests/foo.c +3 -3
  163. data/vendor/local/share/gobject-introspection-1.0/tests/foo.h +145 -0
  164. data/vendor/local/share/gobject-introspection-1.0/tests/gimarshallingtests.c +166 -10
  165. data/vendor/local/share/gobject-introspection-1.0/tests/gimarshallingtests.h +790 -0
  166. data/vendor/local/share/gobject-introspection-1.0/tests/gitestmacros.h +10 -0
  167. data/vendor/local/share/gobject-introspection-1.0/tests/regress.c +79 -28
  168. data/vendor/local/share/gobject-introspection-1.0/tests/regress.h +462 -0
  169. data/vendor/local/share/gobject-introspection-1.0/tests/utility.c +2 -0
  170. data/vendor/local/share/gobject-introspection-1.0/tests/utility.h +7 -0
  171. data/vendor/local/share/gobject-introspection-1.0/tests/warnlib.c +14 -0
  172. data/vendor/local/share/gobject-introspection-1.0/tests/warnlib.h +10 -0
  173. data/vendor/local/share/man/man1/g-ir-compiler.1 +1 -10
  174. metadata +38 -23
  175. data/lib/1.9/gobject_introspection.so +0 -0
  176. data/lib/2.1/gobject_introspection.so +0 -0
@@ -3,7 +3,8 @@
3
3
  <synopsis><code>
4
4
  from gi.repository import ${namespace.name}
5
5
 
6
- ${formatter.to_underscores(node.name).lower()} = ${namespace.name}.${node.name}(\
6
+ ${formatter.to_underscores(node).lower()} = ${namespace.name}.${node.name}(\
7
+ % if isinstance(node, (ast.Class, ast.Interface)):
7
8
  % for ix, property_ in enumerate(node.properties):
8
9
  % if property_.construct or property_.construct_only or property_.writable:
9
10
  <link xref='${namespace.name}.${node.name}-${property_.name}'>${property_.name.replace('-', '_')}</link>=value\
@@ -12,6 +13,6 @@ ${formatter.to_underscores(node.name).lower()} = ${namespace.name}.${node.name}(
12
13
  % endif
13
14
  % endif
14
15
  % endfor
15
- )\
16
- </code></synopsis>
17
- </%block>
16
+ % endif
17
+ )
18
+ </code></synopsis></%block>
@@ -0,0 +1 @@
1
+ <%inherit file="/base.tmpl"/>
@@ -6,7 +6,7 @@
6
6
  <api:type>${formatter.format_type(node.retval.type) | x}</api:type>
7
7
  </api:returns>
8
8
  <api:name>${node.symbol}</api:name>
9
- % for arg in formatter.get_parameters(node):
9
+ % for arg in formatter.get_in_parameters(node):
10
10
  % if arg.type.ctype == '<varargs>':
11
11
  <api:varargs/>
12
12
  % else:
@@ -19,24 +19,18 @@
19
19
  </api:function>
20
20
  </%block>
21
21
  <%block name="synopsis">
22
- <synopsis><code mime="text/x-python">
23
- % if formatter.get_parameters(node):
24
- @accepts(\
25
- ${', '.join((formatter.format_type(arg.type) for arg in formatter.get_parameters(node)))}\
26
- )
22
+ <synopsis><code mime="text/x-python">
23
+ % if formatter.get_in_parameters(node):
24
+ @accepts(${', '.join((formatter.format_type(arg.type) for arg in formatter.get_in_parameters(node)))})
27
25
  % endif
28
26
  @returns(${formatter.format_type(node.retval.type) | x})
29
- def \
30
- ${node.name}(\
31
- ${', '.join((formatter.format_parameter_name(node, arg) for arg in formatter.get_parameters(node)))}\
32
- ):
27
+ def ${node.name}(${', '.join((formatter.format_parameter_name(node, arg) for arg in formatter.get_in_parameters(node)))}):
33
28
  # Python wrapper for ${node.symbol}()
34
- </code></synopsis>
35
- </%block>
29
+ </code></synopsis></%block>
36
30
  <%block name="details">
37
- % if formatter.get_parameters(node) or node.retval:
31
+ % if formatter.get_in_parameters(node) or node.retval:
38
32
  <terms>
39
- % for ix, arg in enumerate(formatter.get_parameters(node)):
33
+ % for ix, arg in enumerate(formatter.get_in_parameters(node)):
40
34
  <item>
41
35
  <title><code>${formatter.format_parameter_name(node, arg)}</code></title>
42
36
  ${formatter.format(node, arg.doc)}
@@ -0,0 +1,16 @@
1
+ <%inherit file="/class.tmpl"/>
2
+ <%block name="synopsis">
3
+ <synopsis><code>
4
+ from gi.repository import ${namespace.name}
5
+
6
+ ${formatter.to_underscores(node).lower()} = ${namespace.name}.${node.name}(\
7
+ % for ix, property_ in enumerate(node.properties):
8
+ % if property_.construct or property_.construct_only or property_.writable:
9
+ <link xref='${namespace.name}.${node.name}-${property_.name}'>${property_.name.replace('-', '_')}</link>=value\
10
+ % if ix != len(node.properties) - 1:
11
+ , \
12
+ % endif
13
+ % endif
14
+ % endfor
15
+ )\
16
+ </code></synopsis></%block>
@@ -4,7 +4,6 @@
4
4
  <title type="link" role="topic">${node.name}</title>
5
5
  </%block>
6
6
  <%block name="synopsis">
7
- <synopsis><code mime="text/x-python">
7
+ <synopsis><code mime="text/x-python">
8
8
  "${node.name}" ${formatter.format_type(node.type)} : ${formatter.format_property_flags(node)}
9
- </code></synopsis>
10
- </%block>
9
+ </code></synopsis></%block>
@@ -4,21 +4,20 @@
4
4
  <title type="link" role="topic">${node.name}</title>
5
5
  </%block>
6
6
  <%block name="synopsis">
7
- <synopsis><code mime="text/x-python">
8
- def callback(${formatter.to_underscores(node.parent.name).lower()}, \
9
- % for arg in formatter.get_parameters(node):
7
+ <synopsis><code mime="text/x-python">
8
+ def callback(${formatter.to_underscores(node.parent).lower()}, \
9
+ % for arg in formatter.get_in_parameters(node):
10
10
  ${arg.argname}, \
11
11
  % endfor
12
12
  user_param1, ...)
13
- </code></synopsis>
14
- </%block>
13
+ </code></synopsis></%block>
15
14
  <%block name="details">
16
15
  <terms>
17
16
  <item>
18
- <title><code>${formatter.to_underscores(node.parent.name).lower()}</code></title>
17
+ <title><code>${formatter.to_underscores(node.parent).lower()}</code></title>
19
18
  <p>instance of ${formatter.format_xref(node.parent)} that is emitting the signal</p>
20
19
  </item>
21
- % for arg in formatter.get_parameters(node):
20
+ % for arg in formatter.get_in_parameters(node):
22
21
  <item>
23
22
  <title><code>${arg.argname}</code></title>
24
23
  ${formatter.format(node, arg.doc)}
@@ -1,22 +1,16 @@
1
1
  <%inherit file="/base.tmpl"/>
2
2
  <%block name="synopsis">
3
- <synopsis><code mime="text/x-python">
4
- % if formatter.get_parameters(node):
5
- @accepts(\
6
- ${', '.join((formatter.format_type(arg.type) for arg in formatter.get_parameters(node)))}\
7
- )
3
+ <synopsis><code mime="text/x-python">
4
+ % if formatter.get_in_parameters(node):
5
+ @accepts(${', '.join((formatter.format_type(arg.type) for arg in formatter.get_in_parameters(node)))})
8
6
  % endif
9
7
  @returns(${formatter.format_type(node.retval.type) | x})
10
- def \
11
- do_${node.name}(\
12
- ${', '.join((arg.argname for arg in formatter.get_parameters(node)))}\
13
- ):
14
- </code></synopsis>
15
- </%block>
8
+ def do_${node.name}(${', '.join((arg.argname for arg in formatter.get_in_parameters(node)))}):
9
+ </code></synopsis></%block>
16
10
  <%block name="details">
17
- % if formatter.get_parameters(node) or node.retval:
11
+ % if formatter.get_in_parameters(node) or node.retval:
18
12
  <terms>
19
- % for arg in formatter.get_parameters(node):
13
+ % for arg in formatter.get_in_parameters(node):
20
14
  <item>
21
15
  <title><code>${arg.argname}</code></title>
22
16
  ${formatter.format(node, arg.doc)}
@@ -6,24 +6,15 @@
6
6
  xmlns="http://projectmallard.org/1.0/"
7
7
  xmlns:api="http://projectmallard.org/experimental/api/"
8
8
  xmlns:ui="http://projectmallard.org/1.0/ui/">
9
- <info>
10
- <%block name="info">
11
- ${formatter.format_xref(node.parent, type="guide", group=page_kind)}
12
- </%block>
9
+ <info><%block name="info">
10
+ ${formatter.format_xref(node.parent, type="guide", group=page_kind)}
11
+ </%block>\
13
12
  </info>
14
- <title><%block name="title">${formatter.format_page_name(node)}</%block></title>
15
- <%block name="synopsis">
16
- </%block>
17
- <%block name="doc">
18
- ${formatter.format(node, node.doc)}
19
- </%block>
20
- <%block name="since_version">
21
- % if node.version:
22
- <p>Since ${node.version}</p>
23
- % endif
24
- </%block>
25
- <%block name="details">
26
- </%block>
27
- <%block name="links">
28
- </%block>
13
+ <title><%block name="title">${formatter.format_page_name(node)}</%block></title><%block name="synopsis"></%block><%block name="doc">
14
+ ${formatter.format(node, node.doc)}
15
+ </%block><%block name="since_version">\
16
+ % if node.version:
17
+ <p>Since ${node.version}</p>\
18
+ % endif
19
+ </%block><%block name="details"></%block><%block name="links"></%block>
29
20
  </page>
@@ -1,6 +1,7 @@
1
1
  <%! page_type="guide" %>\
2
2
  <%inherit file="/base.tmpl"/>
3
3
  <%block name="details">
4
+ % if isinstance(node, ast.Class):
4
5
  <synopsis>
5
6
  <title>Hierarchy</title>
6
7
  <tree>
@@ -13,8 +14,23 @@
13
14
  % endfor
14
15
  </tree>
15
16
  </synopsis>
17
+ % elif isinstance(node, ast.Interface):
18
+ <synopsis>
19
+ <title>Prerequisites</title>
20
+ <p>${node.name} requires ${formatter.format_prerequisites(node)}</p>
21
+ </synopsis>
22
+ <synopsis>
23
+ <title>Known Implementations</title>
24
+ <p>${formatter.format_known_implementations(node)}</p>
25
+ </synopsis>
26
+ % endif
16
27
  </%block>
17
- <%block name="links">
28
+ <%block name="links">\
29
+ <links type="topic" ui:expanded="true"
30
+ api:type="function" api:mime="${formatter.mime_type}"
31
+ groups="constructor" style="linklist">
32
+ <title>Constructors</title>
33
+ </links>
18
34
  <links type="topic" ui:expanded="true"
19
35
  api:type="function" api:mime="${formatter.mime_type}"
20
36
  groups="method" style="linklist">
@@ -23,8 +39,9 @@
23
39
  <links type="topic" ui:expanded="true"
24
40
  api:type="function" api:mime="${formatter.mime_type}"
25
41
  groups="function" style="linklist">
26
- <title>Functions</title>
42
+ <title>Static Functions</title>
27
43
  </links>
44
+ % if isinstance(node, (ast.Class, ast.Interface)):
28
45
  <links type="topic" ui:expanded="true" groups="property" style="linklist">
29
46
  <title>Properties</title>
30
47
  </links>
@@ -34,7 +51,11 @@
34
51
  <links type="topic" ui:expanded="true" groups="vfunc" style="linklist">
35
52
  <title>Virtual functions</title>
36
53
  </links>
54
+ % endif
55
+ <links type="topic" ui:expanded="true" groups="field" style="linklist">
56
+ <title>Fields</title>
57
+ </links>
37
58
  <links type="topic" ui:expanded="true" groups="#first #default #last" style="linklist">
38
59
  <title>Other</title>
39
- </links>
60
+ </links>\
40
61
  </%block>
@@ -1,11 +1,9 @@
1
1
  <%! page_type="guide" %>\
2
2
  <%inherit file="/base.tmpl"/>
3
- <%block name="doc">
4
- </%block>
5
- <%block name="info">
6
- </%block>
3
+ <%block name="doc"></%block>
4
+ <%block name="info"></%block>
7
5
  <%block name="links">
8
- <links type="topic" ui:expanded="true" groups="class" style="linklist">
6
+ <links type="topic" ui:expanded="true" groups="class interface" style="linklist">
9
7
  <title>Classes</title>
10
8
  </links>
11
9
  <links type="topic" ui:expanded="true" groups="function" style="linklist">
@@ -15,5 +13,4 @@
15
13
  <title>Other</title>
16
14
  </links>
17
15
  </%block>
18
- <%block name="since_version">
19
- </%block>
16
+ <%block name="since_version"></%block>