<?xml version="1.0"?>
<page id="Gimp.Procedure.add_argument"
      type="topic"
      style="method"
      xmlns="http://projectmallard.org/1.0/"
      xmlns:api="http://projectmallard.org/experimental/api/"
      xmlns:ui="http://projectmallard.org/1.0/ui/">
  <info>
    <link xref="Gimp.Procedure" group="method" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>GObject.ParamSpec</api:type>
      </api:returns>
      <api:name>gimp_procedure_add_argument</api:name>
      <api:arg>
        <api:type>Gimp.Procedure</api:type>
        <api:name>self</api:name>
      </api:arg>
      <api:arg>
        <api:type>GObject.ParamSpec</api:type>
        <api:name>pspec</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>Gimp.Procedure.add_argument</title>
  <synopsis><code mime="text/x-python">
@accepts(Gimp.Procedure, GObject.ParamSpec)
@returns(GObject.ParamSpec)
def add_argument(self, pspec):
    # Python wrapper for gimp_procedure_add_argument()
  </code></synopsis>
  <p>Add a new argument to <code>self</code> according to <code>pspec</code> specifications.
The arguments will be ordered according to the call order to
[method@Procedure.add_argument] and
[method@Procedure.add_argument_from_property].</p>  <p>If <code>pspec</code> is floating, ownership will be taken over by <code>self</code>,
allowing to pass directly `g*_param_spec_*()` calls as arguments.</p>
  <p>Since 3.0</p>
<terms>
<item>
<title><code>self</code></title>
  <p>the <link xref="Gimp.Procedure"/>.</p>
</item>
<item>
<title><code>pspec</code></title>
  <p>the argument specification.</p>
</item>
<item>
<title><code>Returns</code></title>
{formatter.format(node, node.retval.doc)}
</item>
</terms>

</page>
