Sha256: 86eea1f49ea18f81d3fc5e3a5aef80fa81a65ea6916e197333a37f3c7db8e5d9

Contents?: true

Size: 1.34 KB

Versions: 6

Compression:

Stored size: 1.34 KB

Contents

<%inherit file="/base.tmpl"/>
<%block name="info">
    ${formatter.format_xref(node.parent, type="guide", group=page_kind)}
    <api:function>
      <api:returns>
        <api:type>${formatter.format_type(node.retval.type) | x}</api:type>
      </api:returns>
      <api:name>${node.symbol}</api:name>
% for arg in formatter.get_parameters(node):
% if arg.type.ctype == '<varargs>':
      <api:varargs/>
% else:
      <api:arg>
        <api:type>${formatter.format_type(arg.type) | x}</api:type>
        <api:name>${formatter.format_parameter_name(node, arg)}</api:name>
      </api:arg>
% endif
% endfor
    </api:function>
</%block>
<%block name="synopsis">
<synopsis><code mime="text/x-gjs">
function \
${node.name}(\
${', '.join('%s:%s' % (arg.argname, formatter.format_type(arg.type)) for arg in formatter.get_parameters(node))}\
):${formatter.format_type(node.retval.type)} {
    // Gjs wrapper for ${node.symbol}()
}
</code></synopsis>
</%block>
<%block name="details">
% if formatter.get_parameters(node) or node.retval:
<terms>
% for arg in formatter.get_parameters(node):
<item>
<title><code>${arg.argname}</code></title>
${formatter.format(node, arg.doc)}
</item>
% endfor
% if node.retval and node.retval.type.ctype != 'void':
<item>
<title><code>Returns</code></title>
${formatter.format(node, node.retval.doc)}
</item>
% endif
</terms>
% endif
</%block>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gobject-introspection-2.2.0-x86-mingw32 vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/function.tmpl
gobject-introspection-2.1.0-x86-mingw32 vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/function.tmpl
gobject-introspection-2.0.3-x86-mingw32 vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/function.tmpl
gobject-introspection-2.0.2-x86-mingw32 vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/function.tmpl
gobject-introspection-2.0.1-x86-mingw32 vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/function.tmpl
gobject-introspection-2.0.0-x86-mingw32 vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/function.tmpl