tty-solitaire/lib/frame.h

24 lines
415 B
C
Raw Normal View History

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;
};
extern const char *program_name;
void allocate_frame(struct frame **);
void initialize_frame(struct frame *);
2011-05-01 06:06:43 +00:00
struct frame *duplicate_frame(struct frame *);
2011-02-14 02:10:47 +00:00
void free_frame(struct frame *);
2010-04-01 05:28:00 +00:00
void set_frame(struct frame *, int, int);
#endif