<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
<!ENTITY version SYSTEM "version.xml">
]>
<refentry id="cutter-Assertion-Utilities-for-GObject">
<refmeta>
<refentrytitle role="top_of_page" id="cutter-Assertion-Utilities-for-GObject.top_of_page"
>Assertion Utilities for GObject</refentrytitle>
<manvolnum
>3</manvolnum>
<refmiscinfo
>Cutterライブラリ</refmiscinfo>
</refmeta>
<refnamediv>
<refname
>Assertion Utilities for GObject</refname>
<refpurpose
>Utilities to write assertions related to <link linkend="GObject"
><type
>GObject</type
></link
> more easily.</refpurpose>
</refnamediv>

<refsect1 id="cutter-Assertion-Utilities-for-GObject.functions" role="functions_proto">
<title role="functions_proto.title"
>Functions</title>
<informaltable pgwide="1" frame="none">
<tgroup cols="2">
<colspec colname="functions_proto_type" colwidth="150px"/>
<colspec colname="functions_proto_name"/>
<tbody>
<row
><entry role="function_type"
><link linkend="gboolean"
><returnvalue
>gboolean</returnvalue
></link>
</entry
><entry role="function_name"
><link linkend="gcut-object-equal"
>gcut_object_equal</link
>&#160;<phrase role="c_punctuation"
>()</phrase
></entry
></row>
<row
><entry role="function_type"
><link linkend="gchar"
><returnvalue
>gchar</returnvalue
></link
>&#160;* </entry
><entry role="function_name"
><link linkend="gcut-object-inspect"
>gcut_object_inspect</link
>&#160;<phrase role="c_punctuation"
>()</phrase
></entry
></row>
<row
><entry role="function_type"
><link linkend="gchar"
><returnvalue
>gchar</returnvalue
></link
>&#160;* </entry
><entry role="function_name"
><link linkend="gcut-object-inspect-custom"
>gcut_object_inspect_custom</link
>&#160;<phrase role="c_punctuation"
>()</phrase
></entry
></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>


<refsect1 id="cutter-Assertion-Utilities-for-GObject.description" role="desc">
<title role="desc.title"
>説明</title>
<para
>検証を書くためには等価性を検証し、期待値と実測値を表示する必要があります。</para>
<para
>このユーティリティは<link linkend="GObject"
><type
>GObject</type
></link
>に関する検証の作成を補助します。</para>

</refsect1>
<refsect1 id="cutter-Assertion-Utilities-for-GObject.functions_details" role="details">
<title role="details.title"
>Functions</title>
<refsect2 id="gcut-object-equal" role="function" condition="since:1.0.5">
<title
>gcut_object_equal&#160;()</title>
<indexterm zone="gcut-object-equal" role="1.0.5"
><primary
>gcut_object_equal</primary
></indexterm>
<programlisting language="C"
><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>
gcut_object_equal (<parameter>const <link linkend="GObject"><type>GObject</type></link> *object1</parameter>,
                   <parameter>const <link linkend="GObject"><type>GObject</type></link> *object2</parameter>,
                   <parameter><link linkend="GEqualFunc"><type>GEqualFunc</type></link> equal_func</parameter>);</programlisting>
