<?xml version="1.0"?>
<page id="GimpUi.cairo_set_source_color"
      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="index" group="function" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>void</api:type>
      </api:returns>
      <api:name>gimp_cairo_set_source_color</api:name>
      <api:arg>
        <api:type>cairo.Context</api:type>
        <api:name>cr</api:name>
      </api:arg>
      <api:arg>
        <api:type>Gegl.Color</api:type>
        <api:name>color</api:name>
      </api:arg>
      <api:arg>
        <api:type>Gimp.ColorConfig</api:type>
        <api:name>config</api:name>
      </api:arg>
      <api:arg>
        <api:type>Boolean</api:type>
        <api:name>softproof</api:name>
      </api:arg>
      <api:arg>
        <api:type>Gtk.Widget</api:type>
        <api:name>widget</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>GimpUi.cairo_set_source_color</title>
  <synopsis><code mime="text/x-gjs">
function cairo_set_source_color(cr: <link href="../cairo-1.0/cairo.Context.html">cairo.Context</link>, color: <link href="../Gegl-0.4/Gegl.Color.html">Gegl.Color</link>, config: <link href="../Gimp-3.0/Gimp.ColorConfig.html">Gimp.ColorConfig</link>, softproof: Boolean, widget: <link href="../Gtk-3.0/Gtk.Widget.html">Gtk.Widget</link>): void {
    // Gjs wrapper for gimp_cairo_set_source_color()
}
  </code></synopsis>
  <p>Sets <code>color</code> as the source pattern within <code>cr</code>, taking into account the profile
of the [class@Gdk.Monitor] which <code>widget</code> is displayed on.</p>  <p>If <code>config</code> is set, the color configuration as set by the user will be used,
in particular using any custom monitor profile set in preferences (overriding
system-set profile). If no such custom profile is set, it will use the
profile of the monitor <code>widget</code> is displayed on and will default to sRGB if
<code>widget</code> is <code>null</code>.</p>  <p>Use [func@Gimp.get_color_configuration] to retrieve the user
[class@Gimp.ColorConfig].</p>  <p>TODO: <code>softproof</code> is currently unused.</p>
  <p>Since 3.0</p>
<terms>
<item>
<title><code>cr</code></title>
  <p>Cairo context.</p>
</item>
<item>
<title><code>color</code></title>
  <p>the [class@Gegl.Color] to use as source pattern within <code>cr</code>.</p>
</item>
<item>
<title><code>config</code></title>
  <p>the color management settings.</p>
</item>
<item>
<title><code>softproof</code></title>
  <p>whether the color must also be soft-proofed.</p>
</item>
<item>
<title><code>widget</code></title>
  <p>[class@Gtk.Widget] to draw the focus indicator on.</p>
</item>
</terms>

</page>
