-
Notifications
You must be signed in to change notification settings - Fork 71
/
GraphicalPointer.h
39 lines (35 loc) · 1.08 KB
/
GraphicalPointer.h
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
30
31
32
33
34
35
36
37
38
#pragma once
#include <gtkmm.h>
#include "Containers.h"
/* represents the pointer as a small window and moves that window */
class WindowPointer {
public:
struct PointerSpec {
int width, height;
double red, green, blue;
PointerSpec(int width, int height,
double red, double green, double blue);
};
private:
class GtkPointerDrawingArea: public Gtk::DrawingArea {
PointerSpec spec;
public:
GtkPointerDrawingArea(const PointerSpec &pointerspec);
virtual bool on_expose_event(GdkEventExpose *event);
};
class GtkPointerWindow: public Gtk::Window {
GtkPointerDrawingArea area;
public:
GtkPointerWindow(const PointerSpec &pointerspec);
};
GtkPointerWindow pointerwindow;
public:
WindowPointer(const PointerSpec &pointerspec);
void setPosition(int x, int y);
};
/* class PointerMark: public Gtk::DrawingArea { */
/* virtual bool on_expose_event(GdkEventExpose *event); */
/* }; */
/* class CalibrationMark: public Gtk::DrawingArea { */
/* virtual bool on_expose_event(GdkEventExpose *event); */
/* }; */