tty-solitaire/lib/frame.h

22 lines
381 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;
2011-05-09 03:38:31 +00:00
int begin_y;
int begin_x;
2010-04-01 05:28:00 +00:00
};
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