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
|
typedef struct
{
GdkPixbuf *bleue1 ;
gdouble bleu1x,bleue1y ;
gint bleu1w,bleue1h ;
GdkPixbuf *bleue2 ;
gdouble bleue2x,bleue2y ;
gint bleue2w,bleue2h ;
GdkPixbuf *marron ;
gdouble marronx,marrony ;
gint marronw,marronh ;
GdkPixbuf *rouge ;
gdouble rougex,rougey ;
gint rougew,rougeh ;
GdkPixbuf *rose ;
gdouble rosex,rosey ;
gint rosew,roseh ;
GdkPixbuf *jaune ;
gdouble jaunex,jauney ;
gint jaunew,jauneh ;
GdkPixbuf *vert ;
gdouble vertx,verty ;
gint vertw,verth ;
GdkPixbuf *violet ;
gdouble violetx,violety ;
gint violetw,violeth ;
GdkPixbuf *vide ;
gdouble videx,videy ;
gint videw,videh ;
}couleur;
couleur *init_couleurs()
{
couleur *couleur= g_malloc(sizeof(couleur)) ;
couleur->bleue1 = gdk_pixbuf_new_from_file_at_size("./bleue1.jpg", 39, 36, NULL) ;
couleur->bleue1h = 36;
couleur->bleu1w = 39;
couleur->bleue2 = gdk_pixbuf_new_from_file_at_size("./bleue2.jpg", 38, 35, NULL) ;
couleur->bleue2h = 35;
couleur->bleu1w = 38;
couleur->rouge = gdk_pixbuf_new_from_file_at_size("./rouge.jpg", 39, 36, NULL) ;
couleur->rougeh = 36;
couleur->rougew = 39;
couleur->vert = gdk_pixbuf_new_from_file_at_size("./vert.jpg", 40, 36, NULL) ;
couleur->verth = 36;
couleur->vertw = 40;
couleur->violet = gdk_pixbuf_new_from_file_at_size("./violet.jpg", 39,35 , NULL) ;
couleur->violeth = 35;
couleur->violetw = 39;
couleur->rose = gdk_pixbuf_new_from_file_at_size("./rose.jpg", 39, 36, NULL) ;
couleur->roseh = 36;
couleur->rosew = 39;
couleur->marron = gdk_pixbuf_new_from_file_at_size("./marron.jpg", 38, 36, NULL) ;
couleur->marronh = 36;
couleur->marronw = 38;
couleur->jaune = gdk_pixbuf_new_from_file_at_size("./jaune.jpg", 39, 35, NULL) ;
couleur->jauneh = 35;
couleur->jaunew = 39;
couleur->vide = gdk_pixbuf_new_from_file_at_size("./case vide.jpg", 42, 36, NULL);
couleur->videh = 36;
couleur->videw = 42;
return(couleur);
} |