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