<?xml version="1.0"?>
<page id="GimpUi.ProcedureDialog.get_color_widget"
      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="GimpUi.ProcedureDialog" group="method" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>Gtk.Widget</api:type>
      </api:returns>
      <api:name>gimp_procedure_dialog_get_color_widget</api:name>
      <api:arg>
        <api:type>String</api:type>
        <api:name>property</api:name>
      </api:arg>
      <api:arg>
        <api:type>Boolean</api:type>
        <api:name>editable</api:name>
      </api:arg>
      <api:arg>
        <api:type>GimpUi.ColorAreaType</api:type>
        <api:name>type</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>GimpUi.ProcedureDialog.prototype.get_color_widget</title>
  <synopsis><code mime="text/x-gjs">
function get_color_widget(property: String, editable: Boolean, type: <link xref="GimpUi.ColorAreaType">GimpUi.ColorAreaType</link>): <link href="../Gtk-3.0/Gtk.Widget.html">Gtk.Widget</link> {
    // Gjs wrapper for gimp_procedure_dialog_get_color_widget()
}
  </code></synopsis>
  <p>Creates a new widget for <code>property</code> which must necessarily be a
<link href="../Gegl-0.4/Gegl.Color.html">Gegl.Color</link> property.
This must be used instead of <link xref="GimpUi.ProcedureDialog.get_widget"/> when
you want a <link xref="GimpUi.LabelColor"/> which is not customizable for a color
property, or when to set a specific <code>type</code>.</p>  <p>If a widget has already been created for this procedure, it will be
returned instead (whatever its actual widget type).</p>

<terms>
<item>
<title><code>property</code></title>
  <p>name of the <link href="../Gegl-0.4/Gegl.Color.html">Gegl.Color</link> property to build a widget for. It
           must be a property of the <link href="../Gimp-3.0/Gimp.Procedure.html">Gimp.Procedure</link> <code>dialog</code> has been
           created for.</p>
</item>
<item>
<title><code>editable</code></title>
  <p>whether the color can be edited or is only for display.</p>
</item>
<item>
<title><code>type</code></title>
  <p>the <link xref="GimpUi.ColorAreaType"/>.</p>
</item>
<item>
<title><code>Returns</code></title>
  <p>a <link xref="GimpUi.LabelColor"/> representing <code>property</code>.
                          The object belongs to <code>dialog</code> and must not
                          be freed.</p>
</item>
</terms>

</page>
