-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshapes.h
More file actions
31 lines (27 loc) · 747 Bytes
/
shapes.h
File metadata and controls
31 lines (27 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef SHAPES_H
#define SHAPES_H
#include <stdio.h>
#include <curses.h>
#include "rect.h"
#include "tri.h"
#include "trp.h"
#include "dalton.h"
#include "screen.h"
typedef struct
{
int x,y,size, shape,color,full;
}shapes;
typedef struct Node
{
shapes s;
struct Node *next;
}node;
void onScreen (WINDOW * win, int ch, int x, int y, int size, int color, int full);
void drawShape(WINDOW * win, int x, int y,int size, int ch, int color, int full);
shapes saveShape(int x, int y,int size, int shape, int color, int full);
void insert(node *pointer, shapes s);
int find(node *pointer, int shape);
void print(WINDOW *win,node *pointer, int rows,int cols);
void initScreen(WINDOW * win,int sWidth,int sHeight);
void Delete(node *pointer);
#endif