<para
>ふたつの<link linkend="GObject"
><type
>GObject</type
></link
>、<parameter
>object1</parameter
>と<parameter
>object2</parameter
>を<parameter
>equal_func</parameter
>で比較します。<parameter
>equal_func</parameter
>がNULLの場合は<parameter
>object1</parameter
>と<parameter
>object2</parameter
>は単にメモリの位置だけで比較します。</para>
<refsect3 id="gcut-object-equal.parameters" role="parameters">
<title
>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row
><entry role="parameter_name"
><para
>object1</para
></entry>
<entry role="parameter_description"
><para
>比較する<link linkend="GObject"
><type
>GObject</type
></link
>。</para
></entry>
<entry role="parameter_annotations"
></entry
></row>
<row
><entry role="parameter_name"
><para
>object2</para
></entry>
<entry role="parameter_description"
><para
>比較する<link linkend="GObject"
><type
>GObject</type
></link
>。</para
></entry>
<entry role="parameter_annotations"
></entry
></row>
<row
><entry role="parameter_name"
><para
>equal_func</para
></entry>
<entry role="parameter_description"
><para
>ふたつの<link linkend="GObject"
><type
>GObject</type
></link
>を比較する関数。NULLも可。</para
></entry>
<entry role="parameter_annotations"
></entry
></row>
</tbody
></tgroup
></informaltable>
</refsect3
><refsect3 id="gcut-object-equal.returns" role="returns">
<title
>Returns</title>
<para
><parameter
>object1</parameter
> == <parameter
>object2</parameter
>あるいは<parameter
>equal_func</parameter
>(<parameter
>object1</parameter
>, <parameter
>object2</parameter
>)がTRUEならTRUE、そうでない場合はFALSE。</para>
</refsect3
><para role="since"
>Since: <link linkend="api-index-1.0.5"
>1.0.5</link
></para
></refsect2>
<refsect2 id="gcut-object-inspect" role="function" condition="since:1.0.5">
<title
>gcut_object_inspect&#160;()</title>
<indexterm zone="gcut-object-inspect" role="1.0.5"
><primary
>gcut_object_inspect</primary
></indexterm>
<programlisting language="C"
><link linkend="gchar"
><returnvalue
>gchar</returnvalue
></link
>&#160;*
gcut_object_inspect (<parameter
>const <link linkend="GObject"
><type
>GObject</type
></link
> *object</parameter
>);</programlisting>
<para
><parameter
>object</parameter
>のプロパティの詳細を返します。返された文字列が必要なくなったときは開放してください。</para>
<refsect3 id="gcut-object-inspect.parameters" role="parameters">
<title
>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row
><entry role="parameter_name"
><para
>object</para
></entry>
<entry role="parameter_description"
><para
><link linkend="GObject"
><type
>GObject</type
></link
>。</para
></entry>
<entry role="parameter_annotations"
></entry
></row>
</tbody
></tgroup
></informaltable>
</refsect3
><refsect3 id="gcut-object-inspect.returns" role="returns">
<title
>Returns</title>
<para
><parameter
>object</parameter
>の詳細を示した文字列。</para>
</refsect3
><para role="since"
>Since: <link linkend="api-index-1.0.5"
>1.0.5</link
></para
></refsect2>
<refsect2 id="gcut-object-inspect-custom" role="function" condition="since:1.0.5">
<title
>gcut_object_inspect_custom&#160;()</title>
<indexterm zone="gcut-object-inspect-custom" role="1.0.5"
><primary
>gcut_object_inspect_custom</primary
></indexterm>
<programlisting language="C"
><link linkend="gchar"
><returnvalue
>gchar</returnvalue
></link
>&#160;*
gcut_object_inspect_custom (<parameter
>const <link linkend="GObject"
><type
>GObject</type
></link
> *object</parameter
>,
                            <parameter
><link linkend="GCutInspectFunction"
><type
>GCutInspectFunction</type
></link
> inspect_func</parameter
>,
                            <parameter
><link linkend="gpointer"
><type
>gpointer</type
></link
> user_data</parameter
>);</programlisting>
<para
><parameter
>object</parameter
>を<parameter
>inspect_func</parameter
>で詳細を示します。返された文字列が必要なくなったときは開放してください。</para>
<refsect3 id="gcut-object-inspect-custom.parameters" role="parameters">
<title
>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row
><entry role="parameter_name"
><para
>object</para
></entry>
<entry role="parameter_description"
><para
><link linkend="GObject"
><type
>GObject</type
></link
>。</para
></entry>
<entry role="parameter_annotations"
></entry
></row>
<row
><entry role="parameter_name"
><para
>inspect_func</para
></entry>
<entry role="parameter_description"
><para
><parameter
>object</parameter
>の詳細を示す関数。</para
></entry>
<entry role="parameter_annotations"
></entry
></row>
<row
><entry role="parameter_name"
><para
>user_data</para
></entry>
<entry role="parameter_description"
><para
>関数に渡すユーザ用データ。</para
></entry>
<entry role="parameter_annotations"
></entry
></row>
</tbody
></tgroup
></informaltable>
</refsect3
><refsect3 id="gcut-object-inspect-custom.returns" role="returns">
<title
>Returns</title>
<para
><parameter
>object</parameter
>の詳細を示した文字列。</para>
</refsect3
><para role="since"
>Since: <link linkend="api-index-1.0.5"
>1.0.5</link
></para
></refsect2>

</refsect1>

</refentry>
