-
Notifications
You must be signed in to change notification settings - Fork 3
/
listeners.go
48 lines (38 loc) · 897 Bytes
/
listeners.go
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
39
40
41
42
43
44
45
46
47
48
package gohotdraw
type EventListener interface{}
type FigureListener interface {
EventListener
//FigureInvalidated(event *FigureEvent)
FigureChanged(event *FigureEvent)
//Sent when a figure was added to a drawing
FigureAdded(event *FigureEvent)
FigureRemoved(event *FigureEvent)
}
type FigureSelectionListener interface {
FigureSelectionChanged(view DrawingView)
}
type InputListener interface {
ExposeListener
MouseListener
MouseMotionListener
KeyListener
}
type MouseListener interface {
MouseDown(e *MouseEvent)
MouseUp(e *MouseEvent)
}
type MouseMotionListener interface {
MouseDrag(e *MouseEvent)
//MouseMove(e *MouseEvent)
}
type KeyListener interface {
KeyDown(e *KeyEvent)
KeyUp(e *KeyEvent)
}
type ExposeListener interface {
ExposeHappened(e *ExposeEvent)
}
//type ToolListener interface {
// //ToolStarted(event *ToolEvent)
// ToolDone(event *ToolEvent)
//}