<?xml version="1.0"?>
<page id="GimpUi.IntStore.lookup_by_user_data"
      type="topic"
      style="function"
      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.IntStore" group="function" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>Boolean</api:type>
      </api:returns>
      <api:name>gimp_int_store_lookup_by_user_data</api:name>
      <api:arg>
        <api:type>Gtk.TreeModel</api:type>
        <api:name>model</api:name>
      </api:arg>
      <api:arg>
        <api:type>void</api:type>
        <api:name>user_data</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>GimpUi.IntStore.lookup_by_user_data</title>
  <synopsis><code mime="text/x-gjs">
function lookup_by_user_data(model: <link href="../Gtk-3.0/Gtk.TreeModel.html">Gtk.TreeModel</link>, user_data: void): [ok: Boolean, iter: <link href="../Gtk-3.0/Gtk.TreeIter.html">Gtk.TreeIter</link>] {
    // Gjs wrapper for gimp_int_store_lookup_by_user_data()
}
  </code></synopsis>
  <p>Iterate over the <code>model</code> looking for <code>user_data</code>.</p>
  <p>Since 2.10</p>
<terms>
<item>
<title><code>model</code></title>
  <p>a <link xref="GimpUi.IntStore"/></p>
</item>
<item>
<title><code>user_data</code></title>
  <p>a gpointer "user-data" to lookup in the <code>model</code></p>
</item>
<item>
<title><code>ok</code></title>
  <p><code>true</code> if the user-data has been located and <code>iter</code> is
              valid, <code>false</code> otherwise.</p>
</item>
<item>
<title><code>iter</code></title>
  <p>return location for the iter of the given <code>user_data</code></p>
</item>
</terms>

</page>
