2010-04-01 05:28:00 +00:00
|
|
|
#ifndef FRAME_H
|
|
|
|
#define FRAME_H
|
|
|
|
|
2010-04-05 00:54:22 +00:00
|
|
|
#include <ncurses.h>
|
|
|
|
|
2010-04-01 05:28:00 +00:00
|
|
|
#define FRAME_WIDTH 7
|
|
|
|
#define FRAME_HEIGHT 5
|
|
|
|
|
|
|
|
struct frame {
|
|
|
|
WINDOW *shape;
|
|
|
|
int start_y;
|
|
|
|
int start_x;
|
|
|
|
};
|
|
|
|
|
2011-02-06 05:44:45 +00:00
|
|
|
extern const char *program_name;
|
|
|
|
|
2010-04-05 07:33:10 +00:00
|
|
|
void allocate_frame(struct frame **);
|
|
|
|
void initialize_frame(struct frame *);
|
2010-04-01 05:28:00 +00:00
|
|
|
void delete_frame(struct frame *);
|
|
|
|
void set_frame(struct frame *, int, int);
|
|
|
|
|
|
|
|
#endif
|