1package events
2
3import (
4 "git.sr.ht/~rockorager/vaxis"
5)
6
7type EventClickSetEvent interface {
8 SetEvent(vaxis.Mouse)
9}
10
11type EventClick struct {
12 Event vaxis.Mouse
13 NetID string
14 Buffer string
15}
16
17func (e *EventClick) SetEvent(ev vaxis.Mouse) {
18 e.Event = ev
19}
20
21type EventClickNick struct {
22 EventClick
23 Nick string
24}
25
26type EventClickLink struct {
27 EventClick
28 Link string
29 Mouse bool
30}
31
32type EventClickChannel struct {
33 EventClick
34 Channel string
35}
36
37type EventFileUpload struct {
38 Progress float64
39 Location string
40 Error string
41}