Statistics
| Revision:

root / branches / simulator / projects / simulator / simulator / gui / gtk_environment_view.h @ 1086

History | View | Annotate | Download (1.1 KB)

1
#ifndef __ENVIRONMENT_VIEW_H__
2
#define __ENVIRONMENT_VIEW_H__
3

    
4
#include <gdk/gdk.h>
5
#include <gtk/gtkwidget.h>
6

    
7
#include <pthread.h>
8
#include <time.h>
9

    
10
#define GTK_ENVIRONMENT_VIEW(obj)                GTK_CHECK_CAST(obj, \
11
                                                                        gtk_environment_view_get_type(), GtkEnvironmentView)
12
#define GTK_ENVIRONMENT_VIEW_CLASS(kclass)        GTK_CHECK_CLASS_CAST ( \
13
                                                                                kclass, gtk_environment_view_get_type(), \
14
                                                                                GtkEnvironmentViewClass)
15
#define GTK_IS_ENVIRONMENT_VIEW(obj)                GTK_CHECK_TYPE(obj, \
16
                                                                                gtk_environment_view_get_type())
17

    
18
#define NUM_THREADS                4
19

    
20
struct _GtkEnvironmentView
21
{
22
        GtkWidget widget;
23
        
24
        int width;
25
        int height;
26
        double topLeftX;
27
        double topLeftY;
28
        double scale;
29

    
30
        int mouseDownX;
31
        int mouseDownY;
32
        int mouseX;
33
        int mouseY;
34
        int mouseDown;
35

    
36
        int selectedRobot;
37
};
38

    
39
struct _GtkEnvironmentViewClass
40
{
41
        GtkWidgetClass parent_class;
42
};
43

    
44
typedef struct _GtkEnvironmentView GtkEnvironmentView;
45
typedef struct _GtkEnvironmentViewClass GtkEnvironmentViewClass;
46

    
47
GtkWidget* gtk_environment_view_new(void);
48
GtkType gtk_environment_view_get_type(void);
49

    
50
void gtk_environment_view_refresh(GtkWidget* view);
51

    
52
#endif
53