tty-solitaire/lib/frame.h

23 lines
369 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 height;
int width;
int start_y;
int start_x;
};
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