<?xml version="1.0"?>
<!-- This file was automatically generated from C sources - DO NOT EDIT!
To affect the contents of this file, edit the original C definitions,
and/or use gtk-doc annotations.  -->
<repository version="1.2"
            xmlns="http://www.gtk.org/introspection/core/1.0"
            xmlns:c="http://www.gtk.org/introspection/c/1.0"
            xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
  <include name="Colord" version="1.0"/>
  <include name="GObject" version="2.0"/>
  <include name="Gio" version="2.0"/>
  <include name="Gtk" version="3.0"/>
  <package name="colord-gtk"/>
  <c:include name="colord-gtk.h"/>
  <namespace name="ColordGtk"
             version="1.0"
             shared-library="libcolord-gtk.so.0.0"
             c:identifier-prefixes="Cd"
             c:symbol-prefixes="cd">
    <constant name="GTK_MAJOR_VERSION" value="0" c:type="CD_GTK_MAJOR_VERSION">
      <doc xml:space="preserve">The compile-time major version</doc>
      <type name="gint" c:type="gint"/>
    </constant>
    <constant name="GTK_MICRO_VERSION"
              value="26"
              c:type="CD_GTK_MICRO_VERSION">
      <doc xml:space="preserve">The compile-time micro version</doc>
      <type name="gint" c:type="gint"/>
    </constant>
    <constant name="GTK_MINOR_VERSION" value="1" c:type="CD_GTK_MINOR_VERSION">
      <doc xml:space="preserve">The compile-time minor version</doc>
      <type name="gint" c:type="gint"/>
    </constant>
    <class name="SampleWidget"
           c:symbol-prefix="sample_widget"
           c:type="CdSampleWidget"
           parent="Gtk.DrawingArea"
           glib:type-name="CdSampleWidget"
           glib:get-type="cd_sample_widget_get_type"
           glib:type-struct="SampleWidgetClass">
      <implements name="Atk.ImplementorIface"/>
      <implements name="Gtk.Buildable"/>
      <constructor name="new"
                   c:identifier="cd_sample_widget_new"
                   version="0.1.24">
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">A new #CdSampleWidget object.</doc>
          <type name="Gtk.Widget" c:type="GtkWidget*"/>
        </return-value>
      </constructor>
      <method name="set_color"
              c:identifier="cd_sample_widget_set_color"
              version="0.1.24">
        <doc xml:space="preserve">Sets the color for the sample widget</doc>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="sample" transfer-ownership="none">
            <doc xml:space="preserve">This class instance</doc>
            <type name="SampleWidget" c:type="CdSampleWidget*"/>
          </instance-parameter>
          <parameter name="color" transfer-ownership="none">
            <doc xml:space="preserve">A color</doc>
            <type name="Colord.ColorRGB" c:type="const CdColorRGB*"/>
          </parameter>
        </parameters>
      </method>
      <property name="color" writable="1" transfer-ownership="none">
        <type name="Colord.ColorRGB"/>
      </property>
      <field name="parent">
        <type name="Gtk.DrawingArea" c:type="GtkDrawingArea"/>
      </field>
      <field name="priv">
        <type name="SampleWidgetPrivate" c:type="CdSampleWidgetPrivate*"/>
      </field>
    </class>
    <record name="SampleWidgetClass"
            c:type="CdSampleWidgetClass"
            glib:is-gtype-struct-for="SampleWidget">
      <field name="parent_class">
        <type name="Gtk.DrawingAreaClass" c:type="GtkDrawingAreaClass"/>
      </field>
    </record>
    <record name="SampleWidgetPrivate"
            c:type="CdSampleWidgetPrivate"
            disguised="1">
    </record>
    <class name="SampleWindow"
           c:symbol-prefix="sample_window"
           c:type="CdSampleWindow"
           parent="Gtk.Window"
           glib:type-name="CdSampleWindow"
           glib:get-type="cd_sample_window_get_type"
           glib:type-struct="SampleWindowClass">
      <implements name="Atk.ImplementorIface"/>
      <implements name="Gtk.Buildable"/>
      <constructor name="new"
                   c:identifier="cd_sample_window_new"
                   version="0.1.22">
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">a new #CdSampleWindow object.</doc>
          <type name="Gtk.Window" c:type="GtkWindow*"/>
        </return-value>
      </constructor>
      <method name="set_color"
              c:identifier="cd_sample_window_set_color"
              version="0.1.22">
        <doc xml:space="preserve">Sets the window to a specific color.</doc>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="sample_window" transfer-ownership="none">
            <doc xml:space="preserve">a valid #CdSampleWindow instance</doc>
            <type name="SampleWindow" c:type="CdSampleWindow*"/>
          </instance-parameter>
          <parameter name="color" transfer-ownership="none">
            <doc xml:space="preserve">the color</doc>
            <type name="Colord.ColorRGB" c:type="const CdColorRGB*"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_fraction"
              c:identifier="cd_sample_window_set_fraction"
              version="0.1.22">
        <doc xml:space="preserve">Sets the percentage value on the window.</doc>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="sample_window" transfer-ownership="none">
            <doc xml:space="preserve">a valid #CdSampleWindow instance</doc>
            <type name="SampleWindow" c:type="CdSampleWindow*"/>
          </instance-parameter>
          <parameter name="fraction" transfer-ownership="none">
            <doc xml:space="preserve">the fraction value to show, or -1 for pulsing.</doc>
            <type name="gdouble" c:type="gdouble"/>
          </parameter>
        </parameters>
      </method>
      <field name="parent">
        <type name="Gtk.Window" c:type="GtkWindow"/>
      </field>
      <field name="priv">
        <type name="SampleWindowPrivate" c:type="CdSampleWindowPrivate*"/>
      </field>
    </class>
    <record name="SampleWindowClass"
            c:type="CdSampleWindowClass"
            glib:is-gtype-struct-for="SampleWindow">
      <field name="parent_class">
        <type name="Gtk.WindowClass" c:type="GtkWindowClass"/>
      </field>
    </record>
    <record name="SampleWindowPrivate"
            c:type="CdSampleWindowPrivate"
            disguised="1">
      <doc xml:space="preserve">Private #CdSampleWindow data</doc>
    </record>
    <class name="Window"
           c:symbol-prefix="window"
           c:type="CdWindow"
           parent="GObject.Object"
           glib:type-name="CdWindow"
           glib:get-type="cd_window_get_type"
           glib:type-struct="WindowClass">
      <constructor name="new" c:identifier="cd_window_new" version="0.1.20">
        <doc xml:space="preserve">Creates a new #CdWindow object.</doc>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve">a new CdWindow object.</doc>
          <type name="Window" c:type="CdWindow*"/>
        </return-value>
      </constructor>
      <function name="error_quark"
                c:identifier="cd_window_error_quark"
                version="0.1.20">
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">An error quark.</doc>
          <type name="GLib.Quark" c:type="GQuark"/>
        </return-value>
      </function>
      <virtual-method name="changed">
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="window" transfer-ownership="none">
            <type name="Window" c:type="CdWindow*"/>
          </instance-parameter>
          <parameter name="profile" transfer-ownership="none">
            <type name="Colord.Profile" c:type="CdProfile*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <method name="get_last_profile"
              c:identifier="cd_window_get_last_profile"
              version="0.1.20">
        <doc xml:space="preserve">Gets the color profile to use for this widget.</doc>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">a #CdProfile</doc>
          <type name="Colord.Profile" c:type="CdProfile*"/>
        </return-value>
        <parameters>
          <instance-parameter name="window" transfer-ownership="none">
            <doc xml:space="preserve">a #CdWindow instance.</doc>
            <type name="Window" c:type="CdWindow*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_profile"
              c:identifier="cd_window_get_profile"
              version="0.1.20">
        <doc xml:space="preserve">Gets the screen profile that should be used for the widget,
