tty-solitaire/lib/frame.h
Murilo Pereira 75d1e5f23b Pessimistic memory allocation.
* Added/removed headers as necessary
* Removed 'key_event' function from keyboard
2011-02-06 03:45:58 -02:00

23 lines
370 B
C

#ifndef FRAME_H
#define FRAME_H
#include <ncurses.h>
#define FRAME_WIDTH 7
#define FRAME_HEIGHT 5
struct frame {
WINDOW *shape;
int start_y;
int start_x;
};
extern const char *program_name;
void allocate_frame(struct frame **);
void initialize_frame(struct frame *);
void delete_frame(struct frame *);
void set_frame(struct frame *, int, int);
#endif