class.tmpl 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <%! page_type="guide" %>\
  2. <%inherit file="/base.tmpl"/>
  3. <%block name="details">
  4. % if isinstance(node, ast.Class):
  5. <synopsis>
  6. <title>Hierarchy</title>
  7. <tree>
  8. % for class_ in formatter.get_class_hierarchy(node):
  9. <item>
  10. <code>${class_.namespace.name}.${class_.name}</code>
  11. % endfor
  12. % for class_ in formatter.get_class_hierarchy(node):
  13. </item>
  14. % endfor
  15. </tree>
  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
  27. </%block>
  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>
  34. <links type="topic" ui:expanded="true"
  35. api:type="function" api:mime="${formatter.mime_type}"
  36. groups="method" style="linklist">
  37. <title>Methods</title>
  38. </links>
  39. <links type="topic" ui:expanded="true"
  40. api:type="function" api:mime="${formatter.mime_type}"
  41. groups="function" style="linklist">
  42. <title>Static Functions</title>
  43. </links>
  44. % if isinstance(node, (ast.Class, ast.Interface)):
  45. <links type="topic" ui:expanded="true" groups="property" style="linklist">
  46. <title>Properties</title>
  47. </links>
  48. <links type="topic" ui:expanded="true" groups="signal" style="linklist">
  49. <title>Signals</title>
  50. </links>
  51. <links type="topic" ui:expanded="true" groups="vfunc" style="linklist">
  52. <title>Virtual functions</title>
  53. </links>
  54. % endif
  55. <links type="topic" ui:expanded="true" groups="field" style="linklist">
  56. <title>Fields</title>
  57. </links>
  58. <links type="topic" ui:expanded="true" groups="#first #default #last" style="linklist">
  59. <title>Other</title>
  60. </links>\
  61. </%block>