which corresponds to the screen output the widget most covers.

This method should be called when the widget has mapped, i.e.
g_signal_connect (dialog, "map", G_CALLBACK (map_cb), priv);

Note, the returned profile from cd_client_get_profile_for_widget_finish()
has already been connected to, as is ready to use.</doc>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="window" transfer-ownership="none">
            <doc xml:space="preserve">a #CdWindow instance.</doc>
            <type name="Window" c:type="CdWindow*"/>
          </instance-parameter>
          <parameter name="widget" transfer-ownership="none">
            <doc xml:space="preserve">a #GtkWidget</doc>
            <type name="Gtk.Widget" c:type="GtkWidget*"/>
          </parameter>
          <parameter name="cancellable"
                     transfer-ownership="none"
                     nullable="1"
                     allow-none="1">
            <doc xml:space="preserve">a #GCancellable or %NULL</doc>
            <type name="Gio.Cancellable" c:type="GCancellable*"/>
          </parameter>
          <parameter name="callback"
                     transfer-ownership="none"
                     nullable="1"
                     allow-none="1"
                     scope="async"
                     closure="3">
            <doc xml:space="preserve">the function to run on completion</doc>
            <type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
          </parameter>
          <parameter name="user_data"
                     transfer-ownership="none"
                     nullable="1"
                     allow-none="1">
            <doc xml:space="preserve">the data to pass to @callback</doc>
            <type name="gpointer" c:type="gpointer"/>
          </parameter>
        </parameters>
      </method>
      <method name="get_profile_finish"
              c:identifier="cd_window_get_profile_finish"
              version="0.1.20"
              throws="1">
        <doc xml:space="preserve">Gets the result from the asynchronous function.</doc>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve">a #CdProfile or %NULL</doc>
          <type name="Colord.Profile" c:type="CdProfile*"/>
        </return-value>
        <parameters>
          <instance-parameter name="window" transfer-ownership="none">
            <doc xml:space="preserve">a #CdWindow instance.</doc>
            <type name="Window" c:type="CdWindow*"/>
          </instance-parameter>
          <parameter name="res" transfer-ownership="none">
            <doc xml:space="preserve">the #GAsyncResult</doc>
            <type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
          </parameter>
        </parameters>
      </method>
      <method name="get_profile_sync"
              c:identifier="cd_window_get_profile_sync"
              version="0.1.20"
              throws="1">
        <doc xml:space="preserve">Gets the screen profile that should be used for the widget,
