This repository has been archived by the owner on Jan 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconstants.go
143 lines (125 loc) · 2.16 KB
/
constants.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
package ultralight
// MessageSource enumerates the possible sources for a message
type MessageSource int
// The message sources
const (
XML MessageSource = iota
JS
Network
ConsoleAPI
Storage
AppCache
Rendering
CSS
Security
ContentBlocker
Other
)
// MessageLevel enumerates the severity levels of a message
type MessageLevel int
// The severity levels
const (
Log MessageLevel = iota + 1
Warning
Error
Debug
Info
)
// Cursor enumerates the different types of cursor to show
type Cursor int
// The cursor types
const (
Pointer Cursor = iota
Cross
Hand
IBeam
Wait
Help
EastResize
NorthResize
NorthEastResize
NorthWestResize
SouthResize
SouthEastResize
SouthWestResize
WestResize
NorthSouthResize
EastWestResize
NorthEastSouthWestResize
NorthWestSouthEastResize
ColumnResize
RowResize
MiddlePanning
EastPanning
NorthPanning
NorthEastPanning
NorthWestPanning
SouthPanning
SouthEastPanning
SouthWestPanning
WestPanning
Move
VerticalText
Cell
ContextMenu
Alias
Progress
NoDrop
Copy
CursorNone
NotAllowed
ZoomIn
ZoomOut
Grab
Grabbing
Custom
)
// BitmapFormat enumerates the possible formats for a bitmap
type BitmapFormat int
// The bitmap formats
const (
A8 BitmapFormat = iota
RGBA8
)
// KeyEventType enumerates the possible key events
type KeyEventType int
// KeyEventTypes
const (
KeyDown KeyEventType = iota
KeyUp
RawKeyDown
Char
)
// MouseEventType enumerates the possible mouse events
type MouseEventType int
// MouseEventTypes
const (
MouseMoved MouseEventType = iota
MouseDown
MouseUp
)
// MouseButton enumerates the possible mouse buttons
type MouseButton int
// MouseButtons
const (
MouseButtonNone MouseButton = iota
Left
Middle
Right
)
// ScrollEventType enumerates the possible ways of scrolling
type ScrollEventType int
// ScrollEventTypes
const (
ScrollByPixel ScrollEventType = iota
ScrollByPage
)
// WindowFlag enumerates the window features in a bitwise-OR ('|') friendly manner
type WindowFlag int
// Feature flags for the Window instance
const (
WindowBorderless WindowFlag = 1 << 0
WindowTitled WindowFlag = 1 << 1
WindowResizable WindowFlag = 1 << 2
WindowMaximizable WindowFlag = 1 << 3
)