2010-04-01 02:28:00 -03:00
|
|
|
#ifndef FRAME_H
|
|
|
|
#define FRAME_H
|
|
|
|
|
2010-04-04 21:54:22 -03:00
|
|
|
#include <ncurses.h>
|
|
|
|
|
2010-04-01 02:28:00 -03:00
|
|
|
#define FRAME_WIDTH 7
|
|
|
|
#define FRAME_HEIGHT 5
|
|
|
|
|
|
|
|
struct frame {
|
|
|
|
WINDOW *shape;
|
|
|
|
int height;
|
|
|
|
int width;
|
|
|
|
int start_y;
|
|
|
|
int start_x;
|
|
|
|
};
|
|
|
|
|
2010-04-05 04:33:10 -03:00
|
|
|
void allocate_frame(struct frame **);
|
|
|
|
void initialize_frame(struct frame *);
|
2010-04-01 02:28:00 -03:00
|
|
|
void delete_frame(struct frame *);
|
|
|
|
void set_frame(struct frame *, int, int);
|
|
|
|
|
|
|
|
#endif
|