which corresponds to the screen output the widget most covers.

WARNING: This function is synchronous, and may block.
Do not use it in GUI applications.</doc>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve">a #CdProfile or %NULL</doc>
          <type name="Colord.Profile" c:type="CdProfile*"/>
        </return-value>
        <parameters>
          <instance-parameter name="window" transfer-ownership="none">
            <doc xml:space="preserve">a #CdWindow instance.</doc>
            <type name="Window" c:type="CdWindow*"/>
          </instance-parameter>
          <parameter name="widget" transfer-ownership="none">
            <doc xml:space="preserve">a #GtkWidget</doc>
            <type name="Gtk.Widget" c:type="GtkWidget*"/>
          </parameter>
          <parameter name="cancellable"
                     transfer-ownership="none"
                     nullable="1"
                     allow-none="1">
            <doc xml:space="preserve">a #GCancellable or %NULL</doc>
            <type name="Gio.Cancellable" c:type="GCancellable*"/>
          </parameter>
        </parameters>
      </method>
      <property name="Profile" transfer-ownership="none">
        <type name="utf8" c:type="gchar*"/>
      </property>
      <field name="parent">
        <type name="GObject.Object" c:type="GObject"/>
      </field>
      <field name="priv">
        <type name="WindowPrivate" c:type="CdWindowPrivate*"/>
      </field>
      <glib:signal name="changed" when="last" version="0.1.20">
        <doc xml:space="preserve">The ::changed signal is emitted when the device profile has
changed. The #CdProfile that is referenced in the callback
has not been connected to, and you will need to call
cd_profile_connect() if the ICC filename is required.</doc>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <parameter name="object" transfer-ownership="none">
            <type name="Colord.Profile"/>
          </parameter>
        </parameters>
      </glib:signal>
    </class>
    <record name="WindowClass"
            c:type="CdWindowClass"
            glib:is-gtype-struct-for="Window">
      <field name="parent_class">
        <type name="GObject.ObjectClass" c:type="GObjectClass"/>
      </field>
      <field name="changed">
        <callback name="changed">
          <return-value transfer-ownership="none">
            <type name="none" c:type="void"/>
          </return-value>
          <parameters>
            <parameter name="window" transfer-ownership="none">
              <type name="Window" c:type="CdWindow*"/>
            </parameter>
            <parameter name="profile" transfer-ownership="none">
              <type name="Colord.Profile" c:type="CdProfile*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="_cd_window_reserved1" introspectable="0">
        <callback name="_cd_window_reserved1">
          <return-value transfer-ownership="none">
            <type name="none" c:type="void"/>
          </return-value>
        </callback>
      </field>
      <field name="_cd_window_reserved2" introspectable="0">
        <callback name="_cd_window_reserved2">
          <return-value transfer-ownership="none">
            <type name="none" c:type="void"/>
          </return-value>
        </callback>
      </field>
      <field name="_cd_window_reserved3" introspectable="0">
        <callback name="_cd_window_reserved3">
          <return-value transfer-ownership="none">
            <type name="none" c:type="void"/>
          </return-value>
        </callback>
      </field>
      <field name="_cd_window_reserved4" introspectable="0">
        <callback name="_cd_window_reserved4">
          <return-value transfer-ownership="none">
            <type name="none" c:type="void"/>
          </return-value>
        </callback>
      </field>
      <field name="_cd_window_reserved5" introspectable="0">
        <callback name="_cd_window_reserved5">
          <return-value transfer-ownership="none">
            <type name="none" c:type="void"/>
          </return-value>
        </callback>
      </field>
      <field name="_cd_window_reserved6" introspectable="0">
        <callback name="_cd_window_reserved6">
          <return-value transfer-ownership="none">
            <type name="none" c:type="void"/>
          </return-value>
        </callback>
      </field>
      <field name="_cd_window_reserved7" introspectable="0">
        <callback name="_cd_window_reserved7">
          <return-value transfer-ownership="none">
            <type name="none" c:type="void"/>
          </return-value>
        </callback>
      </field>
      <field name="_cd_window_reserved8" introspectable="0">
        <callback name="_cd_window_reserved8">
          <return-value transfer-ownership="none">
            <type name="none" c:type="void"/>
          </return-value>
        </callback>
      </field>
    </record>
    <enumeration name="WindowError" c:type="CdWindowError">
      <doc xml:space="preserve">Errors that can be thrown</doc>
      <member name="failed" value="0" c:identifier="CD_WINDOW_ERROR_FAILED">
        <doc xml:space="preserve">the transaction failed for an unknown reason</doc>
      </member>
      <member name="last" value="1" c:identifier="CD_WINDOW_ERROR_LAST">
      </member>
    </enumeration>
    <record name="WindowPrivate" c:type="CdWindowPrivate" disguised="1">
      <doc xml:space="preserve">Private #CdWindow data</doc>
    </record>
  </namespace>
</repository>
