<?xml version="1.0"?>
<page id="GimpUi.SizeEntry"
      type="guide"
      style="class"
      xmlns="http://projectmallard.org/1.0/"
      xmlns:api="http://projectmallard.org/experimental/api/"
      xmlns:ui="http://projectmallard.org/1.0/ui/">
  <info>
    <link xref="index" group="class" type="guide"/>
  </info>
  <title>GimpUi.SizeEntry</title>
  <synopsis><code>
from gi.repository import GimpUi

size_entry = GimpUi.SizeEntry()
  </code></synopsis>
  <p>This widget is used to enter pixel distances/sizes and resolutions.</p>  <p>You can specify the number of fields the widget should provide. For
each field automatic mappings are performed between the field's
"reference value" and its "value".</p>  <p>There is a <link xref="GimpUi.UnitComboBox"/> right of the entry fields which lets
you specify the <link href="../Gimp-3.0/Gimp.Unit.html">Gimp.Unit</link> of the displayed values.</p>  <p>For each field, there can be one or two <link href="../Gtk-3.0/Gtk.SpinButton.html">Gtk.SpinButton</link>'s to enter
"value" and "reference value". If you specify @show_refval as
<code>False</code> in <link xref="GimpUi.SizeEntry.new"/> there will be only one
<link href="../Gtk-3.0/Gtk.SpinButton.html">Gtk.SpinButton</link> and the <link xref="GimpUi.UnitComboBox"/> will contain an item for
selecting GIMP_UNIT_PIXEL.</p>  <p>The "reference value" is either of GIMP_UNIT_PIXEL or dpi,
depending on which <link xref="GimpUi.SizeEntryUpdatePolicy"/> you specify in
<link xref="GimpUi.SizeEntry.new"/>.  The "value" is either the size in pixels
mapped to the size in a real-world-unit (see <link href="../Gimp-3.0/Gimp.Unit.html">Gimp.Unit</link>) or the dpi
value mapped to pixels per real-world-unit.</p>

  <synopsis>
    <title>Hierarchy</title>
    <tree>
      <item>
        <code>GObject.Object</code>
      <item>
        <code>GObject.InitiallyUnowned</code>
      <item>
        <code>Gtk.Widget</code>
      <item>
        <code>Gtk.Container</code>
      <item>
        <code>Gtk.Grid</code>
      <item>
        <code>GimpUi.SizeEntry</code>
      </item>
      </item>
      </item>
      </item>
      </item>
      </item>
    </tree>
  </synopsis>
  <links type="topic" ui:expanded="true"
         api:type="function" api:mime="text/python"
         groups="constructor" style="linklist">
    <title>Constructors</title>
  </links>
  <links type="topic" ui:expanded="true"
         api:type="function" api:mime="text/python"
         groups="method" style="linklist">
    <title>Methods</title>
  </links>
  <links type="topic" ui:expanded="true"
         api:type="function" api:mime="text/python"
         groups="function" style="linklist">
    <title>Static Functions</title>
  </links>
  <links type="topic" ui:expanded="true" groups="property" style="linklist">
    <title>Properties</title>
  </links>
  <links type="topic" ui:expanded="true" groups="signal" style="linklist">
    <title>Signals</title>
  </links>
  <links type="topic" ui:expanded="true" groups="vfunc" style="linklist">
    <title>Virtual functions</title>
  </links>
  <links type="topic" ui:expanded="true" groups="field" style="linklist">
    <title>Fields</title>
  </links>
  <links type="topic" ui:expanded="true" groups="#first #default #last" style="linklist">
    <title>Other</title>
  </links>
</page>
