Sha256: 742aa18aca4f060d8e1c11a1fbe20d5b95f026f7ff6b582b6120a1c7b1854779

Contents?: true

Size: 1.43 KB

Versions: 67

Compression:

Stored size: 1.43 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_in_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 if node.shadows is None else node.shadows}(\
${', '.join('%s: %s' % (arg.argname, formatter.format_type(arg.type, True)) for arg in formatter.get_in_parameters(node))}\
): ${formatter.format_out_parameters(node)} {
    // Gjs wrapper for ${node.symbol}()
}
  </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>

Version data entries

67 entries across 67 versions & 1 rubygems

Version Path
gobject-introspection-3.2.9-x64-mingw32 vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/function.tmpl
gobject-introspection-3.2.9-x86-mingw32 vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/function.tmpl
gobject-introspection-3.2.8-x64-mingw32 vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/function.tmpl
gobject-introspection-3.2.8-x86-mingw32 vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/function.tmpl
gobject-introspection-3.2.7-x86-mingw32 vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/function.tmpl
gobject-introspection-3.2.7-x64-mingw32 vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/function.tmpl
gobject-introspection-3.2.6-x64-mingw32 vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/function.tmpl
gobject-introspection-3.2.6-x86-mingw32 vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/function.tmpl
gobject-introspection-3.2.5-x64-mingw32 vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/function.tmpl
gobject-introspection-3.2.5-x86-mingw32 vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/function.tmpl
gobject-introspection-3.2.4-x64-mingw32 vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/function.tmpl
gobject-introspection-3.2.4-x86-mingw32 vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/function.tmpl
gobject-introspection-3.2.3-x64-mingw32 vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/function.tmpl
gobject-introspection-3.2.3-x86-mingw32 vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/function.tmpl
gobject-introspection-3.2.2-x64-mingw32 vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/function.tmpl
gobject-introspection-3.2.2-x86-mingw32 vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/function.tmpl
gobject-introspection-3.2.1-x64-mingw32 vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/function.tmpl
gobject-introspection-3.2.1-x86-mingw32 vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/function.tmpl
gobject-introspection-3.2.0-x64-mingw32 vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/function.tmpl
gobject-introspection-3.2.0-x86-mingw32 vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/function.tmpl