<?xml version="1.0"?>
<page id="GimpUi.ColorArea.enable_drag"
      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.ColorArea" group="method" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>none</api:type>
      </api:returns>
      <api:name>gimp_color_area_enable_drag</api:name>
      <api:arg>
        <api:type>GimpUi.ColorArea</api:type>
        <api:name>self</api:name>
      </api:arg>
      <api:arg>
        <api:type>Gdk.ModifierType</api:type>
        <api:name>drag_mask</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>GimpUi.ColorArea.enable_drag</title>
  <synopsis><code mime="text/x-python">
@accepts(GimpUi.ColorArea, Gdk.ModifierType)
@returns(none)
def enable_drag(self, drag_mask):
    # Python wrapper for gimp_color_area_enable_drag()
  </code></synopsis>
  <p>Allows dragging the color displayed with buttons identified by
<code>drag_mask</code>. The drag supports targets of type "application/x-color".</p>  <p>Note that setting a <code>drag_mask</code> of 0 disables the drag ability.</p>

<terms>
<item>
<title><code>self</code></title>
  <p>A <link xref="GimpUi.ColorArea"/>.</p>
</item>
<item>
<title><code>drag_mask</code></title>
  <p>The bitmask of buttons that can start the drag.</p>
</item>
</terms>

</page>
