| MATE UI Library Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | ||||
#include <libmateui/libmateui.h> struct MateScores; GtkWidget * mate_scores_display_with_pixmap (const gchar *pixmap_logo,const gchar *app_name,const gchar *level,int pos); GtkWidget * mate_scores_new (guint n_scores,gchar **names,gfloat *scores,time_t *times,gboolean clear); void mate_scores_construct (MateScores *gs,guint n_scores,gchar **names,gfloat *scores,time_t *times,gboolean clear); void mate_scores_set_logo_label (MateScores *gs,const gchar *txt,const gchar *font,GdkColor *col); void mate_scores_set_logo_pixmap (MateScores *gs,const gchar *pix_name); void mate_scores_set_logo_widget (MateScores *gs,GtkWidget *w); void mate_scores_set_color (MateScores *gs,guint n,GdkColor *col); void mate_scores_set_def_color (MateScores *gs,GdkColor *col); void mate_scores_set_colors (MateScores *gs,GdkColor *col); void mate_scores_set_logo_label_title (MateScores *gs,const gchar *txt); void mate_scores_set_current_player (MateScores *gs,gint i);
GObject
+----GInitiallyUnowned
+----GtkObject
+----GtkWidget
+----GtkContainer
+----GtkBin
+----GtkWindow
+----GtkDialog
+----MateScores
struct MateScores;
MateScores is deprecated and should not be used in newly-written code.
GtkWidget * mate_scores_display_with_pixmap (const gchar *pixmap_logo,const gchar *app_name,const gchar *level,int pos);
mate_scores_display_with_pixmap is deprecated and should not be used in newly-written code.
Does all the work of displaying the best scores. It calls mate_score_get_notables to retrieve the info, creates the window, and show it.
|
Filename of a logo pixmap to display |
|
Name of the application, as in mate_score_init. |
|
Level of the game or NULL.
|
|
Position in the top ten of the current player, as returned by mate_score_log. |
Returns : |
If a dialog is displayed return it's pointer. It can also
be NULL if no dialog is displayed
|
GtkWidget * mate_scores_new (guint n_scores,gchar **names,gfloat *scores,time_t *times,gboolean clear);
mate_scores_new is deprecated and should not be used in newly-written code.
Creates the high-scores window.
|
Number of positions. |
|
Names of the players. |
|
Scores |
|
Time in which the scores were done |
|
Add a "Clear" Button? |
Returns : |
A new MateScores widget |
void mate_scores_construct (MateScores *gs,guint n_scores,gchar **names,gfloat *scores,time_t *times,gboolean clear);
mate_scores_construct is deprecated and should not be used in newly-written code.
useful for language bindings and subclassing, not to be used by itself, see mate_scores_new.
|
Number of positions. |
|
Names of the players. |
|
Scores |
|
Time in which the scores were done |
|
Add a "Clear" Button? |
void mate_scores_set_logo_label (MateScores *gs,const gchar *txt,const gchar *font,GdkColor *col);
mate_scores_set_logo_label is deprecated and should not be used in newly-written code.
Creates a label to be the logo
|
A MateScores widget |
|
Text in the label. |
|
Font to use in the label. |
|
Color to use in the label. |
void mate_scores_set_logo_pixmap (MateScores *gs,const gchar *pix_name);
mate_scores_set_logo_pixmap is deprecated and should not be used in newly-written code.
Sets the logo on the scores dialog box to a pixmap
|
A MateScores widget |
|
filename of a pixmap |
void mate_scores_set_logo_widget (MateScores *gs,GtkWidget *w);
mate_scores_set_logo_widget is deprecated and should not be used in newly-written code.
Set an arbitrary widget to be the logo.
|
A MateScores widget |
|
Widget to be used as logo. |
void mate_scores_set_color (MateScores *gs,guint n,GdkColor *col);
mate_scores_set_color is deprecated and should not be used in newly-written code.
Set the color of one entry.
|
A MateScores widget |
|
Entry to be changed. |
|
Color. |
void mate_scores_set_def_color (MateScores *gs,GdkColor *col);
mate_scores_set_def_color is deprecated and should not be used in newly-written code.
Set the default color of the entries.
|
A MateScores widget |
|
Color |
void mate_scores_set_colors (MateScores *gs,GdkColor *col);
mate_scores_set_colors is deprecated and should not be used in newly-written code.
Set the color of all the entries.
|
A MateScores widget |
|
Array of colors. |
void mate_scores_set_logo_label_title (MateScores *gs,const gchar *txt);
mate_scores_set_logo_label_title is deprecated and should not be used in newly-written code.
Creates a label to be the logo
|
A MateScores widget |
|
Name of the logo. |
void mate_scores_set_current_player (MateScores *gs,gint i);
mate_scores_set_current_player is deprecated and should not be used in newly-written code.
Set the index of the current player in top ten.
|
A MateScores widget |
|
Index of the current(from 0 to 9). |