interface.tmpl 558 B

1234567891011121314151617
  1. <%inherit file="/class.tmpl"/>
  2. <%block name="synopsis">
  3. <synopsis><code>
  4. const ${namespace.name} = imports.gi.${namespace.name};
  5. let ${formatter.to_underscores(node).lower()} = new ${namespace.name}.${node.name}(\
  6. % if len(node.properties) > 0:
  7. {
  8. % for ix, property_ in enumerate(node.properties):
  9. % if (property_.construct or property_.construct_only) and property_.writable:
  10. <link xref='${namespace.name}.${node.name}-${property_.name}'>${property_.name.replace('-', '_')}</link>: value,
  11. % endif
  12. % endfor
  13. }\
  14. % endif
  15. );
  16. </code></synopsis></%block>