<refentry id="GnomeScores" revision="20 Jun 2000">
<refmeta>
<refentrytitle>GnomeScores</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GNOMEUI Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>GnomeScores</refname><refpurpose>
Dialog box which displays high scores</refpurpose>
</refnamediv>

<refsynopsisdiv><title>Synopsis</title>
<synopsis>

#include &lt;gnome.h&gt;


struct      <link linkend="GnomeScores-struct">GnomeScores</link>;
<link linkend="GtkWidget">GtkWidget</link>*  <link linkend="gnome-scores-new">gnome_scores_new</link>                (<link linkend="guint">guint</link> n_scores,
                                             <link linkend="gchar">gchar</link> **names,
                                             <link linkend="gfloat">gfloat</link> *scores,
                                             <link linkend="time-t">time_t</link> *times,
                                             <link linkend="guint">guint</link> clear);
void        <link linkend="gnome-scores-set-logo-label">gnome_scores_set_logo_label</link>     (<link linkend="GnomeScores">GnomeScores</link> *gs,
                                             <link linkend="gchar">gchar</link> *txt,
                                             <link linkend="gchar">gchar</link> *font,
                                             <link linkend="GdkColor">GdkColor</link> *color);
void        <link linkend="gnome-scores-set-logo-pixmap">gnome_scores_set_logo_pixmap</link>    (<link linkend="GnomeScores">GnomeScores</link> *gs,
                                             <link linkend="gchar">gchar</link> *logo);
void        <link linkend="gnome-scores-set-logo-widget">gnome_scores_set_logo_widget</link>    (<link linkend="GnomeScores">GnomeScores</link> *gs,
                                             <link linkend="GtkWidget">GtkWidget</link> *w);
void        <link linkend="gnome-scores-set-color">gnome_scores_set_color</link>          (<link linkend="GnomeScores">GnomeScores</link> *gs,
                                             <link linkend="guint">guint</link> pos,
                                             <link linkend="GdkColor">GdkColor</link> *col);
void        <link linkend="gnome-scores-set-def-color">gnome_scores_set_def_color</link>      (<link linkend="GnomeScores">GnomeScores</link> *gs,
                                             <link linkend="GdkColor">GdkColor</link> *col);
void        <link linkend="gnome-scores-set-colors">gnome_scores_set_colors</link>         (<link linkend="GnomeScores">GnomeScores</link> *gs,
                                             <link linkend="GdkColor">GdkColor</link> *col);
void        <link linkend="gnome-scores-set-logo-label-title">gnome_scores_set_logo_label_title</link>
                                            (<link linkend="GnomeScores">GnomeScores</link> *gs,
                                             <link linkend="gchar">gchar</link> *txt);
void        <link linkend="gnome-scores-set-current-player">gnome_scores_set_current_player</link> (<link linkend="GnomeScores">GnomeScores</link> *gs,
                                             <link linkend="gint">gint</link> i);

</synopsis>
</refsynopsisdiv>

<refsect1>
<title>Object Hierarchy</title>
<synopsis>

  <link linkend="GtkObject">GtkObject</link>
   +----<link linkend="GtkWidget">GtkWidget</link>
         +----<link linkend="GtkContainer">GtkContainer</link>
               +----<link linkend="GtkBin">GtkBin</link>
                     +----<link linkend="GtkWindow">GtkWindow</link>
                           +----<link linkend="GnomeDialog">GnomeDialog</link>
                                 +----GnomeScores
</synopsis>

</refsect1>




<refsect1>
<title>Description</title>
<para>
This is a high-scores dialog box. The GNOME libraries also handle
loading/saving systemwide high scores in a secure way.
</para>
</refsect1>

<refsect1>
<title>Details</title>
<refsect2>
<title><anchor id="GnomeScores-struct">struct GnomeScores</title>
<programlisting>struct GnomeScores;</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="gnome-scores-new">gnome_scores_new ()</title>
<programlisting><link linkend="GtkWidget">GtkWidget</link>*  gnome_scores_new                (<link linkend="guint">guint</link> n_scores,
                                             <link linkend="gchar">gchar</link> **names,
                                             <link linkend="gfloat">gfloat</link> *scores,
                                             <link linkend="time-t">time_t</link> *times,
                                             <link linkend="guint">guint</link> clear);</programlisting>
<para>
</para>
<para>

</para><informaltable pgwide=1 frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>n_scores</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><parameter>names</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><parameter>scores</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><parameter>times</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><parameter>clear</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> A new <link linkend="GnomeScores">GnomeScores</link> widget
</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gnome-scores-set-logo-label">gnome_scores_set_logo_label ()</title>
<programlisting>void        gnome_scores_set_logo_label     (<link linkend="GnomeScores">GnomeScores</link> *gs,
                                             <link linkend="gchar">gchar</link> *txt,
                                             <link linkend="gchar">gchar</link> *font,
                                             <link linkend="GdkColor">GdkColor</link> *color);</programlisting>
