Gnome User Interface Library Reference Manual
<<< Previous Page | Home | Up | Next Page >>>

# GnomeScores

## Name

GnomeScores -- Dialog box which displays high scores

## Synopsis

    #include <gnome.h>

    struct      GnomeScores;
    GtkWidget*  gnome_scores_new                (guint n_scores,
                                                 gchar **names,
                                                 gfloat *scores,
                                                 time_t *times,
                                                 guint clear);
    void        gnome_scores_set_logo_label     (GnomeScores *gs,
                                                 gchar *txt,
                                                 gchar *font,
                                                 GdkColor *color);
    void        gnome_scores_set_logo_pixmap    (GnomeScores *gs,
                                                 gchar *logo);
    void        gnome_scores_set_logo_widget    (GnomeScores *gs,
                                                 GtkWidget *w);
    void        gnome_scores_set_color          (GnomeScores *gs,
                                                 guint pos,
                                                 GdkColor *col);
    void        gnome_scores_set_def_color      (GnomeScores *gs,
                                                 GdkColor *col);
    void        gnome_scores_set_colors         (GnomeScores *gs,
                                                 GdkColor *col);
    void        gnome_scores_set_logo_label_title
                                                (GnomeScores *gs,
                                                 gchar *txt);
    void        gnome_scores_set_current_player (GnomeScores *gs,
                                                 gint i);

## Object Hierarchy

      GtkObject
       +----GtkWidget
             +----GtkContainer
                   +----GtkBin
                         +----GtkWindow
                               +----GnomeDialog
                                     +----GnomeScores

## Description

This is a high-scores dialog box. The GNOME libraries also handle loading/saving systemwide high scores in a secure way.

## Details

### struct GnomeScores

    struct GnomeScores;

### gnome_scores_new ()

    GtkWidget*  gnome_scores_new                (guint n_scores,
                                                 gchar **names,
                                                 gfloat *scores,
                                                 time_t *times,
                                                 guint clear);

`n_scores` : |
`names` : |
`scores` : |
`times` : |
`clear` : |
Returns : | A new GnomeScores widget

### gnome_scores_set_logo_label ()

    void        gnome_scores_set_logo_label     (GnomeScores *gs,
                                                 gchar *txt,
                                                 gchar *font,
                                                 GdkColor *color);

`gs` : | A GnomeScores widget
`txt` : |
`font` : |
`color` : |

### gnome_scores_set_logo_pixmap ()

    void        gnome_scores_set_logo_pixmap    (GnomeScores *gs,
                                                 gchar *logo);

`gs` : | A GnomeScores widget
`logo` : |

### gnome_scores_set_logo_widget ()

    void        gnome_scores_set_logo_widget    (GnomeScores *gs,
                                                 GtkWidget *w);

`gs` : | A GnomeScores widget
`w` : |

### gnome_scores_set_color ()

    void        gnome_scores_set_color          (GnomeScores *gs,
                                                 guint pos,
                                                 GdkColor *col);

`gs` : | A GnomeScores widget
`pos` : |
`col` : |

### gnome_scores_set_def_color ()

    void        gnome_scores_set_def_color      (GnomeScores *gs,
                                                 GdkColor *col);

`gs` : | A GnomeScores widget
`col` : |

### gnome_scores_set_colors ()

    void        gnome_scores_set_colors         (GnomeScores *gs,
                                                 GdkColor *col);

`gs` : | A GnomeScores widget
`col` : |

### gnome_scores_set_logo_label_title ()

    void        gnome_scores_set_logo_label_title
                                                (GnomeScores *gs,
                                                 gchar *txt);

`gs` : | A GnomeScores widget
`txt` : |

### gnome_scores_set_current_player ()

    void        gnome_scores_set_current_player (GnomeScores *gs,
                                                 gint i);

`gs` : | A GnomeScores widget
`i` : |

<<< Previous Page | Home | Up | Next Page >>>
GnomePropertyBox | GnomeStock