fenetre.c
00001 #include <stdio.h>
00002 #include "fenetre.h"
00003
00004 void changer_place(struct fenetre *f, int x, int y)
00005 {
00006 f->taille_x = x;
00007 f->taille_y = y;
00008 }
00009
00010 void changer_taille(struct fenetre *f, int x, int y)
00011 {
00012 f->pos_x = x;
00013 f->pos_y = y;
00014 }
00015
00016 void affiche(struct fenetre* f)
00017 {
00018 fprintf(stderr, "[C] fenetre (adr: %p). Position: x = %d, y = %d. "
00019 "Taille: x = %d, y = %d.\n", f, f->pos_x, f->pos_y,
00020 f->taille_x, f->taille_y);
00021 }