<para>
</para>
<para>

</para><informaltable pgwide=1 frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>gs</parameter>&nbsp;:</entry>
<entry> A <link linkend="GnomeScores">GnomeScores</link> widget
</entry></row>
<row><entry align="right"><parameter>txt</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><parameter>font</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><parameter>color</parameter>&nbsp;:</entry>
<entry>

</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gnome-scores-set-logo-pixmap">gnome_scores_set_logo_pixmap ()</title>
<programlisting>void        gnome_scores_set_logo_pixmap    (<link linkend="GnomeScores">GnomeScores</link> *gs,
                                             <link linkend="gchar">gchar</link> *logo);</programlisting>
<para>
</para>
<para>

</para><informaltable pgwide=1 frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>gs</parameter>&nbsp;:</entry>
<entry> A <link linkend="GnomeScores">GnomeScores</link> widget
</entry></row>
<row><entry align="right"><parameter>logo</parameter>&nbsp;:</entry>
<entry>

</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gnome-scores-set-logo-widget">gnome_scores_set_logo_widget ()</title>
<programlisting>void        gnome_scores_set_logo_widget    (<link linkend="GnomeScores">GnomeScores</link> *gs,
                                             <link linkend="GtkWidget">GtkWidget</link> *w);</programlisting>
<para>
</para>
<para>

</para><informaltable pgwide=1 frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>gs</parameter>&nbsp;:</entry>
<entry> A <link linkend="GnomeScores">GnomeScores</link> widget
</entry></row>
<row><entry align="right"><parameter>w</parameter>&nbsp;:</entry>
<entry>
</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gnome-scores-set-color">gnome_scores_set_color ()</title>
<programlisting>void        gnome_scores_set_color          (<link linkend="GnomeScores">GnomeScores</link> *gs,
                                             <link linkend="guint">guint</link> pos,
                                             <link linkend="GdkColor">GdkColor</link> *col);</programlisting>
<para>
</para>
<para>

</para><informaltable pgwide=1 frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>gs</parameter>&nbsp;:</entry>
<entry> A <link linkend="GnomeScores">GnomeScores</link> widget
</entry></row>
<row><entry align="right"><parameter>pos</parameter>&nbsp;:</entry>
<entry></entry></row>
<row><entry align="right"><parameter>col</parameter>&nbsp;:</entry>
<entry>
</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gnome-scores-set-def-color">gnome_scores_set_def_color ()</title>
<programlisting>void        gnome_scores_set_def_color      (<link linkend="GnomeScores">GnomeScores</link> *gs,
                                             <link linkend="GdkColor">GdkColor</link> *col);</programlisting>
<para>
</para>
<para>

</para><informaltable pgwide=1 frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>gs</parameter>&nbsp;:</entry>
<entry> A <link linkend="GnomeScores">GnomeScores</link> widget
</entry></row>
<row><entry align="right"><parameter>col</parameter>&nbsp;:</entry>
<entry>
</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gnome-scores-set-colors">gnome_scores_set_colors ()</title>
<programlisting>void        gnome_scores_set_colors         (<link linkend="GnomeScores">GnomeScores</link> *gs,
                                             <link linkend="GdkColor">GdkColor</link> *col);</programlisting>
<para>
</para>
<para>

</para><informaltable pgwide=1 frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>gs</parameter>&nbsp;:</entry>
<entry> A <link linkend="GnomeScores">GnomeScores</link> widget
</entry></row>
<row><entry align="right"><parameter>col</parameter>&nbsp;:</entry>
<entry>
</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gnome-scores-set-logo-label-title">gnome_scores_set_logo_label_title ()</title>
<programlisting>void        gnome_scores_set_logo_label_title
                                            (<link linkend="GnomeScores">GnomeScores</link> *gs,
                                             <link linkend="gchar">gchar</link> *txt);</programlisting>
<para>
</para>
<para>

</para><informaltable pgwide=1 frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>gs</parameter>&nbsp;:</entry>
<entry> A <link linkend="GnomeScores">GnomeScores</link> widget
</entry></row>
<row><entry align="right"><parameter>txt</parameter>&nbsp;:</entry>
<entry>
</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gnome-scores-set-current-player">gnome_scores_set_current_player ()</title>
<programlisting>void        gnome_scores_set_current_player (<link linkend="GnomeScores">GnomeScores</link> *gs,
                                             <link linkend="gint">gint</link> i);</programlisting>
<para>
</para>
<para>

</para><informaltable pgwide=1 frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>gs</parameter>&nbsp;:</entry>
<entry> A <link linkend="GnomeScores">GnomeScores</link> widget
</entry></row>
<row><entry align="right"><parameter>i</parameter>&nbsp;:</entry>
<entry>
</entry></row>
</tbody></tgroup></informaltable></refsect2>

</refsect1>




</refentry>
