GNOME UI Library Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
struct GnomeScoresPrivate; GtkWidget* gnome_scores_display_with_pixmap (const gchar *pixmap_logo, const gchar *app_name, const gchar *level, int pos); GtkWidget* gnome_scores_new (guint n_scores, gchar **names, gfloat *scores, time_t *times, gboolean clear); void gnome_scores_construct (GnomeScores *gs, guint n_scores, gchar **names, gfloat *scores, time_t *times, gboolean clear); void gnome_scores_set_logo_label (GnomeScores *gs, const gchar *txt, const gchar *font, GdkColor *color); void gnome_scores_set_logo_pixmap (GnomeScores *gs, const 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, const gchar *txt); void gnome_scores_set_current_player (GnomeScores *gs, gint i); |
GtkWidget* gnome_scores_display_with_pixmap (const gchar *pixmap_logo, const gchar *app_name, const gchar *level, int pos); |
Does all the work of displaying the best scores. It calls gnome_score_get_notables to retrieve the info, creates the window, and show it.
pixmap_logo : | Filename of a logo pixmap to display |
app_name : | Name of the application, as in gnome_score_init. |
level : | Level of the game or NULL. |
pos : | Position in the top ten of the current player, as returned by gnome_score_log. |
Returns : | If a dialog is displayed return it's pointer. It can also be NULL if no dialog is displayed |
GtkWidget* gnome_scores_new (guint n_scores, gchar **names, gfloat *scores, time_t *times, gboolean clear); |
Creates the high-scores window.
void gnome_scores_construct (GnomeScores *gs, guint n_scores, gchar **names, gfloat *scores, time_t *times, gboolean clear); |
useful for language bindings and subclassing, not to be used by itself, see gnome_scores_new
void gnome_scores_set_logo_label (GnomeScores *gs, const gchar *txt, const gchar *font, GdkColor *color); |
Creates a label to be the logo
void gnome_scores_set_logo_pixmap (GnomeScores *gs, const gchar *logo); |
Sets the logo on the scores dialog box to a pixmap
void gnome_scores_set_logo_widget (GnomeScores *gs, GtkWidget *w); |
Set an arbitrary widget to be the logo.
void gnome_scores_set_color (GnomeScores *gs, guint pos, GdkColor *col); |
Set the color of one entry.
void gnome_scores_set_def_color (GnomeScores *gs, GdkColor *col); |
Set the default color of the entries.
void gnome_scores_set_colors (GnomeScores *gs, GdkColor *col); |
Set the color of all the entries.
void gnome_scores_set_logo_label_title (GnomeScores *gs, const gchar *txt); |
Creates a label to be the logo
void gnome_scores_set_current_player (GnomeScores *gs, gint i); |
Set the index of the current player in top ten.