<?xml version="1.0"?>
<page id="Gimp.Config.serialize_to_file"
      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="Gimp.Config" group="method" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>Boolean</api:type>
      </api:returns>
      <api:name>gimp_config_serialize_to_file</api:name>
      <api:arg>
        <api:type>Gio.File</api:type>
        <api:name>file</api:name>
      </api:arg>
      <api:arg>
        <api:type>String</api:type>
        <api:name>header</api:name>
      </api:arg>
      <api:arg>
        <api:type>String</api:type>
        <api:name>footer</api:name>
      </api:arg>
      <api:arg>
        <api:type>void</api:type>
        <api:name>data</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>Gimp.Config.prototype.serialize_to_file</title>
  <synopsis><code mime="text/x-gjs">
function serialize_to_file(file: <link href="../Gio-2.0/Gio.File.html">Gio.File</link>, header: String, footer: String, data: void): Boolean {
    // Gjs wrapper for gimp_config_serialize_to_file()
}
  </code></synopsis>
  <p>Serializes the object properties of <code>config</code> to the file specified
by <code>file</code>. If a file with that name already exists, it is
overwritten. Basically this function opens <code>file</code> for you and calls
the serialize function of the <code>config</code>'s [iface@ConfigInterface].</p>
  <p>Since 2.10</p>
<terms>
<item>
<title><code>file</code></title>
  <p>the file to write the configuration to.</p>
</item>
<item>
<title><code>header</code></title>
  <p>optional file header (must be ASCII only)</p>
</item>
<item>
<title><code>footer</code></title>
  <p>optional file footer (must be ASCII only)</p>
</item>
<item>
<title><code>data</code></title>
  <p>user data passed to the serialize implementation.</p>
</item>
<item>
<title><code>Returns</code></title>
  <p><code>true</code> if serialization succeeded, <code>false</code> otherwise.</p>
</item>
</terms>

</page>
