<?xml version="1.0"?>
<page id="GimpUi.SizeEntry.set_value_boundaries"
      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.SizeEntry" group="method" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>none</api:type>
      </api:returns>
      <api:name>gimp_size_entry_set_value_boundaries</api:name>
      <api:arg>
        <api:type>GimpUi.SizeEntry</api:type>
        <api:name>self</api:name>
      </api:arg>
      <api:arg>
        <api:type>int</api:type>
        <api:name>field</api:name>
      </api:arg>
      <api:arg>
        <api:type>float</api:type>
        <api:name>lower</api:name>
      </api:arg>
      <api:arg>
        <api:type>float</api:type>
        <api:name>upper</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>GimpUi.SizeEntry.set_value_boundaries</title>
  <synopsis><code mime="text/x-python">
@accepts(GimpUi.SizeEntry, int, float, float)
@returns(none)
def set_value_boundaries(self, field, lower, upper):
    # Python wrapper for gimp_size_entry_set_value_boundaries()
  </code></synopsis>
  <p>Limits the range of possible values which can be entered in field # <code>field</code>
of the <link xref="GimpUi.SizeEntry"/>.</p>  <p>The current value of the <code>field</code> will be clamped to fit in the <code>field</code>'s
new boundaries.</p>  <p>NOTE: In most cases you won't be interested in this function because the
      <link xref="GimpUi.SizeEntry"/>'s purpose is to shield the programmer from unit
      calculations. Use <link xref="GimpUi.SizeEntry.set_refval_boundaries"/> instead.
      Whatever you do, don't mix these calls. A size entry should either
      be clamped by the value or the reference value.</p>

<terms>
<item>
<title><code>self</code></title>
  <p>The sizeentry you want to set value boundaries for.</p>
</item>
<item>
<title><code>field</code></title>
  <p>The index of the field you want to set value boundaries for.</p>
</item>
<item>
<title><code>lower</code></title>
  <p>The new lower boundary of the value of the chosen <code>field</code>.</p>
</item>
<item>
<title><code>upper</code></title>
  <p>The new upper boundary of the value of the chosen <code>field</code>.</p>
</item>
</terms>

</page>
