summaryrefslogtreecommitdiffstats
path: root/draw.h
blob: 90ebc003d927610f1f8b888bdc692cfa7eee3cb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef DRAW_H_
#define DRAW_H_

#include <gtk/gtk.h>
#include "Vertex.h"


gboolean drawTopView(GtkWidget *widget, GdkEventExpose *event, gpointer data);

float getScale();
void setScale(float s);

void imageToView(Vertex *v);
void viewToImage(Vertex *v);

float getImageWidth();
float getImageHeight();

float getXTranslate();
void setXTranslate(float x);
float getYTranslate();
void setYTranslate(float y);

#endif /*DRAW_H_*/