| 1 |
<%inherit file="/base.tmpl"/> |
| 2 |
<%block name="info"> |
| 3 |
${formatter.format_xref(node.parent, type="guide", group=page_kind)} |
| 4 |
<api:function> |
| 5 |
<api:returns> |
| 6 |
<api:type>${formatter.format_type(node.retval.type) | x}</api:type> |
| 7 |
</api:returns> |
| 8 |
<api:name>${node.symbol}</api:name> |
| 9 |
% for arg in formatter.get_in_parameters(node): |
| 10 |
% if arg.type.ctype == '<varargs>': |
| 11 |
<api:varargs/> |
| 12 |
% else: |
| 13 |
<api:arg> |
| 14 |
<api:type>${formatter.format_type(arg.type) | x}</api:type> |
| 15 |
<api:name>${formatter.format_parameter_name(node, arg)}</api:name> |
| 16 |
</api:arg> |
| 17 |
% endif |
| 18 |
% endfor |
| 19 |
</api:function> |
| 20 |
</%block> |
| 21 |
<%block name="synopsis"> |
| 22 |
<synopsis><code mime="text/x-gjs"> |
| 23 |
function \ |
| 24 |
${node.name if node.shadows is None else node.shadows}(\ |
| 25 |
${', '.join('%s: %s' % (arg.argname, formatter.format_type(arg.type, True)) for arg in formatter.get_in_parameters(node))}\ |
| 26 |
): ${formatter.format_out_parameters(node)} { |
| 27 |
// Gjs wrapper for ${node.symbol}() |
| 28 |
} |
| 29 |
</code></synopsis></%block> |
| 30 |
<%block name="details"> |
| 31 |
% if formatter.has_any_parameters(node): |
| 32 |
<terms> |
| 33 |
% for arg in formatter.get_in_parameters(node): |
| 34 |
<item> |
| 35 |
<title><code>${arg.argname}</code></title> |
| 36 |
${formatter.format(node, arg.doc)} |
| 37 |
</item> |
| 38 |
% endfor |
| 39 |
% for arg in formatter.get_out_parameters(node): |
| 40 |
<item> |
| 41 |
<title><code>${(arg.argname + ' (out)') if arg.direction == 'inout' else arg.argname}</code></title> |
| 42 |
${formatter.format(node, arg.doc)} |
| 43 |
</item> |
| 44 |
% endfor |
| 45 |
</terms> |
| 46 |
% endif |
| 47 |
</%block> |