diff options
Diffstat (limited to 'giscanner/doctemplates/Gjs/callback.tmpl')
-rw-r--r-- | giscanner/doctemplates/Gjs/callback.tmpl | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/giscanner/doctemplates/Gjs/callback.tmpl b/giscanner/doctemplates/Gjs/callback.tmpl new file mode 100644 index 00000000..d7b97794 --- /dev/null +++ b/giscanner/doctemplates/Gjs/callback.tmpl @@ -0,0 +1,27 @@ +<%inherit file="/base.tmpl"/> +<%block name="synopsis"> + <synopsis><code mime="text/x-gjs"> +function on${node.name}(\ +${', '.join('%s: %s' % (arg.argname, formatter.format_type(arg.type, True)) for arg in formatter.get_in_parameters(node))}\ +): ${formatter.format_out_parameters(node)} { +} + </code></synopsis></%block> +<%block name="details"> +% if formatter.has_any_parameters(node): +<terms> +% for arg in formatter.get_in_parameters(node): +<item> +<title><code>${arg.argname}</code></title> +${formatter.format(node, arg.doc)} +</item> +% endfor +% for arg in formatter.get_out_parameters(node): +<item> +<title><code>${(arg.argname + ' (out)') if arg.direction == 'inout' else arg.argname}</code></title> +${formatter.format(node, arg.doc)} +</item> +% endfor +</terms> +% endif +</%block> + |