-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathenum.go
151 lines (121 loc) · 3.44 KB
/
enum.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
144
145
146
147
148
149
150
151
package uiautomation
type TxtHitResult int
const (
TXTHITRESULT_NOHIT TxtHitResult = iota
TXTHITRESULT_TRANSPARENT
TXTHITRESULT_CLOSE
TXTHITRESULT_HIT
)
type StructureChangeType int
const (
StructureChangeType_ChildAdded StructureChangeType = iota
StructureChangeType_ChildRemoved
StructureChangeType_ChildrenInvalidated
StructureChangeType_ChildrenBulkAdded
StructureChangeType_ChildrenBulkRemoved
StructureChangeType_ChildrenReordered
)
type WindowVisualState int
const (
// https://learn.microsoft.com/zh-cn/windows/win32/api/uiautomationcore/ne-uiautomationcore-windowvisualstate
WindowVisualState_Normal WindowVisualState = iota
WindowVisualState_Maximized
WindowVisualState_Minimized
)
type ToggleState int
const (
// https://learn.microsoft.com/zh-cn/windows/win32/api/uiautomationcore/ne-uiautomationcore-togglestate
ToggleState_Off ToggleState = iota
ToggleState_On
ToggleState_Indeterminate
)
type ZoomUnit int
const (
// https://learn.microsoft.com/zh-cn/windows/win32/api/uiautomationcore/ne-uiautomationcore-zoomunit
ZoomUnit_NoAmount ZoomUnit = iota
ZoomUnit_LargeDecrement
ZoomUnit_SmallDecrement
ZoomUnit_LargeIncrement
ZoomUnit_SmallIncrement
)
type WindowInteractionState int
const (
// https://learn.microsoft.com/zh-cn/windows/win32/api/uiautomationcore/ne-uiautomationcore-windowinteractionstate
WindowInteractionState_Running WindowInteractionState = iota
WindowInteractionState_Closing
WindowInteractionState_ReadyForUserInteraction
WindowInteractionState_BlockedByModalWindow
WindowInteractionState_NotResponding
)
type SupportedTextSelection int
const (
// https://learn.microsoft.com/zh-cn/windows/win32/api/uiautomationcore/ne-uiautomationcore-supportedtextselection
SupportedTextSelection_None SupportedTextSelection = iota
SupportedTextSelection_Single
SupportedTextSelection_Multiple
)
type ScrollAmount int
const (
// https://learn.microsoft.com/zh-cn/windows/win32/api/uiautomationcore/ne-uiautomationcore-scrollamount
ScrollAmount_LargeDecrement ScrollAmount = iota
ScrollAmount_SmallDecrement
ScrollAmount_NoAmount
ScrollAmount_LargeIncrement
ScrollAmount_SmallIncrement
)
type RowOrColumnMajor int
const (
// https://learn.microsoft.com/zh-cn/windows/win32/api/uiautomationcore/ne-uiautomationcore-roworcolumnmajor
RowOrColumnMajor_RowMajor RowOrColumnMajor = iota
RowOrColumnMajor_ColumnMajor
RowOrColumnMajor_Indeterminate
)
type TextPatternRangeEndpoint int
const (
// https://learn.microsoft.com/zh-cn/windows/win32/api/uiautomationcore/ne-uiautomationcore-textpatternrangeendpoint
TextPatternRangeEndpoint_Start TextPatternRangeEndpoint = iota
TextPatternRangeEndpoint_End
)
type TextUnit int
const (
// https://learn.microsoft.com/zh-cn/windows/win32/api/uiautomationcore/ne-uiautomationcore-textunit
TextUnit_Character TextUnit = iota
TextUnit_Format
TextUnit_Word
TextUnit_Line
TextUnit_Paragraph
TextUnit_Page
TextUnit_Document
)
type TextArrtibuteId int
const (
// https://learn.microsoft.com/zh-cn/windows/win32/winauto/uiauto-textattribute-ids
)
type OrientationType int
const (
OrientationType_None OrientationType = iota
OrientationType_Horizontal
OrientationType_Vertical
)
type TagFuncKind int
const (
FUNC_VIRTUAL TagFuncKind = iota
FUNC_PUREVIRTUAL
FUNC_NONVIRTUAL
FUNC_STATIC
FUNC_DISPATCH
)
type TagCallConv int
const (
CC_FASTCALL TagCallConv = iota
CC_CDECL
CC_MSCPASCAL
CC_PASCAL
CC_MACPASCAL
CC_STDCALL
CC_FPFASTCALL
CC_SYSCALL
CC_MPWCDECL
CC_MPWPASCAL
CC_MAX
)