Debian Codegraph @

giscanner/doctemplates/mallard/Gjs/callback.tmpl

raw
1 <%inherit file="/base.tmpl"/>
2 <%block name="synopsis">
3 <synopsis><code mime="text/x-gjs">
4 function on${node.name}(\
5 ${', '.join('%s: %s' % (arg.argname, formatter.format_type(arg.type, True)) for arg in formatter.get_in_parameters(node))}\
6 ): ${formatter.format_out_parameters(node)} {
7 }
8 </code></synopsis></%block>
9 <%block name="details">
10 % if formatter.has_any_parameters(node):
11 <terms>
12 % for arg in formatter.get_in_parameters(node):
13 <item>
14 <title><code>${arg.argname}</code></title>
15 ${formatter.format(node, arg.doc)}
16 </item>
17 % endfor
18 % for arg in formatter.get_out_parameters(node):
19 <item>
20 <title><code>${(arg.argname + ' (out)') if arg.direction == 'inout' else arg.argname}</code></title>
21 ${formatter.format(node, arg.doc)}
22 </item>
23 % endfor
24 </terms>
25 % endif
26 </%block>
27