/usr/include/libgnomeui-2.0/libgnomeui/gnome-scores.h is in libgnomeui-dev 2.24.5-3.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 | /*
* Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation
* All rights reserved.
*
* This file is part of the Gnome Library.
*
* The Gnome Library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* The Gnome Library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with the Gnome Library; see the file COPYING.LIB. If not,
* write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
/*
@NOTATION@
*/
/*
* "High Scores" Widget
*
* AUTHOR:
* Horacio J. Peña <horape@compendium.com.ar>
*
* This is free software (under the terms of the GNU LGPL)
*
* USAGE:
* Use the gnome_scores_display. The other functions are going to be
* discontinued... (ok, i should add pixmap support to *_display
* before)
*
* DESCRIPTION:
* A specialized widget to display "High Scores" for games. It's
* very integrated with the gnome-score stuff so you only need to
* call one function to do all the work...
*
*/
#ifndef GNOME_SCORES_H
#define GNOME_SCORES_H
#ifndef GNOME_DISABLE_DEPRECATED
#include <time.h>
#include <gtk/gtk.h>
G_BEGIN_DECLS
#define GNOME_TYPE_SCORES (gnome_scores_get_type ())
#define GNOME_SCORES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNOME_TYPE_SCORES, GnomeScores))
#define GNOME_SCORES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNOME_TYPE_SCORES, GnomeScoresClass))
#define GNOME_IS_SCORES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNOME_TYPE_SCORES))
#define GNOME_IS_SCORES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNOME_TYPE_SCORES))
#define GNOME_SCORES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNOME_TYPE_SCORES, GnomeScoresClass))
typedef struct _GnomeScores GnomeScores;
typedef struct _GnomeScoresPrivate GnomeScoresPrivate;
typedef struct _GnomeScoresClass GnomeScoresClass;
struct _GnomeScores
{
GtkDialog dialog;
/*< private >*/
GnomeScoresPrivate *_priv;
};
struct _GnomeScoresClass
{
GtkDialogClass parent_class;
/* Padding for possible expansion */
gpointer padding1;
gpointer padding2;
};
GType gnome_scores_get_type (void) G_GNUC_CONST;
/* 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.
USAGE:
pos = gnome_score_log(score, level, TRUE);
gnome_scores_display (_("Mi game"), "migame", level, pos);
*/
GtkWidget * /* returns the pointer to the displayed window */
gnome_scores_display (
const gchar *title, /* Title. */
const gchar *app_name, /* Name of the application, as in
gnome_score_init. */
const gchar *level, /* Level of the game or NULL. */
int pos /* Position in the top ten of the
current player, as returned by
gnome_score_log. */
);
/* Same as above, but with a pixmap logo instead of just text */
GtkWidget *
gnome_scores_display_with_pixmap (const gchar *pixmap_logo,
const gchar *app_name,
const gchar *level,
int pos);
/* Creates the high-scores window. */
GtkWidget* gnome_scores_new (
guint n_scores, /* Number of positions. */
gchar **names, /* Names of the players. */
gfloat *scores, /* Scores */
time_t *times, /* Time in which the scores were done */
gboolean clear /* Add a "Clear" Button? */
);
/* Constructor for bindings / subclassing */
void gnome_scores_construct (GnomeScores *gs,
guint n_scores,
gchar **names,
gfloat *scores,
time_t *times,
gboolean clear);
/* Creates a label to be the logo */
void gnome_scores_set_logo_label (
GnomeScores *gs, /* GNOME Scores widget. */
const gchar *txt, /* Text in the label. */
const gchar *font, /* Font to use in the label. */
GdkColor *col /* Color to use in the label. */
);
/* Creates a pixmap to be the logo */
void gnome_scores_set_logo_pixmap (
GnomeScores *gs, /* GNOME Scores widget. */
const gchar *pix_name /* Name of the .xpm. */
);
/* Set an arbitrary widget to be the logo. */
void gnome_scores_set_logo_widget (
GnomeScores *gs, /* GNOME Scores widget. */
GtkWidget *w /* Widget to be used as logo. */
);
/* Set the color of one entry. */
void gnome_scores_set_color (
GnomeScores *gs, /* GNOME Scores widget. */
guint n, /* Entry to be changed. */
GdkColor *col /* Color. */
);
/* Set the default color of the entries. */
void gnome_scores_set_def_color (
GnomeScores *gs, /* GNOME Scores widget. */
GdkColor *col /* Color. */
);
/* Set the color of all the entries. */
void gnome_scores_set_colors (
GnomeScores *gs,
GdkColor *col /* Array of colors. */
);
/* Creates a label to be the logo */
void gnome_scores_set_logo_label_title (
GnomeScores *gs, /* GNOME Scores widget. */
const gchar *txt /* Name of the logo. */
);
/* Set the index of the current player in top ten. */
void gnome_scores_set_current_player (
GnomeScores *gs, /* GNOME Scores widget. */
gint i /* Index of the current(from 0 to 9). */
);
G_END_DECLS
#endif /* GNOME_DISABLE_DEPRECATED */
#endif /* GNOME_SCORES_H */
|